Documentation ¶
Index ¶
- Constants
- func Add(cluster string, datacenter string, host string, ipaddress string, ...) error
- func AddDNS(host string, ipaddress string)
- func AddFilter(filter filters.Args, name string, value string)
- func AddIPAlias(ipaddress string)
- func AddLabelFilter(filter filters.Args, name string, value string)
- func AddToDockerNetwork(network string, host string)
- func Exists(host string) bool
- func GetDockerContainer(host string) (*types.Container, error)
- func GetDockerContainers(filter filters.Args) ([]types.Container, error)
- func GetHasProcess(host string, processName string) (bool, error)
- func GetProcesses(host string) (types.ContainerProcessList, error)
- func Remove(container *types.Container) error
- func RemoveDNS(host string)
- func RemoveDockerNetwork(network string)
- func RemoveHostsIPAlias(container *types.Container) error
- func RemoveIPAlias(ipaddress string)
- func StartSSH(host string)
Constants ¶
const DOCKERLABELCLUSTER = DOCKERLABELNAMESPACE + "cluster"
DOCKERLABELCLUSTER Represents the cluster label name stored in Docker.
const DOCKERLABELDATACENTER = DOCKERLABELNAMESPACE + "datacenter"
DOCKERLABELDATACENTER Represents the datacenter label name stored in Docker.
const DOCKERLABELIPADDRESS = DOCKERLABELNAMESPACE + "ipaddress"
DOCKERLABELIPADDRESS Represents the ip address label stored in Docker.
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 AddIPAlias ¶
func AddIPAlias(ipaddress string)
AddIPAlias Adds an alias for the specified IP address to the loopback adapter.
func AddLabelFilter ¶
AddLabelFilter Adds a filter to the Docker query.
func AddToDockerNetwork ¶
AddToDockerNetwork Adds the specified host to the specified docker network.
func GetDockerContainer ¶
GetDockerContainer Returns the container associated with the provided host.
func GetDockerContainers ¶
GetDockerContainers Returns all the docker containers.
func GetHasProcess ¶
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 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 ¶
RemoveHostsIPAlias Removes the specified hosts IP alias.
func RemoveIPAlias ¶
func RemoveIPAlias(ipaddress string)
RemoveIPAlias Removes the specified IP address alias from the loopback adapter.
Types ¶
This section is empty.