github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/helper/schema/getsource_string.go (about)

     1  // Code generated by "stringer -type=getSource resource_data_get_source.go"; DO NOT EDIT
     2  
     3  package schema
     4  
     5  import "fmt"
     6  
     7  const (
     8  	_getSource_name_0 = "getSourceStategetSourceConfig"
     9  	_getSource_name_1 = "getSourceDiff"
    10  	_getSource_name_2 = "getSourceSet"
    11  	_getSource_name_3 = "getSourceLevelMaskgetSourceExact"
    12  )
    13  
    14  var (
    15  	_getSource_index_0 = [...]uint8{0, 14, 29}
    16  	_getSource_index_1 = [...]uint8{0, 13}
    17  	_getSource_index_2 = [...]uint8{0, 12}
    18  	_getSource_index_3 = [...]uint8{0, 18, 32}
    19  )
    20  
    21  func (i getSource) String() string {
    22  	switch {
    23  	case 1 <= i && i <= 2:
    24  		i -= 1
    25  		return _getSource_name_0[_getSource_index_0[i]:_getSource_index_0[i+1]]
    26  	case i == 4:
    27  		return _getSource_name_1
    28  	case i == 8:
    29  		return _getSource_name_2
    30  	case 15 <= i && i <= 16:
    31  		i -= 15
    32  		return _getSource_name_3[_getSource_index_3[i]:_getSource_index_3[i+1]]
    33  	default:
    34  		return fmt.Sprintf("getSource(%d)", i)
    35  	}
    36  }