common

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL