Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceRef ¶
type ResourceRef struct { Group string `json:"group"` Version string `json:"version"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` }
ResourceRef provides information that identifies a resource in a cluster
func NewResourceRefFromUnstructured ¶
func NewResourceRefFromUnstructured(resource *unstructured.Unstructured) *ResourceRef
NewResourceRefFromUnstructured creates a new ResourceRef from an Unstructured object
func (*ResourceRef) SprintGroupVersion ¶
func (r *ResourceRef) SprintGroupVersion() string
SprintGroupVersion returns a string of "group/version"
func (*ResourceRef) SprintKindVersionGroup ¶
func (r *ResourceRef) SprintKindVersionGroup() string
SprintKindVersionGroup returns a string of "kind.version.group"
func (*ResourceRef) SprintKindVersionGroupName ¶
func (r *ResourceRef) SprintKindVersionGroupName() string
SprintKindVersionGroupName returns a string of "kind.version.group/name"
Click to show internal directories.
Click to hide internal directories.