github.com/kevinklinger/open_terraform@v1.3.6/noninternal/cloud/configchangemode_string.go (about)

     1  // Code generated by "stringer -type ConfigChangeMode"; DO NOT EDIT.
     2  
     3  package cloud
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[ConfigMigrationIn-8600]
    12  	_ = x[ConfigMigrationOut-8598]
    13  	_ = x[ConfigChangeInPlace-8635]
    14  	_ = x[ConfigChangeIrrelevant-129335]
    15  }
    16  
    17  const (
    18  	_ConfigChangeMode_name_0 = "ConfigMigrationOut"
    19  	_ConfigChangeMode_name_1 = "ConfigMigrationIn"
    20  	_ConfigChangeMode_name_2 = "ConfigChangeInPlace"
    21  	_ConfigChangeMode_name_3 = "ConfigChangeIrrelevant"
    22  )
    23  
    24  func (i ConfigChangeMode) String() string {
    25  	switch {
    26  	case i == 8598:
    27  		return _ConfigChangeMode_name_0
    28  	case i == 8600:
    29  		return _ConfigChangeMode_name_1
    30  	case i == 8635:
    31  		return _ConfigChangeMode_name_2
    32  	case i == 129335:
    33  		return _ConfigChangeMode_name_3
    34  	default:
    35  		return "ConfigChangeMode(" + strconv.FormatInt(int64(i), 10) + ")"
    36  	}
    37  }