vagrant

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

The Provider object represents a connection to Vagrant.

func New

func New(namespace string) (*Provider, error)

New creates a new vagrant provider.

func (Provider) Boot

func (prvdr Provider) Boot(bootSet []db.Machine) ([]string, error)

Boot creates instances in the `prvdr` configured according to the `bootSet`.

func (*Provider) Cleanup

func (prvdr *Provider) Cleanup() error

Cleanup removes unnecessary detritus from this provider. It's intended to be called when there are no VMs running or expected to be running soon.

func (Provider) List

func (prvdr Provider) List() ([]db.Machine, error)

List queries `prvdr` for the list of booted machines.

func (Provider) SetACLs

func (prvdr Provider) SetACLs(acls []acl.ACL) error

SetACLs is a noop for vagrant.

func (Provider) Stop

func (prvdr Provider) Stop(machines []db.Machine) error

Stop shuts down `machines` in `prvdr.

func (*Provider) UpdateFloatingIPs

func (prvdr *Provider) UpdateFloatingIPs([]db.Machine) error

UpdateFloatingIPs is not supported.

Jump to

Keyboard shortcuts

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