labels

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ForServiceName is the label for the service name.
	ForServiceName = "com.docker.service.name"
	// ForStackName is the label for the stack name.
	ForStackName = "com.docker.stack.namespace"
	// ForServiceID is the label for the service id.
	ForServiceID = "com.docker.service.id"
)

Variables

This section is empty.

Functions

func ForService

func ForService(stackName, serviceName string) map[string]string

ForService gives the labels to select a given service in a stack.

func SelectorForStack

func SelectorForStack(stackName string, serviceNames ...string) string

SelectorForStack gives the labelSelector to use for a given stack. Specific service names can be passed to narrow down the selection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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