convert

package
v0.1.3-0...-f63d1a6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelNamespace is the label used to track stack resources
	LabelNamespace = "com.docker.stack.namespace"
)

Variables

This section is empty.

Functions

func AddStackLabel

func AddStackLabel(namespace Namespace, labels map[string]string) map[string]string

AddStackLabel returns labels with the namespace label added

func Networks

func Networks(namespace Namespace, networks networkMap, servicesNetworks map[string]struct{}) (map[string]types.NetworkCreate, []string)

Networks from the compose-file type to the engine API type

func Services

func Services(
	namespace Namespace,
	config *composetypes.Config,
) (map[string]swarm.ServiceSpec, error)

Services from compose-file types to engine API types

func Volumes

func Volumes(serviceVolumes []string, stackVolumes volumes, namespace Namespace) ([]mount.Mount, error)

Volumes from compose-file types to engine api types

Types

type Namespace

type Namespace struct {
	// contains filtered or unexported fields
}

Namespace mangles names by prepending the name

func NewNamespace

func NewNamespace(name string) Namespace

NewNamespace returns a new Namespace for scoping of names

func (Namespace) Name

func (n Namespace) Name() string

Name returns the name of the namespace

func (Namespace) Scope

func (n Namespace) Scope(name string) string

Scope prepends the namespace to a name

Jump to

Keyboard shortcuts

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