Documentation
¶
Index ¶
- type Container
- func (c *Container) CreateContainer() *Container
- func (c *Container) DumpContainerLogs()
- func (c *Container) GetStatus() ([]DockerInspect, error)
- func (c *Container) SetConfig(config *container.Config)
- func (c *Container) SetContainerCLI(client *docker.Client)
- func (c *Container) SetContainerHost(host string)
- func (c *Container) SetContainerHostIP(hostIp string)
- func (c *Container) SetContainerHostPort(hostPort string)
- func (c *Container) SetContainerID(id string)
- func (c *Container) SetContainerName(name string)
- func (c *Container) SetTCP(tcp string)
- func (c *Container) StopContainer()
- type Docker
- type DockerInspect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { ID string Host string Name string HostIP string HostPort string TCP string Config *container.Config CLI *docker.Client CustomArgs map[string]interface{} }
func (*Container) CreateContainer ¶
func (*Container) DumpContainerLogs ¶
func (c *Container) DumpContainerLogs()
DumpContainerLogs runs "docker logs" against the container and send it to t.Log TODO: tidy up
func (*Container) GetStatus ¶
func (c *Container) GetStatus() ([]DockerInspect, error)
func (*Container) SetContainerCLI ¶
func (c *Container) SetContainerCLI(client *docker.Client)
func (*Container) SetContainerHost ¶
func (*Container) SetContainerHostIP ¶
func (*Container) SetContainerHostPort ¶
func (*Container) SetContainerID ¶
func (*Container) SetContainerName ¶
type Docker ¶
type Docker interface { SetContainerID(id string) SetContainerName(name string) SetContainerHost(host string) SetContainerHostIP(hostIp string) SetContainerHostPort(hostPort string) SetTCP(tcp string) SetConfig(config *container.Config) SetContainerCLI(client *docker.Client) CreateContainer() *Container StopContainer() }
type DockerInspect ¶
type DockerInspect struct { State struct { Status string `json:"Status"` } `json:"State"` NetworkSettings struct { Networks struct { Bridge struct { IPAddress string `json:"IPAddress"` } `json:"bridge"` } `json:"Networks"` } `json:"NetworkSettings"` }
DockerInspect Values resulting from the command `docker inspect container-name`
Click to show internal directories.
Click to hide internal directories.