v3

package
v0.0.0-...-8335c39 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceOrder

func GetServiceOrder(services map[string]DockerComposeService, serviceOrder []string) []string

Types

type DockerComposeService

type DockerComposeService struct {
	Image       string                                 `json:"image"`
	Build       DockerComposeServiceBuild              `json:"build"`
	WorkingDir  string                                 `json:"working_dir"`
	Command     DockerComposeServiceCommand            `json:"command"`
	Links       []string                               `json:"links"`
	Environment DockerComposeServiceEnvironment        `json:"environment"`
	Volumes     []string                               `json:"volumes"`
	Expose      []string                               `json:"expose"`
	Networks    map[string]DockerComposeServiceNetwork `json:"networks"`
}

type DockerComposeServiceBuild

type DockerComposeServiceBuild struct {
	Context    string `json:"context" yaml:"context"`
	Dockerfile string `json:"dockerfile" yaml:"dockerfile"`
}

func (*DockerComposeServiceBuild) UnmarshalJSON

func (c *DockerComposeServiceBuild) UnmarshalJSON(b []byte) error

type DockerComposeServiceCommand

type DockerComposeServiceCommand []string

func (*DockerComposeServiceCommand) UnmarshalJSON

func (c *DockerComposeServiceCommand) UnmarshalJSON(b []byte) error

type DockerComposeServiceEnvironment

type DockerComposeServiceEnvironment map[string]string

func (*DockerComposeServiceEnvironment) UnmarshalJSON

func (env *DockerComposeServiceEnvironment) UnmarshalJSON(b []byte) error

type DockerComposeServiceNetwork

type DockerComposeServiceNetwork struct {
	Aliases []string `json:"aliases" yaml:"aliases"`
}

type DockerComposeYaml

type DockerComposeYaml struct {
	Version  string                          `json:"version"`
	Services map[string]DockerComposeService `json:"services"`
}

Jump to

Keyboard shortcuts

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