label

package
Version: v2.14.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 5

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL