libmachine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	io.Closer
	NewHost(driverName string, rawDriver []byte) (*host.Host, error)
	Create(h *host.Host) error
	persist.Store
	GetMachinesDir() string
}

type Client

type Client struct {
	IsDebug        bool
	SSHClientType  ssh.ClientType
	GithubAPIToken string
	*persist.Filestore
	// contains filtered or unexported fields
}

func NewClient

func NewClient(storePath, certsDir string) *Client

func (*Client) Close

func (api *Client) Close() error

func (*Client) Create

func (api *Client) Create(h *host.Host) error

Create is the wrapper method which covers all of the boilerplate around actually creating, provisioning, and persisting an instance in the store.

func (*Client) Load

func (api *Client) Load(name string) (*host.Host, error)

func (*Client) NewHost

func (api *Client) NewHost(driverName string, rawDriver []byte) (*host.Host, error)

Directories

Path Synopsis
rpc
provisiontest
Package provisiontest provides utilities for testing provisioners
Package provisiontest provides utilities for testing provisioners
ssh

Jump to

Keyboard shortcuts

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