linode

package module
v0.0.0-...-5b97ad6 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2017 License: MIT Imports: 11 Imported by: 0

README

docker-machine-linode

Linode Driver Plugin for docker-machine.

Requires docker-machine version > v.0.5.0-rc1

Install

First, docker-machine v0.5.0 rc2 is required, documentation for how to install docker-machine is available here.

or you can install docker-machine from source code by running these commands

$ go get github.com/docker/machine
$ cd $GOPATH/src/github.com/docker/machine
$ make build

Then, install docker-machine-linode driver in the $GOPATH and add $GOPATH/bin to the $PATH env.

go get github.com/taoh/docker-machine-linode
cd $GOPATH/src/github.com/taoh/docker-machine-linode
make
make install

Run

$ docker-machine create -d linode --linode-api-key=<linode-api-key> --linode-root-pass=<linode-root-pass> linode

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

	APIKey     string
	IPAddress  string
	DockerPort int

	LinodeId    int
	LinodeLabel string

	DataCenterId   int
	PlanId         int
	PaymentTerm    int
	RootPassword   string
	SSHPort        int
	DistributionId int
	KernelId       int
	// contains filtered or unexported fields
}

Driver is the implementation of BaseDriver interface

func NewDriver

func NewDriver(hostName, storePath string) *Driver

NewDriver

func (*Driver) Create

func (d *Driver) Create() error

func (*Driver) DriverName

func (d *Driver) DriverName() string

func (*Driver) GetCreateFlags

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

func (*Driver) GetIP

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

Get IP Address for the Linode. Note that currently the IP Address is cached

func (*Driver) GetSSHHostname

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

func (*Driver) GetSSHUsername

func (d *Driver) GetSSHUsername() string

func (*Driver) GetState

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

func (*Driver) GetURL

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

func (*Driver) Kill

func (d *Driver) Kill() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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