keys

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespaceKeyForObject

func GetNamespaceKeyForObject(obj interface{}) (string, error)

GetNamespaceKeyForObject generates a namespace/name key for object.

Types

type ClusterWideKey

type ClusterWideKey struct {
	fleetv1alpha1.ResourceIdentifier
}

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

func GetClusterWideKeyForObject

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

GetClusterWideKeyForObject generates a ClusterWideKey for object.

func (*ClusterWideKey) GroupKind

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

GroupKind returns the group and kind of resource being referenced.

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 an 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