Documentation ¶
Index ¶
- Variables
- func Completer() ...
- type Client
- type ConfigDetails
- type ConfigFile
- type DockerComposeClient
- func (c *DockerComposeClient) Check() error
- func (c *DockerComposeClient) IsMinimumVersionInstalled() bool
- func (c *DockerComposeClient) RunCommand(args []string, opts ...shell.Opt) (output []byte, err error)
- func (c *DockerComposeClient) RunWithConfig(args []string, details ConfigDetails, opts ...shell.Opt) (string, error)
- func (c *DockerComposeClient) Version() (*version.Version, error)
- type DockerComposeOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDockerComposeVersionMismatch = func(s string) error { return errors.Errorf("docker compose version is too old: %s", s) }
Functions ¶
Types ¶
type ConfigDetails ¶
type ConfigDetails struct { Version string WorkingDir string ConfigFiles []ConfigFile Environment map[string]string }
ConfigDetails are the details about a group of ConfigFiles.
type ConfigFile ¶
ConfigFile is a filename and the contents of the file as a Dict.
type DockerComposeClient ¶
func NewDockerComposeClient ¶
func NewDockerComposeClient(s shell.Shell, tmpFiles *list.List) *DockerComposeClient
func NewMockClient ¶
func NewMockClient(command string, output []byte, err error) *DockerComposeClient
func (*DockerComposeClient) Check ¶
func (c *DockerComposeClient) Check() error
func (*DockerComposeClient) IsMinimumVersionInstalled ¶
func (c *DockerComposeClient) IsMinimumVersionInstalled() bool
func (*DockerComposeClient) RunCommand ¶
func (c *DockerComposeClient) RunCommand(args []string, opts ...shell.Opt) (output []byte, err error)
RunCommand runs the passed parameters with docker compose and returns the output.
func (*DockerComposeClient) RunWithConfig ¶
func (c *DockerComposeClient) RunWithConfig(args []string, details ConfigDetails, opts ...shell.Opt) (string, error)
RunWithConfig calls docker compose with the converted configuration settings (from templates).
func (*DockerComposeClient) Version ¶
func (c *DockerComposeClient) Version() (*version.Version, error)
type DockerComposeOpt ¶
type DockerComposeOpt func(*DockerComposeClient)
Click to show internal directories.
Click to hide internal directories.