Documentation ¶
Overview ¶
Analogical to Task
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidStateTransition ¶
Types ¶
type Config ¶
type Config struct { // Name of the task, also used as the container name Name string // AttachStdin boolean which determines if stdin should be attached AttachStdin bool // AttachStdout boolean which determines if stdout should be attached AttachStdout bool // AttachStderr boolean which determines if stderr should be attached AttachStderr bool // ExposedPorts list of ports exposed ExposedPorts nat.PortSet // Cmd to be run inside container (optional) Cmd []string // Image used to run the container Image string // Cpu Cpu float64 // Memory in MiB Memory int64 // Disk in GiB Disk int64 // Env variables Env []string // RestartPolicy for the container ["", "always", "unless-stopped", "on-failure"] RestartPolicy string }
type Docker ¶
func (*Docker) Inspect ¶
func (d *Docker) Inspect(containerID string) DockerInspectResponse
func (*Docker) Remove ¶
func (d *Docker) Remove(id string) DockerResult
func (*Docker) Run ¶
func (d *Docker) Run() DockerResult
func (*Docker) Stop ¶
func (d *Docker) Stop(id string) DockerResult
type DockerInspectResponse ¶
type DockerInspectResponse struct { Error error Container *types.ContainerJSON }
type DockerResult ¶
type Sail ¶
type Sail struct { ID uuid.UUID ContainerID string Name string State State Image string Cpu float64 Memory int64 Disk int64 ExposedPorts nat.PortSet HostPorts nat.PortMap PortBindings map[string]string RestartPolicy string StartTime time.Time FinishTime time.Time HealthCheck string RestartCount int }
Click to show internal directories.
Click to hide internal directories.