local

package
v0.0.0-...-1f20b29 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const ProviderName = config.Local

ProviderName is config.Local.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

A Provider is used to create stub VM objects.

func (*Provider) CleanSSH

func (p *Provider) CleanSSH() error

CleanSSH is part of the vm.Provider interface. This implementation is a no-op.

func (*Provider) ConfigSSH

func (p *Provider) ConfigSSH() error

ConfigSSH is part of the vm.Provider interface. This implementation is a no-op.

func (*Provider) Create

func (p *Provider) Create(names []string, opts vm.CreateOpts) error

Create just creates fake host-info entries in the local filesystem

func (*Provider) Delete

func (p *Provider) Delete(vms vm.List) error

Delete is part of the vm.Provider interface. This implementation is a no-op.

func (*Provider) Extend

func (p *Provider) Extend(vms vm.List, lifetime time.Duration) error

Extend is part of the vm.Provider interface. This implementation returns an error.

func (*Provider) FindActiveAccount

func (p *Provider) FindActiveAccount() (string, error)

FindActiveAccount is part of the vm.Provider interface. This implementation is a no-op.

func (*Provider) Flags

func (p *Provider) Flags() vm.ProviderFlags

Flags is part of the vm.Provider interface. This implementation is a no-op.

func (*Provider) List

func (p *Provider) List() (ret vm.List, _ error)

List constructs N-many localhost VM instances, using SyncedCluster as a way to remember how many nodes we should have

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the Provider, which will also surface in VM.Provider

Jump to

Keyboard shortcuts

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