Documentation ¶
Index ¶
- type Container
- func (c *Container) CanConnectTo(ip, port, protocol string) bool
- func (c *Container) CopyFileIntoContainer(hostPath, containerPath string) error
- func (c *Container) DockerInspect(format string) string
- func (c *Container) EnsureBinary(name string)
- func (c *Container) Exec(cmd ...string)
- func (c *Container) ExecMayFail(cmd ...string) error
- func (c *Container) ExecOutput(args ...string) (string, error)
- func (c *Container) GetHostname() string
- func (c *Container) GetIP() string
- func (c *Container) GetPIDs(processName string) []int
- func (c *Container) GetSinglePID(processName string) int
- func (c *Container) ListedInDockerPS() bool
- func (c *Container) Remove()
- func (c *Container) SourceName() string
- func (c *Container) Start()
- func (c *Container) Stop()
- func (c *Container) Stopped() bool
- func (c *Container) WaitNotRunning(timeout time.Duration)
- func (c *Container) WaitUntilRunning()
- func (c *Container) WatchStdoutFor(re *regexp.Regexp) chan struct{}
- type RunOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Name string IP string Hostname string // contains filtered or unexported fields }
func (*Container) CanConnectTo ¶
func (*Container) CopyFileIntoContainer ¶
func (*Container) DockerInspect ¶
func (*Container) EnsureBinary ¶
func (*Container) ExecMayFail ¶
func (*Container) GetHostname ¶
func (*Container) GetSinglePID ¶
func (*Container) ListedInDockerPS ¶
func (*Container) Remove ¶
func (c *Container) Remove()
Remove deletes a container. Should be manually called after a non-auto-removed container is stopped.
func (*Container) SourceName ¶
func (*Container) Start ¶
func (c *Container) Start()
Start executes "docker start" on a container. Useful when used after Stop() to restart a container.
func (*Container) WaitNotRunning ¶
func (*Container) WaitUntilRunning ¶
func (c *Container) WaitUntilRunning()
func (*Container) WatchStdoutFor ¶
Click to show internal directories.
Click to hide internal directories.