Documentation ¶
Index ¶
- type ResId
- func NewResId(k gvk.Gvk, n string) ResId
- func NewResIdKindOnly(k string, n 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 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) Namespace() string
- func (n ResId) NsGvknEquals(id ResId) bool
- func (n ResId) String() 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 is an immutable identifier of a k8s resource object.
func NewResIdKindOnly ¶
NewResIdKindOnly creates new resource identifier
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 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 returns true if the other id matches Group/Version/Kind/name.
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) NsGvknEquals ¶
NsGvknEquals returns true if the other id matches namespace/Group/Version/Kind/name.