storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/pkg/bucket/lifecycle/action_string.go (about) 1 // Code generated by "stringer -type Action lifecycle.go"; DO NOT EDIT. 2 3 package lifecycle 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[NoneAction-0] 12 _ = x[DeleteAction-1] 13 _ = x[DeleteVersionAction-2] 14 _ = x[TransitionAction-3] 15 _ = x[TransitionVersionAction-4] 16 _ = x[DeleteRestoredAction-5] 17 _ = x[DeleteRestoredVersionAction-6] 18 } 19 20 const _Action_name = "NoneActionDeleteActionDeleteVersionActionTransitionActionTransitionVersionActionDeleteRestoredActionDeleteRestoredVersionAction" 21 22 var _Action_index = [...]uint8{0, 10, 22, 41, 57, 80, 100, 127} 23 24 func (i Action) String() string { 25 if i < 0 || i >= Action(len(_Action_index)-1) { 26 return "Action(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _Action_name[_Action_index[i]:_Action_index[i+1]] 29 }