labels

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL