containers

package
v0.0.0-...-10b4495 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

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) DebugSizeBytes

func (m *Manager) DebugSizeBytes() int

func (*Manager) IsWorking

func (m *Manager) IsWorking() bool

func (*Manager) Start

func (m *Manager) Start()

func (*Manager) StartContainer

func (m *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) Stop

func (m *Manager) Stop()

func (*Manager) StopContainer

func (m *Manager) StopContainer(containerIDToStop string) error

StopContainer stop a local container in the Docker engine and remove it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL