...

Source file src/sigs.k8s.io/cli-utils/pkg/kstatus/watcher/restscopestrategy_string.go

Documentation: sigs.k8s.io/cli-utils/pkg/kstatus/watcher

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

View as plain text