handlers

package
v0.39.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 34 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegExMachineDirEnv      = regexp.MustCompile("^" + machineDirEnvKey + ".*")
	RegExMachinePluginToken = regexp.MustCompile("^" + "MACHINE_PLUGIN_TOKEN=" + ".*")
	RegExMachineDriverName  = regexp.MustCompile("^" + "MACHINE_PLUGIN_DRIVER_NAME=" + ".*")
)

Functions

func ActivateDriver added in v0.31.0

func ActivateDriver(event *events.Event, apiClient *client.RancherClient) error

func ActivateMachine

func ActivateMachine(event *events.Event, apiClient *client.RancherClient) (err error)

func CreateMachine

func CreateMachine(event *events.Event, apiClient *client.RancherClient) error

func DeactivateDriver added in v0.31.0

func DeactivateDriver(event *events.Event, apiClient *client.RancherClient) error

func ErrorDriver added in v0.34.0

func ErrorDriver(event *events.Event, apiClient *client.RancherClient) error

func GetDockerClient

func GetDockerClient(machineDir string, machineName string) (*docker.Client, error)

GetDockerClient Returns a TLS-enabled docker client for the specified machine.

func PingNoOp

func PingNoOp(event *events.Event, apiClient *client.RancherClient) error

func PurgeMachine

func PurgeMachine(event *events.Event, apiClient *client.RancherClient) error

func RemoveDriver added in v0.31.0

func RemoveDriver(event *events.Event, apiClient *client.RancherClient) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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