kube

package
v0.21.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LoftCustomLinksAnnotation is applied to enumerates associated links to external websites
	LoftCustomLinksAnnotation = "loft.sh/custom-links"

	// LoftCustomLinksDelimiter is the separator for the values of the custom links annotation
	LoftCustomLinksDelimiter = "\n"
)

Variables

This section is empty.

Functions

func SetCustomLinksAnnotation

func SetCustomLinksAnnotation(obj Annotatable, links []string) bool

SetCustomLinksAnnotation sets the list of links for the UI to display next to the project member({space/virtualcluster}instance) it handles unspecified links (empty) during create and update

func UpdateAnnotations

func UpdateAnnotations(obj Annotatable, annotationList []string) (bool, error)

func UpdateLabels

func UpdateLabels(obj Labelable, labelList []string) (bool, error)

Types

type Annotatable

type Annotatable interface {
	Annotated
	SetAnnotations(map[string]string)
}

Annotatable is an interface for objects that have annotations and `

type Annotated

type Annotated interface {
	GetAnnotations() map[string]string
}

Annotated is an interface for objects that have annotations

type Labelable

type Labelable interface {
	Labeled
	SetLabels(map[string]string)
}

Labelable is an interface for objects that have labels and can set them

type Labeled

type Labeled interface {
	GetLabels() map[string]string
}

Labeled is an interface for objects that have labels

Jump to

Keyboard shortcuts

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