Versions in this module Expand all Collapse all v0 v0.5.0 Apr 3, 2015 Changes in this version + var ErrHostDoesNotExist = errors.New("Host does not exist") + var ErrInvalidHostname = errors.New("Invalid hostname specified") + var ErrUnknownProviderType = errors.New("Unknown hypervisor type") + func ValidateHostName(name string) bool + func WaitForSSH(h *Host) error + type CertPathInfo struct + CaCertPath string + CaKeyPath string + ClientCertPath string + ClientKeyPath string + ServerCertPath string + ServerKeyPath string + type Filestore struct + func NewFilestore(rootPath string, caCert string, privateKey string) *Filestore + func (s Filestore) Exists(name string) (bool, error) + func (s Filestore) Get(name string) (*Host, error) + func (s Filestore) GetActive() (*Host, error) + func (s Filestore) GetCACertificatePath() (string, error) + func (s Filestore) GetPath() string + func (s Filestore) GetPrivateKeyPath() (string, error) + func (s Filestore) IsActive(host *Host) (bool, error) + func (s Filestore) List() ([]*Host, error) + func (s Filestore) Remove(name string, force bool) error + func (s Filestore) RemoveActive() error + func (s Filestore) Save(host *Host) error + func (s Filestore) SetActive(host *Host) error + type Host struct + CaCertPath string + ClientCertPath string + ClientKeyPath string + Driver drivers.Driver + DriverName string + HostOptions *HostOptions + Name string + PrivateKeyPath string + ServerCertPath string + ServerKeyPath string + StorePath string + SwarmDiscovery string + SwarmHost string + SwarmMaster bool + func FillNestedHost(host *Host) *Host + func LoadHost(name string, StorePath string) (*Host, error) + func NewHost(name, driverName string, hostOptions *HostOptions) (*Host, error) + func (h *Host) ConfigureAuth() error + func (h *Host) Create(name string) error + func (h *Host) GetSSHCommand(args ...string) (*exec.Cmd, error) + func (h *Host) GetURL() (string, error) + func (h *Host) Kill() error + func (h *Host) LoadConfig() error + func (h *Host) Remove(force bool) error + func (h *Host) Restart() error + func (h *Host) SaveConfig() error + func (h *Host) Start() error + func (h *Host) Stop() error + func (h *Host) Upgrade() error + type HostMetadata struct + CaCertPath string + ClientCertPath string + DriverName string + HostOptions HostOptions + PrivateKeyPath string + ServerCertPath string + ServerKeyPath string + StorePath string + func FillNestedHostMetadata(m *HostMetadata) *HostMetadata + type HostOptions struct + AuthOptions *auth.AuthOptions + Disk int + Driver string + EngineOptions *engine.EngineOptions + Memory int + SwarmOptions *swarm.SwarmOptions + type Machine struct + func New(store Store) (*Machine, error) + func (m *Machine) Create(name string, driverName string, hostOptions *HostOptions, ...) (*Host, error) + func (m *Machine) Exists(name string) (bool, error) + func (m *Machine) Get(name string) (*Host, error) + func (m *Machine) GetActive() (*Host, error) + func (m *Machine) IsActive(host *Host) (bool, error) + func (m *Machine) List() ([]*Host, error) + func (m *Machine) Remove(name string, force bool) error + func (m *Machine) RemoveActive() error + func (m *Machine) SetActive(host *Host) error + type Store interface + Exists func(name string) (bool, error) + Get func(name string) (*Host, error) + GetActive func() (*Host, error) + GetCACertificatePath func() (string, error) + GetPath func() string + GetPrivateKeyPath func() (string, error) + IsActive func(host *Host) (bool, error) + List func() ([]*Host, error) + Remove func(name string, force bool) error + RemoveActive func() error + Save func(host *Host) error + SetActive func(host *Host) error v0.2.0-do-fix-ssh-patch Apr 3, 2015