Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get get the label value of the provided k8s object for the specified label key. Return empty string if the object is not runtime.Object.
func GetAll ¶
GetAll get all labels of the provided k8s object. Return nil if the provided object is not runtime.Object.
func Has ¶
Has will return true if the k8s object has specified label, otherwise return false. Label key and value separated by "=".
If the provided label only contains label key, then only to check whether the labels of the k8s object contains the label key. If the provided label contains label key and value, then check whether the labels of the k8s object contains the label key and value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.