Documentation ¶
Index ¶
- Variables
- func NewDriver(hostName, storePath string) drivers.Driver
- type Driver
- func (d *Driver) Create() (err error)
- func (d *Driver) CreateDataCenterIfNeeded() (err error)
- func (d *Driver) CreateIonosMachine() (err error)
- func (d *Driver) CreateIonosNatAndSetIp() (err error)
- func (d *Driver) CreateIonosServer() (err error)
- func (d *Driver) CreateLanIfNeeded() (err error)
- func (d *Driver) DriverName() string
- func (d *Driver) GetCreateFlags() []mcnflag.Flag
- func (d *Driver) GetFinalUserData() (userdata string, err error)
- func (d *Driver) GetIP() (string, error)
- func (d *Driver) GetSSHHostname() (string, 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 ¶
View Source
var DriverVersion string
DriverVersion will be set at every new release For working locally with the Docker-Machine-Driver, it will be set to `DEV`.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver URL string Username string Password string Token string Ram int Cores int SSHKey string SSHUser string DiskSize int DiskType string Image string ImagePassword string Size int NicDhcp bool NicIps []string ReservedIps *[]string Location string CpuFamily string ServerType string Template string DCExists bool LanExists bool NatExists bool UseAlias bool VolumeAvailabilityZone string ServerAvailabilityZone string LanId string LanName string AdditionalLans []string AdditionalLansIds []int AdditionalNicsIds []string DatacenterId string DatacenterName string VolumeId string NicId string ServerId string IpBlockId string CreateNat bool NatName string NatId string CloudInit string CloudInitB64 string NatPublicIps []string NatFlowlogs []string NatRules []string SkipDefaultNatRules bool NatLansToGateways map[string][]string PrivateLan bool IsLanPrivate bool SSHInCloudInit bool WaitForIpChange bool WaitForIpChangeTimeout int // Driver Version Version string // contains filtered or unexported fields }
func NewDerivedDriver ¶
func (*Driver) CreateDataCenterIfNeeded ¶
func (*Driver) CreateIonosMachine ¶
func (*Driver) CreateIonosNatAndSetIp ¶
func (*Driver) CreateIonosServer ¶
func (*Driver) CreateLanIfNeeded ¶
func (*Driver) DriverName ¶
DriverName returns the name of the driver
func (*Driver) GetCreateFlags ¶
GetCreateFlags returns list of create flags driver accepts.
func (*Driver) GetFinalUserData ¶
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns an IP address or hostname for the machine instance.
func (*Driver) GetSSHUsername ¶
func (*Driver) GetURL ¶
GetURL returns a socket address to connect to Docker engine of the machine instance.
func (*Driver) PreCreateCheck ¶
PreCreateCheck validates if driver values are valid to create the machine.
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(opts drivers.DriverOptions) error
SetConfigFromFlags initializes driver values from the command line values.
Click to show internal directories.
Click to hide internal directories.