File: pluginrestrictions_string.go

package info (click to toggle)
golang-k8s-sigs-kustomize-api 0.19.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,732 kB
  • sloc: makefile: 206; sh: 67
file content (25 lines) | stat: -rw-r--r-- 859 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -type=PluginRestrictions"; DO NOT EDIT.

package types

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[PluginRestrictionsUnknown-0]
	_ = x[PluginRestrictionsBuiltinsOnly-1]
	_ = x[PluginRestrictionsNone-2]
}

const _PluginRestrictions_name = "PluginRestrictionsUnknownPluginRestrictionsBuiltinsOnlyPluginRestrictionsNone"

var _PluginRestrictions_index = [...]uint8{0, 25, 55, 77}

func (i PluginRestrictions) String() string {
	if i < 0 || i >= PluginRestrictions(len(_PluginRestrictions_index)-1) {
		return "PluginRestrictions(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _PluginRestrictions_name[_PluginRestrictions_index[i]:_PluginRestrictions_index[i+1]]
}