Documentation ¶
Index ¶
- type Address
- type BindMount
- type Container
- type ContainerStatus
- type DockerRunner
- func (r *DockerRunner) Attach(id string) (io.WriteCloser, io.ReadCloser, error)
- func (r *DockerRunner) LogLogs(id string, logger log.Logger) error
- func (r *DockerRunner) Pull(c *Container, output *os.File) error
- func (r *DockerRunner) Start(c *Container) (*ContainerStatus, error)
- func (r *DockerRunner) Stop(id string) error
- func (r *DockerRunner) StopAll() error
- func (r *DockerRunner) Wait(id string) (int, error)
- type HijackedResponseReader
- type Port
- type PortMapping
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindMount ¶
func NewBindMount ¶
type Container ¶
type Container struct { Name string Image string Command []string Args []string Env []string User string SecurityOpt []string MemoryLimitBytes int64 CPULimitCores float64 BindMounts []*BindMount PortMapping *PortMapping Hostname string WorkingDir string IPCMode string Sound bool // If true, the entrypoint of the image will be overridden. Only used for // `diambra agent test`. OverrideEntrypoint bool }
type ContainerStatus ¶
type ContainerStatus struct { ID string PortMapping *PortMapping Address string }
type DockerRunner ¶
DockerRunner implements Runner
func NewDockerRunner ¶
func (*DockerRunner) Attach ¶
func (r *DockerRunner) Attach(id string) (io.WriteCloser, io.ReadCloser, error)
func (*DockerRunner) Start ¶
func (r *DockerRunner) Start(c *Container) (*ContainerStatus, error)
func (*DockerRunner) Stop ¶
func (r *DockerRunner) Stop(id string) error
func (*DockerRunner) StopAll ¶
func (r *DockerRunner) StopAll() error
type HijackedResponseReader ¶
type HijackedResponseReader struct { log.Logger types.HijackedResponse }
func (*HijackedResponseReader) Close ¶
func (r *HijackedResponseReader) Close() error
type PortMapping ¶
func (*PortMapping) AddPortMapping ¶
func (pm *PortMapping) AddPortMapping(containerPort string, hostPort string, hostAddress string)
Click to show internal directories.
Click to hide internal directories.