executor

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the driver.
	Name = "mock"
)

Variables

View Source
var (
	NextDeviceVals = []string{"/dev/mock0", "/dev/mock1", "/dev/mock2"}
)

Functions

func GetInstanceID

func GetInstanceID() *types.InstanceID

GetInstanceID gets the mock instance ID.

Types

type Executor

type Executor struct {
	Config gofig.Config
	// contains filtered or unexported fields
}

Executor is the storage executor for the VFS storage driver.

func NewExecutor

func NewExecutor() *Executor

NewExecutor returns a new executor.

func (*Executor) Init

func (d *Executor) Init(ctx types.Context, config gofig.Config) error

func (*Executor) InstanceID

func (d *Executor) InstanceID(
	ctx types.Context,
	opts types.Store) (*types.InstanceID, error)

InstanceID returns the local system's InstanceID.

func (*Executor) LocalDevices

func (d *Executor) LocalDevices(
	ctx types.Context,
	opts *types.LocalDevicesOpts) (map[string]string, error)

LocalDevices returns a map of the system's local devices.

func (*Executor) Name

func (d *Executor) Name() string

func (*Executor) NextDevice

func (d *Executor) NextDevice(
	ctx types.Context,
	opts types.Store) (string, error)

NextDevice returns the next available device.

Jump to

Keyboard shortcuts

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