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 ¶
initializes a new driver instance; drivers.Driver.NewDriver
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
func (*Driver) GetSSHHostname ¶
func (*Driver) GetSSHPort ¶
func (*Driver) GetSSHUsername ¶
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error
Click to show internal directories.
Click to hide internal directories.