github.com/DataDog/datadog-agent/pkg/security/secl@v0.55.0-devel.0.20240517055856-10c4965fea94/model/model_string.go (about) 1 // Code generated by "stringer -type=HashState -linecomment -output model_string.go"; DO NOT EDIT. 2 3 package model 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[NoHash-0] 12 _ = x[Done-1] 13 _ = x[FileNotFound-2] 14 _ = x[PathnameResolutionError-3] 15 _ = x[FileTooBig-4] 16 _ = x[FileEmpty-5] 17 _ = x[FileOpenError-6] 18 _ = x[EventTypeNotConfigured-7] 19 _ = x[HashWasRateLimited-8] 20 _ = x[HashFailed-9] 21 _ = x[MaxHashState-10] 22 } 23 24 const _HashState_name = "NoHashDoneFileNotFoundPathnameResolutionErrorFileTooBigFileEmptyFileOpenErrorEventTypeNotConfiguredHashWasRateLimitedHashFailedMaxHashState" 25 26 var _HashState_index = [...]uint8{0, 6, 10, 22, 45, 55, 64, 77, 99, 117, 127, 139} 27 28 func (i HashState) String() string { 29 if i < 0 || i >= HashState(len(_HashState_index)-1) { 30 return "HashState(" + strconv.FormatInt(int64(i), 10) + ")" 31 } 32 return _HashState_name[_HashState_index[i]:_HashState_index[i+1]] 33 }