docker

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 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 DefaultClient

type DefaultClient struct {
	// contains filtered or unexported fields
}

DefaultClient interfaces with docker SDK.

func NewDockerClient

func NewDockerClient(config *configuration.Configuration) *DefaultClient

NewDockerClient creates a new docker client to interact with the local Docker Engine.

func (*DefaultClient) CheckContainerStatus

func (client *DefaultClient) CheckContainerStatus(containerID string) (myContainer.ContainerStatus, error)

CheckContainerStatus checks the container status (running, stopped, etc)

func (*DefaultClient) GetDockerCPUAndRAM

func (client *DefaultClient) GetDockerCPUAndRAM() (int, int)

Get CPUs and RAM dedicated to Docker engine (Decided by the user in Docker configuration).

func (*DefaultClient) RemoveContainer

func (client *DefaultClient) RemoveContainer(containerID string) error

RemoveContainer removes a container from the Docker engine (to avoid filling space in the node).

func (*DefaultClient) RunContainer

func (client *DefaultClient) RunContainer(contConfig caravelaTypes.ContainerConfig) (*caravelaTypes.ContainerStatus, error)

RunContainer launches a container from an image in the local Docker Engine.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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