Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespaceKeyForObject ¶
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>"
Click to show internal directories.
Click to hide internal directories.