...

Source file src/sigs.k8s.io/cli-utils/pkg/apply/filter/relationship_string.go

Documentation: sigs.k8s.io/cli-utils/pkg/apply/filter

     1  // Code generated by "stringer -type=Relationship -linecomment"; DO NOT EDIT.
     2  
     3  package filter
     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[RelationshipDependent-0]
    12  	_ = x[RelationshipDependency-1]
    13  }
    14  
    15  const _Relationship_name = "DependentDependency"
    16  
    17  var _Relationship_index = [...]uint8{0, 9, 19}
    18  
    19  func (i Relationship) String() string {
    20  	if i < 0 || i >= Relationship(len(_Relationship_index)-1) {
    21  		return "Relationship(" + strconv.FormatInt(int64(i), 10) + ")"
    22  	}
    23  	return _Relationship_name[_Relationship_index[i]:_Relationship_index[i+1]]
    24  }
    25  

View as plain text