Documentation ¶
Index ¶
- Constants
- func LoadServiceResource(name string, network bool, cfg *config.Config) ([]byte, error)
- func NewClient(endpoint string) (*dockerClient.Client, error)
- func NewDefaultClient() (*dockerClient.Client, error)
- func NewSystemClient() (*dockerClient.Client, error)
- func RunServices(name string, cfg *config.Config, configs map[string]*project.ServiceConfig) 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 LoadServiceResource ¶ added in v0.3.0
func NewClient ¶
func NewClient(endpoint string) (*dockerClient.Client, error)
func NewDefaultClient ¶
func NewDefaultClient() (*dockerClient.Client, error)
func NewSystemClient ¶
func NewSystemClient() (*dockerClient.Client, error)
func RunServices ¶ added in v0.3.0
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
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
func (*ContainerFactory) Create ¶ added in v0.3.0
func (c *ContainerFactory) Create(project *project.Project, name string, serviceConfig *project.ServiceConfig) (project.Service, error)
Click to show internal directories.
Click to hide internal directories.