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
Click to show internal directories.
Click to hide internal directories.