Documentation ¶
Index ¶
- type ResId
- func NewResId(k gvk.Gvk, n string) ResId
- func NewResIdKindOnly(k string, n string) ResId
- func NewResIdWithPrefix(k gvk.Gvk, n, p string) ResId
- func NewResIdWithPrefixNamespace(k gvk.Gvk, n, p, ns string) ResId
- func NewResIdWithPrefixSuffix(k gvk.Gvk, n, p, s string) ResId
- func NewResIdWithPrefixSuffixNamespace(k gvk.Gvk, n, p, s, ns string) ResId
- func NewResIdWithSuffix(k gvk.Gvk, n, s string) ResId
- func NewResIdWithSuffixNamespace(k gvk.Gvk, n, s, ns string) ResId
- func (n ResId) CopyWithNewNamespace(ns string) ResId
- func (n ResId) CopyWithNewPrefixSuffix(p, s string) ResId
- func (n ResId) Gvk() gvk.Gvk
- func (n ResId) GvknEquals(id ResId) bool
- func (n ResId) GvknString() string
- func (n ResId) HasSameLeftmostPrefix(id ResId) bool
- func (n ResId) HasSameRightmostSuffix(id ResId) bool
- func (n ResId) Name() string
- func (n ResId) NameWithPrefixSuffix() string
- func (n ResId) Namespace() string
- func (n ResId) Prefix() string
- func (n ResId) String() string
- func (n ResId) Suffix() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResId ¶
type ResId struct {
// contains filtered or unexported fields
}
ResId conflates GroupVersionKind with a textual name to uniquely identify a kubernetes resource (object).
func NewResIdKindOnly ¶
NewResIdKindOnly creates new resource identifier
func NewResIdWithPrefix ¶
NewResIdWithPrefix creates new resource identifier with a prefix
func NewResIdWithPrefixNamespace ¶
NewResIdWithPrefixNamespace creates new resource identifier with a prefix and a namespace
func NewResIdWithPrefixSuffix ¶ added in v1.0.11
NewResIdWithPrefixSuffix creates new resource identifier with a prefix and suffix
func NewResIdWithPrefixSuffixNamespace ¶ added in v1.0.11
NewResIdWithPrefixSuffixNamespace creates new resource identifier with a prefix, suffix and a namespace
func NewResIdWithSuffix ¶ added in v1.0.11
NewResIdWithSuffix creates new resource identifier with a suffix
func NewResIdWithSuffixNamespace ¶ added in v1.0.11
NewResIdWithSuffixNamespace creates new resource identifier with a suffix and a namespace
func (ResId) CopyWithNewNamespace ¶
CopyWithNewNamespace make a new copy from current ResId and set a new namespace
func (ResId) CopyWithNewPrefixSuffix ¶ added in v1.0.11
CopyWithNewPrefixSuffix make a new copy from current ResId and append a new prefix and suffix
func (ResId) GvknEquals ¶
GvknEquals return if two ResId have the same Group/Version/Kind and name The comparison excludes prefix and suffix
func (ResId) GvknString ¶
GvknString of ResId based on GVK and name
func (ResId) HasSameLeftmostPrefix ¶
HasSameLeftmostPrefix check if two ResIds have the same left most prefix.
func (ResId) HasSameRightmostSuffix ¶ added in v1.0.11
HasSameRightmostSuffix check if two ResIds have the same right most suffix.
func (ResId) NameWithPrefixSuffix ¶ added in v1.0.11
NameWithPrefixSuffix returns resource name with prefix and suffix.