label

package
v2.14.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectResourceType        apiv1.ResourceType = "project"
	ClusterResourceType        apiv1.ResourceType = "cluster"
	NodeDeploymentResourceType apiv1.ResourceType = "nodedeployment"
)

Variables

This section is empty.

Functions

func FilterLabels

func FilterLabels(resource apiv1.ResourceType, labels map[string]string) map[string]string

FilterLabels removes system labels from the provided labels map

func GetSystemLabels

func GetSystemLabels() apiv1.ResourceLabelMap

GetSystemLabels returns restricted system labels object. We do not want anyone to modify original object outside of this package. That is why only getter is exposed.

func ListSystemLabels

func ListSystemLabels() endpoint.Endpoint

ListSystemLabels defines an endpoint to get list of system labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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