Documentation ¶
Index ¶
- func FilterAnnotations(annotations map[string]string, fn func(k, v string) bool) map[string]string
- func GetAnnotations(_ string, annotations ...map[string]string) map[string]string
- func GetLabels(owner OwnerObject, service string, version *version.Version, ...) map[string]string
- func GetVersionStringLabels(owner OwnerObject, service string, version string, labels map[string]string) map[string]string
- func HeadlessLabels() map[string]string
- func LabelsSelector(owner OwnerObject, serviceName string) map[string]string
- func Merge(maps ...map[string]string) map[string]string
- type OwnerObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAnnotations ¶ added in v0.8.0
FilterAnnotations filters the provided annotations using fn(k,v). Maps elements are kept if fn returns true.
func GetAnnotations ¶
GetAnnotations returns service annotations.
func GetLabels ¶
func GetLabels(owner OwnerObject, service string, version *version.Version, labels map[string]string) map[string]string
GetLabels returns a Labels for a temporal service.
func GetVersionStringLabels ¶ added in v0.8.0
func GetVersionStringLabels(owner OwnerObject, service string, version string, labels map[string]string) map[string]string
GetLabels returns a Labels for a temporal service using string Version.
func HeadlessLabels ¶ added in v0.9.0
HeadlessLabels returns labels to express that a service is headless.
func LabelsSelector ¶
func LabelsSelector(owner OwnerObject, serviceName string) map[string]string
LabelsSelector returns service's default labels.
Types ¶
Click to show internal directories.
Click to hide internal directories.