Documentation ¶
Index ¶
- type Command
- type Config
- type Contents
- type DownOptions
- type ExecOptions
- type File
- type Project
- func (p Project) Cmd(commandAndArgs []string) *exec.Cmd
- func (p Project) Command(commandAndArgs []string) Command
- func (p Project) ComposeFiles() ([]string, error)
- func (p Project) Config() Config
- func (p Project) ContainerID(service string) (string, error)
- func (p Project) Down(opts DownOptions) error
- func (p Project) Exec(service string, opts ExecOptions) error
- func (p Project) ExecCommand(service string, opts ExecOptions) Command
- func (p Project) File(name string) File
- func (p Project) NetworkName(name string) string
- func (p Project) Pull(services []string) error
- func (p Project) Restart(services []string) error
- func (p Project) Rm(services []string, opts RmOptions) error
- func (p Project) ServicesWithStatus(statusFilter string) ([]string, error)
- func (p Project) Start(services []string) error
- func (p Project) Stop(services []string) error
- func (p Project) TopLevelFilePaths() ([]string, error)
- func (p Project) Up(services []string, opts UpOptions) error
- func (p Project) VolumesRm(volumes []string) error
- type RmOptions
- type ServiceConfig
- type ServiceContents
- type UpOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version"` Services map[string]ServiceConfig `json:"services"` Volumes map[string]interface{} `json:"volumes"` }
type Contents ¶
type Contents struct { Version string `yaml:"version"` Services map[string]ServiceContents `json:"services"` Volumes map[string]interface{} `json:"volumes"` }
type ExecOptions ¶
type Project ¶
func (Project) Cmd ¶
TODO don't use this externally, use Command?
func (Project) Config ¶
Config returns the docker compose config for the project, fully rendered with env vars.
func (Project) Down ¶
func (p Project) Down(opts DownOptions) error
func (Project) Exec ¶
func (p Project) Exec(service string, opts ExecOptions) error
func (Project) ExecCommand ¶
func (p Project) ExecCommand(service string, opts ExecOptions) Command
func (Project) ServicesWithStatus ¶
ServicesWithStatus lists services in the docker compose setup that have the given status.
type ServiceContents ¶
Click to show internal directories.
Click to hide internal directories.