Documentation ¶
Index ¶
- type ResId
- func (n ResId) CopyWithNewNamespace(ns string) ResId
- func (n ResId) CopyWithNewPrefix(p 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) Name() string
- func (n ResId) Namespace() string
- func (n ResId) Prefix() string
- 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 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 (ResId) CopyWithNewNamespace ¶
CopyWithNewNamespace make a new copy from current ResId and set a new namespace
func (ResId) CopyWithNewPrefix ¶
CopyWithNewPrefix make a new copy from current ResId and append a new prefix
func (ResId) GvknEquals ¶
GvknEquals return if two ResId have the same Group/Version/Kind and name The comparison excludes prefix
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.