driver

package
v0.1.38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 30 Imported by: 2

Documentation

Index

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

func NewDriver

func NewDriver() drivers.Driver

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
	ServiceAccountID string
}

func (*Driver) Create

func (d *Driver) Create() error

Create creates a Yandex.Cloud VM instance acting as a docker host.

func (*Driver) Credentials added in v0.1.36

func (d *Driver) Credentials() (ycsdk.Credentials, error)

func (*Driver) DriverName

func (d *Driver) DriverName() string

func (*Driver) GetCreateFlags

func (d *Driver) GetCreateFlags() []mcnflag.Flag

func (*Driver) GetSSHHostname

func (d *Driver) GetSSHHostname() (string, error)

GetSSHHostname returns hostname for use with ssh

func (*Driver) GetSSHUsername

func (d *Driver) GetSSHUsername() string

GetSSHUsername returns username for use with ssh

func (*Driver) GetState

func (d *Driver) GetState() (state.State, error)

func (*Driver) GetURL

func (d *Driver) GetURL() (string, error)

GetURL returns the URL of the remote docker daemon.

func (*Driver) Kill

func (d *Driver) Kill() error

func (*Driver) ParsedLabels

func (d *Driver) ParsedLabels() map[string]string

func (*Driver) PreCreateCheck

func (d *Driver) PreCreateCheck() error

func (*Driver) Remove

func (d *Driver) Remove() error

func (*Driver) Restart

func (d *Driver) Restart() error

func (*Driver) SetConfigFromFlags

func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error

func (*Driver) Start

func (d *Driver) Start() error

func (*Driver) Stop

func (d *Driver) Stop() error

type YCClient

type YCClient struct {
	// contains filtered or unexported fields
}

func NewYCClient

func NewYCClient(d *Driver) (*YCClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL