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
Constants ¶
View Source
const ( MAX_WAIT = 30000 INTERVAL = 100 )
View Source
const ( LABEL = "label" HASH = "io.rancher.os.hash" ID = "io.rancher.os.id" )
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(endpoint string) (*dockerClient.Client, error)
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
Click to show internal directories.
Click to hide internal directories.