mirror of https://github.com/fluxcd/cli-utils.git
				
				
				
			
		
			
				
	
	
		
			28 lines
		
	
	
		
			696 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			696 B
		
	
	
	
		
			Go
		
	
	
	
| // Copyright 2021 The Kubernetes Authors.
 | |
| // SPDX-License-Identifier: Apache-2.0
 | |
| 
 | |
| // Code generated by "stringer -type=Policy"; DO NOT EDIT.
 | |
| 
 | |
| package validation
 | |
| 
 | |
| import "strconv"
 | |
| 
 | |
| func _() {
 | |
| 	// An "invalid array index" compiler error signifies that the constant values have changed.
 | |
| 	// Re-run the stringer command to generate them again.
 | |
| 	var x [1]struct{}
 | |
| 	_ = x[ExitEarly-0]
 | |
| 	_ = x[SkipInvalid-1]
 | |
| }
 | |
| 
 | |
| const _Policy_name = "ExitEarlySkipInvalid"
 | |
| 
 | |
| var _Policy_index = [...]uint8{0, 9, 20}
 | |
| 
 | |
| func (i Policy) String() string {
 | |
| 	if i < 0 || i >= Policy(len(_Policy_index)-1) {
 | |
| 		return "Policy(" + strconv.FormatInt(int64(i), 10) + ")"
 | |
| 	}
 | |
| 	return _Policy_name[_Policy_index[i]:_Policy_index[i+1]]
 | |
| }
 |