Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { common.NodeComponent // Base component. // contains filtered or unexported fields }
Containers manager responsible for interacting with the Docker daemon and managing all the interaction with the deployed containers. Basically it is a local node manager for the containers.
func NewManager ¶
func NewManager(config *configuration.Configuration, dockerClient external.DockerClient, supplier supplierLocal) *Manager
NewManager creates a new containers manager component.
func (*Manager) StartContainer ¶
func (man *Manager) StartContainer(fromBuyer *types.Node, offer *types.Offer, containersConfigs []types.ContainerConfig, totalResourcesNecessary resources.Resources) ([]types.ContainerStatus, error)
Verify if the offer is valid and alert the supplier and after that start the container in the Docker engine.
func (*Manager) StopContainer ¶
StopContainer stop a local container in the Docker engine and remove it.
Click to show internal directories.
Click to hide internal directories.