Documentation ¶
Index ¶
- Constants
- func NewClient(endpoint string) (*dockerClient.Client, error)
- func NewDefaultClient() (*dockerClient.Client, error)
- func NewSystemClient() (*dockerClient.Client, error)
- func StartAndWait(dockerHost string, containerCfg *config.ContainerConfig) error
- type ByCreated
- type Container
- func (c *Container) Create() *Container
- func (c *Container) Delete() *Container
- func (c *Container) Exists() bool
- func (c *Container) Lookup() *Container
- func (c *Container) Parse() *Container
- func (c *Container) Reset() *Container
- func (c *Container) Stage() *Container
- func (c *Container) Start() *Container
- func (c *Container) StartAndWait() *Container
- type ContainerFactory
Constants ¶
View Source
const ( MAX_WAIT = 30000 INTERVAL = 100 )
Variables ¶
This section is empty.
Functions ¶
func NewDefaultClient ¶
func NewDefaultClient() (*dockerClient.Client, error)
func NewSystemClient ¶
func NewSystemClient() (*dockerClient.Client, error)
func StartAndWait ¶
func StartAndWait(dockerHost string, containerCfg *config.ContainerConfig) error
Types ¶
type ByCreated ¶
type ByCreated []dockerClient.APIContainers
type Container ¶
type Container struct { Err error Name string Config *runconfig.Config HostConfig *runconfig.HostConfig Container *dockerClient.Container ContainerCfg *config.ContainerConfig // contains filtered or unexported fields }
func NewContainer ¶
func NewContainer(dockerHost string, containerCfg *config.ContainerConfig) *Container
func NewContainerFromService ¶ added in v0.3.0
func NewContainerFromService(dockerHost string, name string, service *project.ServiceConfig) *Container
func (*Container) StartAndWait ¶
type ContainerFactory ¶ added in v0.3.0
type ContainerFactory struct {
// contains filtered or unexported fields
}
func NewContainerFactory ¶ added in v0.3.0
func NewContainerFactory(cfg *config.Config) *ContainerFactory
Click to show internal directories.
Click to hide internal directories.