label

package
v0.2.5-alpha.25 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLabelExistence

func CheckLabelExistence(objMeta metav1.ObjectMeta, typeMeta metav1.TypeMeta, labelKeys []string) error

func GetClusterName

func GetClusterName(obj metav1.Object) string

func GetDevSuiteOwned

func GetDevSuiteOwned(obj metav1.Object) string

func GetTargetRobot

func GetTargetRobot(obj metav1.Object) string

func GetTargetRobotVDI

func GetTargetRobotVDI(obj metav1.Object) string

func GetTenancyMap

func GetTenancyMap(obj metav1.Object) map[string]string

func GetTenancyMapFromTenancy added in v0.1.6

func GetTenancyMapFromTenancy(tenancy Tenancy) map[string]string

Types

type InstanceType

type InstanceType string
const (
	InstanceTypeCloudInstance    InstanceType = "CloudInstance"
	InstanceTypePhysicalInstance InstanceType = "PhysicalInstance"
)

func GetInstanceType

func GetInstanceType(obj metav1.Object) InstanceType

type Tenancy

type Tenancy struct {
	Organization       string
	Team               string
	Region             string
	CloudInstance      string
	CloudInstanceAlias string
	PhysicalInstance   string
}

func GetTenancy

func GetTenancy(obj metav1.Object) *Tenancy

Jump to

Keyboard shortcuts

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