Documentation ¶
Index ¶
- type Container
- func (c *Container) CommandInContainer(commandLine ...string) *oshelpers.CommandWrapper
- func (c *Container) Delete() error
- func (c *Container) FollowLogs(outputWriter io.Writer) error
- func (c *Container) GetID() string
- func (c *Container) GetName() string
- func (c *Container) Start() error
- func (c *Container) Stop() error
- type ContainerBuilder
- func (cb *ContainerBuilder) Build() (*Container, error)
- func (cb *ContainerBuilder) ContainerParams(args ...string) *ContainerBuilder
- func (cb *ContainerBuilder) EnvVar(name, value string) *ContainerBuilder
- func (cb *ContainerBuilder) Name(name string) *ContainerBuilder
- func (cb *ContainerBuilder) Network(network *Network) *ContainerBuilder
- func (cb *ContainerBuilder) PublishPort(externalPort, internalPort int) *ContainerBuilder
- func (cb *ContainerBuilder) Run() error
- func (cb *ContainerBuilder) SharedVolume(hostDir, containerDir string) *ContainerBuilder
- type Image
- type ImageBuilder
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) CommandInContainer ¶
func (c *Container) CommandInContainer(commandLine ...string) *oshelpers.CommandWrapper
type ContainerBuilder ¶
type ContainerBuilder struct {
// contains filtered or unexported fields
}
func (*ContainerBuilder) Build ¶
func (cb *ContainerBuilder) Build() (*Container, error)
func (*ContainerBuilder) ContainerParams ¶ added in v6.1.0
func (cb *ContainerBuilder) ContainerParams(args ...string) *ContainerBuilder
func (*ContainerBuilder) EnvVar ¶
func (cb *ContainerBuilder) EnvVar(name, value string) *ContainerBuilder
func (*ContainerBuilder) Name ¶
func (cb *ContainerBuilder) Name(name string) *ContainerBuilder
func (*ContainerBuilder) Network ¶
func (cb *ContainerBuilder) Network(network *Network) *ContainerBuilder
func (*ContainerBuilder) PublishPort ¶
func (cb *ContainerBuilder) PublishPort(externalPort, internalPort int) *ContainerBuilder
func (*ContainerBuilder) Run ¶ added in v6.1.0
func (cb *ContainerBuilder) Run() error
func (*ContainerBuilder) SharedVolume ¶ added in v6.1.0
func (cb *ContainerBuilder) SharedVolume(hostDir, containerDir string) *ContainerBuilder
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func (*Image) IsCustomBuild ¶
func (*Image) NewContainerBuilder ¶
func (i *Image) NewContainerBuilder() *ContainerBuilder
type ImageBuilder ¶
type ImageBuilder struct {
// contains filtered or unexported fields
}
func NewImageBuilder ¶
func NewImageBuilder(workDir oshelpers.DirPath) *ImageBuilder
func (*ImageBuilder) Build ¶
func (ib *ImageBuilder) Build() (*Image, error)
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func NewNetwork ¶
func (*Network) GetContainerIDs ¶
Click to show internal directories.
Click to hide internal directories.