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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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