scaleway

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VERSION represents the semver version of the package
	VERSION = "v1.2.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	*drivers.BaseDriver
	ServerID       string
	Organization   string
	IPID           string
	Token          string
	CommercialType string

	IPPersistant bool
	// contains filtered or unexported fields
}

Driver represents the docker driver interface

func NewDriver

func NewDriver(hostName, storePath string) *Driver

NewDriver returns a new driver

func (*Driver) Create

func (d *Driver) Create() (err error)

Create configures and starts a scaleway server

func (*Driver) DriverName

func (d *Driver) DriverName() string

DriverName returns the name of the driver

func (*Driver) GetCreateFlags

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

GetCreateFlags registers the flags

func (*Driver) GetSSHHostname

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

GetSSHHostname returns the IP of the server

func (*Driver) GetState

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

GetState returns the state of the server

func (*Driver) GetURL

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

GetURL returns IP + docker port

func (*Driver) Kill

func (d *Driver) Kill() error

Kill does nothing

func (*Driver) Remove

func (d *Driver) Remove() (err error)

Remove shutdowns the server and removes the IP

func (*Driver) Restart

func (d *Driver) Restart() error

Restart reboots the server

func (*Driver) SetConfigFromFlags

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

SetConfigFromFlags sets the flags

func (*Driver) Start

func (d *Driver) Start() error

Start starts the server

func (*Driver) Stop

func (d *Driver) Stop() error

Stop stops the server

Jump to

Keyboard shortcuts

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