...

Source file src/sigs.k8s.io/cli-utils/pkg/apis/actuation/actuationstatus_string.go

Documentation: sigs.k8s.io/cli-utils/pkg/apis/actuation

     1  // Code generated by "stringer -type=ActuationStatus -linecomment"; DO NOT EDIT.
     2  
     3  package actuation
     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[ActuationPending-0]
    12  	_ = x[ActuationSucceeded-1]
    13  	_ = x[ActuationSkipped-2]
    14  	_ = x[ActuationFailed-3]
    15  }
    16  
    17  const _ActuationStatus_name = "PendingSucceededSkippedFailed"
    18  
    19  var _ActuationStatus_index = [...]uint8{0, 7, 16, 23, 29}
    20  
    21  func (i ActuationStatus) String() string {
    22  	if i < 0 || i >= ActuationStatus(len(_ActuationStatus_index)-1) {
    23  		return "ActuationStatus(" + strconv.FormatInt(int64(i), 10) + ")"
    24  	}
    25  	return _ActuationStatus_name[_ActuationStatus_index[i]:_ActuationStatus_index[i+1]]
    26  }
    27  

View as plain text