aiyara

package module
v0.0.0-...-346924d Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2016 License: MIT Imports: 23 Imported by: 0

README

Docker Machine driver plugin for Aiyara

This plugin adds support for Aiyara Cluster and fork from Vultr project.

Example for creating a new machine running Ubuntu 14.04: docker-machine create --driver aiyara --aiyara-host-range=192.168.5.[1:100] node

Command line flags:

  • --aiyara-host-range: Aiyara Node IP addresses in [from:to] format.
  • --aiyara-ssh-port: Aiyara SSH port.
  • --aiyara-ssh-user: Aiyara user name to connect via SSH.
  • --aiyara-ssh-passwd: Aiyara host password, must be same for the whole cluster

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSSHCommandFromDriver

func GetSSHCommandFromDriver(d drivers.Driver, args ...string) (*exec.Cmd, error)

func GetSSHCommandWithSSHPass

func GetSSHCommandWithSSHPass(host string, port int, user string, passwd string, args ...string) *exec.Cmd

func NewDriver

func NewDriver(machineName string, storePath string) drivers.Driver

Types

type AiyaraProvisioner

type AiyaraProvisioner struct {
	p.SSHCommander
	OsReleaseID       string
	DockerOptionsDir  string
	DaemonOptionsFile string
	Packages          []string
	OsReleaseInfo     *p.OsRelease
	Driver            drivers.Driver
	AuthOptions       auth.Options
	EngineOptions     engine.Options
	SwarmOptions      swarm.Options
}

func (*AiyaraProvisioner) CompatibleWithHost

func (provisioner *AiyaraProvisioner) CompatibleWithHost() bool

func (*AiyaraProvisioner) GenerateDockerOptions

func (provisioner *AiyaraProvisioner) GenerateDockerOptions(dockerPort int) (*p.DockerOptions, error)

func (*AiyaraProvisioner) GetAuthOptions

func (provisioner *AiyaraProvisioner) GetAuthOptions() auth.Options

func (*AiyaraProvisioner) GetDockerOptionsDir

func (provisioner *AiyaraProvisioner) GetDockerOptionsDir() string

func (*AiyaraProvisioner) GetDriver

func (provisioner *AiyaraProvisioner) GetDriver() drivers.Driver

func (*AiyaraProvisioner) GetOsReleaseInfo

func (provisioner *AiyaraProvisioner) GetOsReleaseInfo() (*p.OsRelease, error)

func (*AiyaraProvisioner) Hostname

func (provisioner *AiyaraProvisioner) Hostname() (string, error)

func (*AiyaraProvisioner) Package

func (provisioner *AiyaraProvisioner) Package(name string, action pkgaction.PackageAction) error

func (*AiyaraProvisioner) Provision

func (provisioner *AiyaraProvisioner) Provision(swarmOptions swarm.Options, authOptions auth.Options, engineOptions engine.Options) error

func (*AiyaraProvisioner) SSHCommand

func (provisioner *AiyaraProvisioner) SSHCommand(args string) (string, error)

func (*AiyaraProvisioner) Service

func (provisioner *AiyaraProvisioner) Service(name string, action serviceaction.ServiceAction) error

func (*AiyaraProvisioner) SetHostname

func (provisioner *AiyaraProvisioner) SetHostname(hostname string) error

func (*AiyaraProvisioner) SetOsReleaseInfo

func (provisioner *AiyaraProvisioner) SetOsReleaseInfo(info *p.OsRelease)

func (*AiyaraProvisioner) String

func (provisioner *AiyaraProvisioner) String() string

type Driver

type Driver struct {
	IPAddress   string
	MachineName string
	StorePath   string

	Host    string
	SSHPort int
	SSHUser string
	// contains filtered or unexported fields
}

func (*Driver) ClearSSHPasswd

func (d *Driver) ClearSSHPasswd()

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)

func (*Driver) GetMachineName

func (d *Driver) GetMachineName() string

func (*Driver) GetSSHHostname

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

func (*Driver) GetSSHKeyPath

func (d *Driver) GetSSHKeyPath() string

func (*Driver) GetSSHPort

func (d *Driver) GetSSHPort() (int, 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

type Provisioner

type Provisioner interface {
	p.Provisioner
	// contains filtered or unexported methods
}

func NewAiyaraProvisioner

func NewAiyaraProvisioner(d drivers.Driver) Provisioner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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