Documentation ¶
Index ¶
- type Driver
- func (d *Driver) Create() error
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetSSHHostname() (string, error)
- func (d *Driver) GetSSHPort() (int, error)
- func (d *Driver) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver AccessToken string Image string ImageID int64 ImageArch hcloud.Architecture Type string Location string KeyID int64 IsExistingKey bool ServerID int64 Volumes []string Networks []string UsePrivateNetwork bool DisablePublic4 bool DisablePublic6 bool PrimaryIPv4 string PrimaryIPv6 string Firewalls []string ServerLabels map[string]string AdditionalKeys []string AdditionalKeyIDs []int64 WaitOnError int WaitOnPolling int WaitForRunningTimeout int // contains filtered or unexported fields }
Driver contains hetzner-specific data to implement drivers.Driver
func NewDriver ¶
NewDriver initializes a new driver instance; see drivers.Driver.NewDriver
func (*Driver) Create ¶
Create actually creates the hetzner-cloud server; see drivers.Driver.Create
func (*Driver) DriverName ¶
DriverName returns the hard-coded string "hetzner"; see drivers.Driver.DriverName
func (*Driver) GetCreateFlags ¶
GetCreateFlags retrieves additional driver-specific arguments; see drivers.Driver.GetCreateFlags
func (*Driver) GetSSHHostname ¶
GetSSHHostname retrieves the SSH host to connect to the machine; see drivers.Driver.GetSSHHostname
func (*Driver) GetSSHPort ¶
GetSSHPort retrieves the port used to connect to the server during provisioning
func (*Driver) GetSSHUsername ¶
GetSSHUsername retrieves the SSH username used to connect to the server during provisioning
func (*Driver) GetState ¶
GetState retrieves the state the machine is currently in; see drivers.Driver.GetState
func (*Driver) GetURL ¶
GetURL retrieves the URL of the docker daemon on the machine; see drivers.Driver.GetURL
func (*Driver) Kill ¶
Kill forcefully shuts down the hetzner cloud server; see drivers.Driver.Kill
func (*Driver) PreCreateCheck ¶
PreCreateCheck validates the Driver data is in a valid state for creation; see drivers.Driver.PreCreateCheck
func (*Driver) Remove ¶
Remove deletes the hetzner server and additional resources created during creation; see drivers.Driver.Remove
func (*Driver) Restart ¶
Restart instructs the hetzner cloud server to reboot; see drivers.Driver.Restart
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error
SetConfigFromFlags handles additional driver arguments as retrieved by Driver.GetCreateFlags; see drivers.Driver.SetConfigFromFlags
func (*Driver) Start ¶
Start instructs the hetzner cloud server to power up; see drivers.Driver.Start
func (*Driver) Stop ¶
Stop instructs the hetzner cloud server to shut down; see drivers.Driver.Stop