vagrant

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vagrant

type Vagrant struct {
	VagrantBinPath string
	Name           string
	Workdir        string

	Stdout io.ReadWriter
	Stderr io.ReadWriter
	// contains filtered or unexported fields
}

func Up

func Up(ctx context.Context, opts ...VagrantOpt) (*Vagrant, error)

func (*Vagrant) Destroy

func (v *Vagrant) Destroy(ctx context.Context) error

func (*Vagrant) Exec

func (v *Vagrant) Exec(ctx context.Context, args ...string) ([]byte, error)

type VagrantOpt

type VagrantOpt func(*Vagrant)

func RunAsync

func RunAsync() VagrantOpt

func WithLogger

func WithLogger(log func(string, ...interface{})) VagrantOpt

func WithMachineName

func WithMachineName(name string) VagrantOpt

func WithStderr

func WithStderr(s io.ReadWriter) VagrantOpt

func WithStdout

func WithStdout(s io.ReadWriter) VagrantOpt

func WithVagrantBinPath

func WithVagrantBinPath(path string) VagrantOpt

func WithWorkdir

func WithWorkdir(workdir string) VagrantOpt

Jump to

Keyboard shortcuts

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