Documentation ¶
Index ¶
- func SetSSHClientCreator(creator SSHClientCreator)
- func ValidateHostName(name string) bool
- type AuthOptionsV1
- type Host
- func (h *Host) AuthOptions() *auth.Options
- 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
- type MetadataV0
- type Options
- type OptionsV1
- type RawDataDriver
- type RawHost
- type SSHClientCreator
- type StandardSSHClientCreator
- type V0
- type V1
- type V2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetSSHClientCreator ¶
func SetSSHClientCreator(creator SSHClientCreator)
func ValidateHostName ¶
Types ¶
type AuthOptionsV1 ¶
type Host ¶
type Host struct { ConfigVersion int Driver drivers.Driver DriverName string HostOptions *Options Name string RawDriver []byte `json:"-"` }
func MigrateHostV2ToHostV3 ¶
func (*Host) AuthOptions ¶
func (*Host) ConfigureAuth ¶
func (*Host) DockerVersion ¶
func (*Host) WaitForDocker ¶
type Metadata ¶
func MigrateHostMetadataV0ToHostMetadataV1 ¶
func MigrateHostMetadataV0ToHostMetadataV1(m *MetadataV0) *Metadata
MigrateHostMetadataV0ToHostMetadataV1 fills nested host metadata and modifies if needed this is used for configuration updates
type MetadataV0 ¶
type RawDataDriver ¶
type RawDataDriver struct { *none.Driver Data []byte // passed directly back when invoking json.Marshal on this type }
func (*RawDataDriver) MarshalJSON ¶
func (r *RawDataDriver) MarshalJSON() ([]byte, error)
func (*RawDataDriver) UnmarshalJSON ¶
func (r *RawDataDriver) UnmarshalJSON(data []byte) error
type RawHost ¶
type RawHost struct {
Driver *json.RawMessage
}
type SSHClientCreator ¶
type StandardSSHClientCreator ¶
func (*StandardSSHClientCreator) CreateSSHClient ¶
type V0 ¶
type V0 struct { Name string `json:"-"` Driver drivers.Driver DriverName string ConfigVersion int HostOptions *Options StorePath string CaCertPath string PrivateKeyPath string ServerCertPath string ServerKeyPath string ClientCertPath string SwarmHost string SwarmMaster bool SwarmDiscovery string ClientKeyPath string }
Click to show internal directories.
Click to hide internal directories.