keys

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterWideKey

type ClusterWideKey struct {
	// Group is the API Group of resource being referenced.
	Group string

	// Version is the API Version of the resource being referenced.
	Version string

	// Kind is the type of resource being referenced.
	Kind string

	// Namespace is the name of a namespace.
	Namespace string

	// Name is the name of resource being referenced.
	Name string
}

ClusterWideKey is the object key which is a unique identifier under a cluster, across all resources.

func ClusterWideKeyFunc

func ClusterWideKeyFunc(obj interface{}) (ClusterWideKey, error)

ClusterWideKeyFunc generates a ClusterWideKey for object.

func (*ClusterWideKey) GroupVersion

func (k *ClusterWideKey) GroupVersion() schema.GroupVersion

GroupVersion returns the group and version of resource being referenced.

func (*ClusterWideKey) GroupVersionKind

func (k *ClusterWideKey) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind returns the group, version, and kind of resource being referenced.

func (*ClusterWideKey) NamespaceKey

func (k *ClusterWideKey) NamespaceKey() string

NamespaceKey returns the traditional key of a object.

func (ClusterWideKey) String

func (k ClusterWideKey) String() string

String returns the key's printable info with format: "<GroupVersion>, kind=<Kind>, <NamespaceKey>"

Jump to

Keyboard shortcuts

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