Documentation ¶
Index ¶
- Constants
- func NewDriver() drivers.Driver
- 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) GetSSHUsername() string
- func (d *Driver) GetState() (state.State, error)
- func (d *Driver) GetURL() (string, error)
- func (d *Driver) Kill() error
- func (d *Driver) ParsedLabels() map[string]string
- func (d *Driver) PreCreateCheck() error
- func (d *Driver) Remove() error
- func (d *Driver) Restart() error
- func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
- func (d *Driver) Start() error
- func (d *Driver) Stop() error
- type YCClient
Constants ¶
View Source
const MaxRetries = 3
View Source
const StandardImagesFolderID = "standard-images"
View Source
const UserAgent = "docker-machine-driver-yandex"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct { *drivers.BaseDriver Endpoint string ServiceAccountKeyFile string Token string CloudID string Cores int CoreFraction int DiskSize int DiskType string FolderID string ImageFamily string ImageFolderID string ImageID string InstanceID string Labels []string Memory int Metadata map[string]string Nat bool PlatformID string Preemptible bool SSHUser string SubnetID string UseIPv6 bool UseInternalIP bool UserDataFile string Zone string StaticAddress string SecurityGroups []string }
func (*Driver) DriverName ¶
func (*Driver) GetCreateFlags ¶
func (*Driver) GetSSHHostname ¶
GetSSHHostname returns hostname for use with ssh
func (*Driver) GetSSHUsername ¶
GetSSHUsername returns username for use with ssh
func (*Driver) ParsedLabels ¶
func (*Driver) PreCreateCheck ¶
func (*Driver) SetConfigFromFlags ¶
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error
Click to show internal directories.
Click to hide internal directories.