| // Code generated by "stringer -type=EvaluateResult"; DO NOT EDIT. | |
| package policy | |
| 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[InvalidResult-0] | |
| _ = x[UnknownResult-1] | |
| _ = x[PolicyErrorResult-2] | |
| _ = x[AllowResult-3] | |
| _ = x[DenyResult-4] | |
| _ = x[SetupErrorResult-5] | |
| } | |
| const _EvaluateResult_name = "InvalidResultUnknownResultPolicyErrorResultAllowResultDenyResultSetupErrorResult" | |
| var _EvaluateResult_index = [...]uint8{0, 13, 26, 43, 54, 64, 80} | |
| func (i EvaluateResult) String() string { | |
| idx := int(i) - 0 | |
| if i < 0 || idx >= len(_EvaluateResult_index)-1 { | |
| return "EvaluateResult(" + strconv.FormatInt(int64(i), 10) + ")" | |
| } | |
| return _EvaluateResult_name[_EvaluateResult_index[idx]:_EvaluateResult_index[idx+1]] | |
| } |