metadata

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAnnotations added in v0.8.0

func FilterAnnotations(annotations map[string]string, fn func(k, v string) bool) map[string]string

FilterAnnotations filters the provided annotations using fn(k,v). Maps elements are kept if fn returns true.

func GetAnnotations

func GetAnnotations(_ string, annotations ...map[string]string) map[string]string

GetAnnotations returns service annotations.

func GetLabels

func GetLabels(name, 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(name, service string, version string, labels map[string]string) map[string]string

GetLabels returns a Labels for a temporal service using string Version.

func LabelsSelector

func LabelsSelector(clusterName, serviceName string) map[string]string

LabelsSelector returns service's default labels.

func Merge

func Merge(maps ...map[string]string) map[string]string

Merge merges the provided maps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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