providers

package
Version: v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(name string, provider Provider) error

Types

type AmazonEC2Handler

type AmazonEC2Handler struct {
}

func (*AmazonEC2Handler) HandleCreate

func (*AmazonEC2Handler) HandleCreate(machine *client.Machine, machineDir string) error

func (*AmazonEC2Handler) HandleError

func (*AmazonEC2Handler) HandleError(msg string) string

type AzureHandler

type AzureHandler struct {
}

func (*AzureHandler) HandleCreate

func (*AzureHandler) HandleCreate(machine *client.Machine, machineDir string) error

func (*AzureHandler) HandleError

func (*AzureHandler) HandleError(msg string) string

type DefaultProvider

type DefaultProvider struct {
}

func (*DefaultProvider) HandleCreate

func (*DefaultProvider) HandleCreate(machine *client.Machine, machineDir string) error

func (*DefaultProvider) HandleError

func (*DefaultProvider) HandleError(msg string) string

type DigitaloceanHandler

type DigitaloceanHandler struct {
}

func (*DigitaloceanHandler) HandleCreate

func (*DigitaloceanHandler) HandleCreate(machine *client.Machine, machineDir string) error

func (*DigitaloceanHandler) HandleError

func (*DigitaloceanHandler) HandleError(msg string) string

type PacketHandler

type PacketHandler struct {
}

func (*PacketHandler) HandleCreate

func (*PacketHandler) HandleCreate(machine *client.Machine, machineDir string) error

func (*PacketHandler) HandleError

func (*PacketHandler) HandleError(msg string) string

type Provider

type Provider interface {
	HandleCreate(machine *client.Machine, machineDir string) error

	HandleError(msg string) string
}

func GetProviderHandler

func GetProviderHandler(name string) Provider

type RackspaceHandler

type RackspaceHandler struct {
}

func (*RackspaceHandler) HandleCreate

func (*RackspaceHandler) HandleCreate(machine *client.Machine, machineDir string) error

func (*RackspaceHandler) HandleError

func (*RackspaceHandler) HandleError(msg string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL