Documentation ¶
Overview ¶
Package labels holds simple functions for working with ObjectMeta labels.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteLabel ¶
func DeleteLabel(meta *metav1.ObjectMeta, key string)
DeleteLabel removes a label from the ObjectMeta
func IsObjectLocalVisibility ¶
func IsObjectLocalVisibility(meta *metav1.ObjectMeta) bool
IsObjectLocalVisibility returns whether an ObjectMeta is of cluster-local visibility
func SetLabel ¶
func SetLabel(meta *metav1.ObjectMeta, key, value string)
SetLabel sets/update the label of the an ObjectMeta
func SetVisibility ¶
func SetVisibility(meta *metav1.ObjectMeta, isClusterLocal bool)
SetVisibility sets the visibility on an ObjectMeta
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.