opentelekomcloud

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*drivers.BaseDriver
	Cloud                  string       `json:"cloud,omitempty"`
	AuthURL                string       `json:"auth_url,omitempty"`
	CACert                 string       `json:"ca_cert,omitempty"`
	ValidateCert           bool         `json:"validate_cert"`
	DomainID               string       `json:"domain_id,omitempty"`
	DomainName             string       `json:"domain_name,omitempty"`
	Username               string       `json:"username,omitempty"`
	Password               string       `json:"password,omitempty"`
	ProjectName            string       `json:"project_name,omitempty"`
	ProjectID              string       `json:"project_id,omitempty"`
	Region                 string       `json:"region,omitempty"`
	AccessKey              string       `json:"access_key,omitempty"`
	SecretKey              string       `json:"secret_key,omitempty"`
	AvailabilityZone       string       `json:"-"`
	EndpointType           string       `json:"endpoint_type,omitempty"`
	InstanceID             string       `json:"instance_id"`
	FlavorName             string       `json:"-"`
	FlavorID               string       `json:"-"`
	ImageName              string       `json:"-"`
	KeyPairName            managedSting `json:"key_pair"`
	VpcName                string       `json:"-"`
	VpcID                  managedSting `json:"vpc_id"`
	SubnetName             string       `json:"-"`
	SubnetID               managedSting `json:"subnet_id"`
	PrivateKeyFile         string       `json:"private_key"`
	SecurityGroups         []string     `json:"-"`
	SecurityGroupIDs       []string     `json:"-"`
	ServerGroup            string       `json:"-"`
	ServerGroupID          string       `json:"-"`
	ManagedSecurityGroup   string       `json:"-"`
	ManagedSecurityGroupID string       `json:"managed_security_group,omitempty"`
	ElasticIP              managedSting `json:"eip"`
	Token                  string       `json:"token,omitempty"`
	UserDataFile           string       `json:"-"`
	UserData               []byte       `json:"-"`
	Tags                   []string     `json:"-"`
	IPVersion              int          `json:"-"`

	RootVolumeOpts *services.DiskOpts `json:"-"`
	// contains filtered or unexported fields
}

Driver for docker-machine

func NewDriver

func NewDriver(hostName, storePath string) *Driver

NewDriver create new driver instance

func (*Driver) Authenticate

func (d *Driver) Authenticate() error

Authenticate - DMD auth

func (*Driver) Create

func (d *Driver) Create() error

Create creates new ECS used for docker-machine

func (*Driver) DriverName

func (d *Driver) DriverName() string

DriverName - get driverName

func (*Driver) GetCreateFlags

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

GetCreateFlags - DMD flags

func (*Driver) GetIP

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

GetIP - get ssh ip

func (*Driver) GetSSHHostname

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

GetSSHHostname - get ssh hostname

func (*Driver) GetSSHPort

func (d *Driver) GetSSHPort() (int, error)

GetSSHPort - get ssh port

func (*Driver) GetSSHUsername

func (d *Driver) GetSSHUsername() string

GetSSHUsername - get ssh username

func (*Driver) GetState

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

GetState - get instance status

func (*Driver) GetURL

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

GetURL - get ssh url

func (*Driver) Kill

func (d *Driver) Kill() error

Kill the server

func (*Driver) Remove

func (d *Driver) Remove() error

Remove the server

func (*Driver) Restart

func (d *Driver) Restart() error

Restart the server

func (*Driver) SetConfigFromFlags

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

SetConfigFromFlags loads driver configuration from given flags

func (*Driver) Start

func (d *Driver) Start() error

Start the server

func (*Driver) Stop

func (d *Driver) Stop() error

Stop the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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