Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { Logdir string `json:"logdir"` // Network is the ID of the Network that the Services run on Network string `json:"network"` // Services is a list of Services that the manager manages Services map[string]*Service `json:"services"` // contains filtered or unexported fields }
func (*Manager) EnsureService ¶
EnsureService adds a service to the manager if it does not exist, and starts it, waiting for it to be healthy
func (*Manager) ListContainers ¶
ListContainers lists all containers from the manager
type Service ¶
type Service struct { // Name is the name of the service Name string `json:"name"` // Image is the docker image that the service runs Image string `json:"image"` // Mounts is a list of volumes that the service mounts Mounts []mount.Mount `json:"mounts"` // Env is a list of environment variables that the service uses Env []string `json:"env"` // Ports is a list of ports that the service exposes PortBindings map[nat.Port][]nat.PortBinding `json:"port_bindings"` // ExposedPorts is a list of ports that the service exposes ExposedPorts nat.PortSet `json:"exposed_ports"` // Command is the command that the service runs Entrypoint []string `json:"entrypoint"` // contains filtered or unexported fields }
Service is a docker container, that runs part of the application
Click to show internal directories.
Click to hide internal directories.