dm

package
v0.0.0-...-bab1246 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoPrivateIPInterface = errors.New("no private IP interface")

Functions

func DefaultDriverOpts

func DefaultDriverOpts(driverName string) map[string]interface{}

func GetPrivateAddress

func GetPrivateAddress(m *dockermachine.Machine) string

func GetPrivateIP

func GetPrivateIP(m *dockermachine.Machine) string

func GetPrivateIPInterface

func GetPrivateIPInterface(driverName string) (string, error)

GetPrivateIPInterface returns the interface name which contains the private IP address of a machine provisioned with the given driver. This is a workaround while the Driver interface does not provide a way to access the instance private IP.

func IaaSCompatibleDriver

func IaaSCompatibleDriver(driverName string) bool

Types

type DockerMachine

type DockerMachine struct {
	API dockermachine.DockerMachineAPI
	// contains filtered or unexported fields
}

func NewDockerMachine

func NewDockerMachine(config DockerMachineConfig, name string) (*DockerMachine, error)

func (*DockerMachine) Close

func (d *DockerMachine) Close() error

func (*DockerMachine) CreateMachine

func (d *DockerMachine) CreateMachine(driverOpts map[string]interface{}) (*dockermachine.Machine, error)

func (*DockerMachine) DeleteAll

func (d *DockerMachine) DeleteAll() error

func (*DockerMachine) ProvisionMachine

func (d *DockerMachine) ProvisionMachine(driverOpts map[string]interface{}) (*dockermachine.Machine, error)

type DockerMachineConfig

type DockerMachineConfig struct {
	CAPath              string      `yaml:"ca-path,omitempty"`
	DriverOpts          *DriverOpts `yaml:"driver,omitempty"`
	DockerHubMirror     string      `yaml:"docker-hub-mirror,omitempty"`
	DockerFlags         []string    `yaml:"docker-flags,omitempty"`
	DockerStorageDriver string      `yaml:"docker-storage-driver,omitempty"`
	DockerInstallURL    string      `yaml:"docker-install-url,omitempty"`
}

type DriverOpts

type DriverOpts struct {
	Name    string
	Options map[string]interface{} `yaml:",omitempty"`
}

type MachineProvisioner

type MachineProvisioner interface {
	ProvisionMachine(map[string]interface{}) (*dockermachine.Machine, error)
}

Jump to

Keyboard shortcuts

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