libmachine

package
v0.16.2-gitlab.15-rc2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 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
Package versioncmp provides functions for comparing version strings.
Package versioncmp provides functions for comparing version strings.

Jump to

Keyboard shortcuts

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