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)

    Source Files

    Directories

    Path Synopsis
    rpc
    provisiontest
    Package provisiontest provides utilities for testing provisioners
    Package provisiontest provides utilities for testing provisioners
    ssh
    Package versioncmp provides functions for comparing version strings.
    Package versioncmp provides functions for comparing version strings.