Documentation ¶
Index ¶
- Variables
- func DefaultDriverOpts(driverName string) map[string]interface{}
- func GetPrivateAddress(m *dockermachine.Machine) string
- func GetPrivateIP(m *dockermachine.Machine) string
- func GetPrivateIPInterface(driverName string) (string, error)
- func IaaSCompatibleDriver(driverName string) bool
- type DockerMachine
- type DockerMachineConfig
- type DriverOpts
- type MachineProvisioner
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoPrivateIPInterface = errors.New("no private IP interface")
Functions ¶
func DefaultDriverOpts ¶
func GetPrivateAddress ¶
func GetPrivateAddress(m *dockermachine.Machine) string
func GetPrivateIP ¶
func GetPrivateIP(m *dockermachine.Machine) string
func GetPrivateIPInterface ¶
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 ¶
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 MachineProvisioner ¶
type MachineProvisioner interface {
ProvisionMachine(map[string]interface{}) (*dockermachine.Machine, error)
}
Click to show internal directories.
Click to hide internal directories.