Documentation
¶
Overview ¶
Package compose aims to provide simple "helper" methods to ease the use of compose (through libcompose) in (integration) tests.
Index ¶
- type Project
- func (p *Project) Container(service string) (types.ContainerJSON, error)
- func (p *Project) Containers(service string) ([]types.ContainerJSON, error)
- func (p *Project) Scale(service string, count int) error
- func (p *Project) Start(services ...string) error
- func (p *Project) StartOnly(services ...string) error
- func (p *Project) Stop(services ...string) error
- func (p *Project) StopOnly(services ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
Project holds compose related project attributes
func CreateProject ¶
CreateProject creates a compose project with the given name based on the specified compose files
func (*Project) Container ¶
func (p *Project) Container(service string) (types.ContainerJSON, error)
Container returns the one and only container for a given services. It returns an error if the service has more than one container (in case of scale)
func (*Project) Containers ¶
func (p *Project) Containers(service string) ([]types.ContainerJSON, error)
Containers lists containers for a given services.
Directories
¶
Path | Synopsis |
---|---|
Package check aims to provide simple "helper" methods to ease the use of compose (through libcompose) in (integration) tests using the go-check package.
|
Package check aims to provide simple "helper" methods to ease the use of compose (through libcompose) in (integration) tests using the go-check package. |
Package testing aims to provide simple "helper" methods to ease the use of compose (through libcompose) in (integration) tests using built-in testing.
|
Package testing aims to provide simple "helper" methods to ease the use of compose (through libcompose) in (integration) tests using built-in testing. |
Click to show internal directories.
Click to hide internal directories.