package convert
import "github.com/dotcloud/docker/cli/compose/convert"
Index ¶
- Constants
- func AddStackLabel(namespace Namespace, labels map[string]string) map[string]string
- func Networks( namespace Namespace, networks networkMap, servicesNetworks map[string]struct{}, ) (map[string]types.NetworkCreate, []string)
- func Secrets(namespace Namespace, secrets map[string]composetypes.SecretConfig) ([]swarm.SecretSpec, error)
- func Services( namespace Namespace, config *composetypes.Config, client client.SecretAPIClient, ) (map[string]swarm.ServiceSpec, error)
- func Volumes(serviceVolumes []string, stackVolumes volumes, namespace Namespace) ([]mount.Mount, error)
- type Namespace
Constants ¶
const ( // LabelNamespace is the label used to track stack resources LabelNamespace = "com.docker.stack.namespace" )
Functions ¶
func AddStackLabel ¶
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 converts networks from the compose-file type to the engine API type
func Secrets ¶
func Secrets(namespace Namespace, secrets map[string]composetypes.SecretConfig) ([]swarm.SecretSpec, error)
Secrets converts secrets from the Compose type to the engine API type
func Services ¶
func Services( namespace Namespace, config *composetypes.Config, client client.SecretAPIClient, ) (map[string]swarm.ServiceSpec, error)
Services from compose-file types to engine API types TODO: fix secrets API so that SecretAPIClient is not required here
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 ¶
NewNamespace returns a new Namespace for scoping of names
func (Namespace) Name ¶
Name returns the name of the namespace
func (Namespace) Scope ¶
Scope prepends the namespace to a name
Source Files ¶
compose.go service.go volume.go
- Version
- v1.13.1
- Published
- Feb 8, 2017
- Platform
- windows/amd64
- Imports
- 17 packages
- Last checked
- 1 hour ago –
Tools for package owners.