containers

package
v0.0.0-...-ac11951 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DOCKERLABELCLUSTER = DOCKERLABELNAMESPACE + "cluster"

DOCKERLABELCLUSTER Represents the cluster label name stored in Docker.

View Source
const DOCKERLABELDATACENTER = DOCKERLABELNAMESPACE + "datacenter"

DOCKERLABELDATACENTER Represents the datacenter label name stored in Docker.

View Source
const DOCKERLABELIPADDRESS = DOCKERLABELNAMESPACE + "ipaddress"

DOCKERLABELIPADDRESS Represents the ip address label stored in Docker.

View Source
const DOCKERLABELNAMESPACE = "cloudraker."

DOCKERLABELNAMESPACE Represents namespace all labels get stored.

Variables

This section is empty.

Functions

func Add

func Add(cluster string, datacenter string, host string, ipaddress string, mysqlPort int, sshPort int) error

Add Adds a new container to the specified cluster and datacenter.

func AddDNS

func AddDNS(host string, ipaddress string)

AddDNS Adds the specified dns entry pointing to the specified IP address.

func AddFilter

func AddFilter(filter filters.Args, name string, value string)

AddFilter Adds a filter to the Docker query.

func AddIPAlias

func AddIPAlias(ipaddress string)

AddIPAlias Adds an alias for the specified IP address to the loopback adapter.

func AddLabelFilter

func AddLabelFilter(filter filters.Args, name string, value string)

AddLabelFilter Adds a filter to the Docker query.

func AddToDockerNetwork

func AddToDockerNetwork(network string, host string)

AddToDockerNetwork Adds the specified host to the specified docker network.

func Exists

func Exists(host string) bool

Exists Returns whether the specified container exists.

func GetDockerContainer

func GetDockerContainer(host string) (*types.Container, error)

GetDockerContainer Returns the container associated with the provided host.

func GetDockerContainers

func GetDockerContainers(filter filters.Args) ([]types.Container, error)

GetDockerContainers Returns all the docker containers.

func GetHasProcess

func GetHasProcess(host string, processName string) (bool, error)

GetHasProcess Returns whether the given host has a process running.

func GetProcesses

func GetProcesses(host string) (types.ContainerProcessList, error)

GetProcesses Returns list of processes running in the specified container.

func Remove

func Remove(container *types.Container) error

Remove Removes a new container from the specified cluster.

func RemoveDNS

func RemoveDNS(host string)

RemoveDNS Removes the specified dns entry pointing to the specified IP address.

func RemoveDockerNetwork

func RemoveDockerNetwork(network string)

RemoveDockerNetwork Removes the specified docker network.

func RemoveHostsIPAlias

func RemoveHostsIPAlias(container *types.Container) error

RemoveHostsIPAlias Removes the specified hosts IP alias.

func RemoveIPAlias

func RemoveIPAlias(ipaddress string)

RemoveIPAlias Removes the specified IP address alias from the loopback adapter.

func StartSSH

func StartSSH(host string)

StartSSH Starts the SSH daemon on the specified host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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