github.com/pulumi/terraform@v1.4.0/pkg/addrs/resourcemode_string.go (about)

     1  // Code generated by "stringer -type ResourceMode"; DO NOT EDIT.
     2  
     3  package addrs
     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[InvalidResourceMode-0]
    12  	_ = x[ManagedResourceMode-77]
    13  	_ = x[DataResourceMode-68]
    14  }
    15  
    16  const (
    17  	_ResourceMode_name_0 = "InvalidResourceMode"
    18  	_ResourceMode_name_1 = "DataResourceMode"
    19  	_ResourceMode_name_2 = "ManagedResourceMode"
    20  )
    21  
    22  func (i ResourceMode) String() string {
    23  	switch {
    24  	case i == 0:
    25  		return _ResourceMode_name_0
    26  	case i == 68:
    27  		return _ResourceMode_name_1
    28  	case i == 77:
    29  		return _ResourceMode_name_2
    30  	default:
    31  		return "ResourceMode(" + strconv.FormatInt(int64(i), 10) + ")"
    32  	}
    33  }