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>"
Click to show internal directories.
Click to hide internal directories.