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 *v1.ObjectMeta, key string)
DeleteLabel removes a label from the ObjectMeta
func IsObjectLocalVisibility ¶
func IsObjectLocalVisibility(meta v1.ObjectMeta) bool
IsObjectLocalVisibility returns whether an ObjectMeta is of cluster-local visibility
func SetLabel ¶
func SetLabel(meta *v1.ObjectMeta, key string, value string)
SetLabel sets/update the label of the an ObjectMeta
func SetVisibility ¶
func SetVisibility(meta *v1.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.