cockroach: github.com/cockroachdb/cockroach/pkg/cmd/roachprod/vm/local Index | Files

package local

import "github.com/cockroachdb/cockroach/pkg/cmd/roachprod/vm/local"

Index

Package Files

local.go

Constants

const ProviderName = config.Local

ProviderName is config.Local.

type Provider Uses

type Provider struct{}

A Provider is used to create stub VM objects.

func (*Provider) Active Uses

func (p *Provider) Active() bool

Active is part of the vm.Provider interface.

func (*Provider) CleanSSH Uses

func (p *Provider) CleanSSH() error

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

func (*Provider) ConfigSSH Uses

func (p *Provider) ConfigSSH() error

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

func (*Provider) Create Uses

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

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

func (*Provider) Delete Uses

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 Uses

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 Uses

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

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

func (*Provider) Flags Uses

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

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

func (*Provider) List Uses

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 Uses

func (p *Provider) Name() string

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

Package local imports 11 packages (graph) and is imported by 1 packages. Updated 2019-07-26. Refresh now. Tools for package owners.