Documentation
¶
Index ¶
- func ValidateHostName(name string) bool
- type AuthOptionsV1
- type Host
- func (h *Host) ConfigureAuth() error
- func (h *Host) CreateSSHClient() (ssh.Client, error)
- func (h *Host) GetURL() (string, error)
- func (h *Host) Kill() 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) Upgrade() error
- type HostMetadata
- type HostMetadataV0
- type HostOptions
- type HostOptionsV1
- type HostV0
- type HostV1
- type HostV2
- type RawDataDriver
- type RawHost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateHostName ¶
Types ¶
type AuthOptionsV1 ¶
type Host ¶
type Host struct {
ConfigVersion int
Driver drivers.Driver
DriverName string
HostOptions *HostOptions
Name string
RawDriver []byte
}
func MigrateHostV2ToHostV3 ¶
func (*Host) ConfigureAuth ¶
type HostMetadata ¶
type HostMetadata struct {
ConfigVersion int
DriverName string
HostOptions HostOptions
}
func MigrateHostMetadataV0ToHostMetadataV1 ¶
func MigrateHostMetadataV0ToHostMetadataV1(m *HostMetadataV0) *HostMetadata
fills nested host metadata and modifies if needed this is used for configuration updates
type HostMetadataV0 ¶
type HostOptions ¶
type HostOptions struct {
Driver string
Memory int
Disk int
EngineOptions *engine.EngineOptions
SwarmOptions *swarm.SwarmOptions
AuthOptions *auth.AuthOptions
}
type HostOptionsV1 ¶
type HostOptionsV1 struct {
Driver string
Memory int
Disk int
EngineOptions *engine.EngineOptions
SwarmOptions *swarm.SwarmOptions
AuthOptions *AuthOptionsV1
}
type HostV0 ¶
type HostV0 struct {
Name string `json:"-"`
Driver drivers.Driver
DriverName string
ConfigVersion int
HostOptions *HostOptions
StorePath string
CaCertPath string
PrivateKeyPath string
ServerCertPath string
ServerKeyPath string
ClientCertPath string
SwarmHost string
SwarmMaster bool
SwarmDiscovery string
ClientKeyPath string
}
type HostV1 ¶
type HostV1 struct {
ConfigVersion int
Driver drivers.Driver
DriverName string
HostOptions *HostOptionsV1
Name string `json:"-"`
StorePath string
}
func MigrateHostV0ToHostV1 ¶
validates host config and modifies if needed this is used for configuration updates
type HostV2 ¶
type HostV2 struct {
ConfigVersion int
Driver drivers.Driver
DriverName string
HostOptions *HostOptions
Name string
}
func MigrateHostV1ToHostV2 ¶
type RawDataDriver ¶
func (*RawDataDriver) MarshalJSON ¶
func (r *RawDataDriver) MarshalJSON() ([]byte, error)
type RawHost ¶
type RawHost struct {
Driver *json.RawMessage
}
Click to show internal directories.
Click to hide internal directories.