Documentation ¶
Index ¶
- Constants
- Variables
- func LookupSRV(service, proto, zone string) (targets []*net.SRV, err error)
- type Host
- type Instance
- func (inst *Instance) DockerHostName() string
- func (inst *Instance) HostName() string
- func (inst *Instance) NewDockerClient() *docker.Client
- func (inst *Instance) SwarmInit() (addr string, err error)
- func (inst *Instance) SwarmJoin(token string, targets ...string) (err error)
- func (inst *Instance) SwarmToken() (manager, worker string, err error)
- type RegisteredInstances
Constants ¶
View Source
const COMPOSE = `` /* 1292-byte string literal not displayed */
View Source
const CONFIGURE_SYSTEM = `` /* 1537-byte string literal not displayed */
View Source
const DOCKER_DAEMON_CONFIG = `{
"hosts": [
"unix:///var/run/docker.sock"
],
"graph": "/data"
}
`
View Source
const INSTALL_DOCKER_ENGINE = `` /* 372-byte string literal not displayed */
View Source
const INSTALL_PKG = `` /* 158-byte string literal not displayed */
View Source
const SWARM_MASTER = `` /* 605-byte string literal not displayed */
Variables ¶
View Source
var ( // Instance roster InstList = make(RegisteredInstances) )
Functions ¶
Types ¶
type Host ¶
type Host struct { CertPath string Organization string User string Cert string IsDocker bool // contains filtered or unexported fields }
func NewDockerHost ¶
func NewDockerHost() *Host
func (*Host) InstallDockerEngine ¶
func (*Host) InstallDockerEngineCertificate ¶
func (*Host) SetProvision ¶
type Instance ¶
type Instance struct { Id string Driver string DockerHost *net.TCPAddr Host string AltHost []string State string // contains filtered or unexported fields }
func (*Instance) DockerHostName ¶
func (*Instance) NewDockerClient ¶
func (*Instance) SwarmToken ¶
type RegisteredInstances ¶
func (RegisteredInstances) Dump ¶
func (r RegisteredInstances) Dump() error
func (RegisteredInstances) Load ¶
func (r RegisteredInstances) Load() error
Click to show internal directories.
Click to hide internal directories.