Versions in this module Expand all Collapse all v0 v0.16.2 Sep 2, 2019 Changes in this version + func SetSSHClientCreator(creator SSHClientCreator) + func ValidateHostName(name string) bool + type AuthOptionsV1 struct + CaCertPath string + CaCertRemotePath string + ClientCertPath string + ClientKeyPath string + PrivateKeyPath string + ServerCertPath string + ServerCertRemotePath string + ServerKeyPath string + ServerKeyRemotePath string + StorePath string + type Host struct + ConfigVersion int + Driver drivers.Driver + DriverName string + HostOptions *Options + Name string + RawDriver []byte + func MigrateHost(h *Host, data []byte) (*Host, bool, error) + func MigrateHostV2ToHostV3(hostV2 *V2, data []byte, storePath string) *Host + func (h *Host) AuthOptions() *auth.Options + func (h *Host) ConfigureAllAuth() error + func (h *Host) ConfigureAuth() error + func (h *Host) CreateSSHClient() (ssh.Client, error) + func (h *Host) DockerVersion() (string, error) + func (h *Host) Kill() error + func (h *Host) Provision() error + func (h *Host) Restart() error + func (h *Host) RunSSHCommand(command string) (string, error) + func (h *Host) Start() error + func (h *Host) Stop() error + func (h *Host) URL() (string, error) + func (h *Host) Upgrade() error + func (h *Host) WaitForDocker() error + type Metadata struct + ConfigVersion int + DriverName string + HostOptions Options + func MigrateHostMetadataV0ToHostMetadataV1(m *MetadataV0) *Metadata + type MetadataV0 struct + CaCertPath string + ClientCertPath string + ConfigVersion int + DriverName string + HostOptions Options + PrivateKeyPath string + ServerCertPath string + ServerKeyPath string + StorePath string + type Options struct + AuthOptions *auth.Options + Disk int + Driver string + EngineOptions *engine.Options + Memory int + SwarmOptions *swarm.Options + type OptionsV1 struct + AuthOptions *AuthOptionsV1 + Disk int + Driver string + EngineOptions *engine.Options + Memory int + SwarmOptions *swarm.Options + type RawDataDriver struct + Data []byte + func (r *RawDataDriver) MarshalJSON() ([]byte, error) + func (r *RawDataDriver) UnmarshalJSON(data []byte) error + type RawHost struct + Driver *json.RawMessage + type SSHClientCreator interface + CreateSSHClient func(d drivers.Driver) (ssh.Client, error) + type StandardSSHClientCreator struct + func (creator *StandardSSHClientCreator) CreateSSHClient(d drivers.Driver) (ssh.Client, error) + type V0 struct + CaCertPath string + ClientCertPath string + ClientKeyPath string + ConfigVersion int + Driver drivers.Driver + DriverName string + HostOptions *Options + Name string + PrivateKeyPath string + ServerCertPath string + ServerKeyPath string + StorePath string + SwarmDiscovery string + SwarmHost string + SwarmMaster bool + type V1 struct + ConfigVersion int + Driver drivers.Driver + DriverName string + HostOptions *OptionsV1 + Name string + StorePath string + func MigrateHostV0ToHostV1(hostV0 *V0) *V1 + type V2 struct + ConfigVersion int + Driver drivers.Driver + DriverName string + HostOptions *Options + Name string + func MigrateHostV1ToHostV2(hostV1 *V1) *V2