github.com/mingfang/terraform@v0.11.12-beta1/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 "strconv"
     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_3 = [...]uint8{0, 18, 32}
    17  )
    18  
    19  func (i getSource) String() string {
    20  	switch {
    21  	case 1 <= i && i <= 2:
    22  		i -= 1
    23  		return _getSource_name_0[_getSource_index_0[i]:_getSource_index_0[i+1]]
    24  	case i == 4:
    25  		return _getSource_name_1
    26  	case i == 8:
    27  		return _getSource_name_2
    28  	case 15 <= i && i <= 16:
    29  		i -= 15
    30  		return _getSource_name_3[_getSource_index_3[i]:_getSource_index_3[i+1]]
    31  	default:
    32  		return "getSource(" + strconv.FormatInt(int64(i), 10) + ")"
    33  	}
    34  }