libcompose: github.com/docker/libcompose/labels Index | Files

package labels

import "github.com/docker/libcompose/labels"

Index

Package Files

labels.go

Constants

const (
    NUMBER  = Label("com.docker.compose.container-number")
    ONEOFF  = Label("com.docker.compose.oneoff")
    PROJECT = Label("com.docker.compose.project")
    SERVICE = Label("com.docker.compose.service")
    HASH    = Label("com.docker.compose.config-hash")
    VERSION = Label("com.docker.compose.version")
)

Libcompose default labels.

func And Uses

func And(left, right map[string][]string) map[string][]string

And returns a map of labels by merging the two specified values (left and right).

func AndString Uses

func AndString(left, right string) string

AndString returns a json list of labels by merging the two specified values (left and right) serialized as string.

func LabelFilter Uses

func LabelFilter(key, value string) map[string][]string

LabelFilter returns a label map representation of the specifed couple (key,value) that is used as filter for docker.

func LabelFilterString Uses

func LabelFilterString(key, value string) string

LabelFilterString returns a label json string representation of the specifed couple (key,value) that is used as filter for docker.

type Label Uses

type Label string

Label represents a docker label.

func (Label) Eq Uses

func (f Label) Eq(value string) map[string][]string

Eq returns a label map representation with the specified value.

func (Label) EqString Uses

func (f Label) EqString(value string) string

EqString returns a label json string representation with the specified value.

func (Label) Str Uses

func (f Label) Str() string

Str returns the label name.

Package labels imports 3 packages (graph) and is imported by 22 packages. Updated 2016-07-19. Refresh now. Tools for package owners.