Documentation ¶
Index ¶
- Constants
- Variables
- func GetInstanceID() *types.InstanceID
- type Executor
- func (d *Executor) Init(ctx types.Context, config gofig.Config) error
- func (d *Executor) InstanceID(ctx types.Context, opts types.Store) (*types.InstanceID, error)
- func (d *Executor) LocalDevices(ctx types.Context, opts *types.LocalDevicesOpts) (map[string]string, error)
- func (d *Executor) Name() string
- func (d *Executor) NextDevice(ctx types.Context, opts types.Store) (string, error)
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 ¶
Executor is the storage executor for the VFS storage driver.
func (*Executor) InstanceID ¶
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.
Click to show internal directories.
Click to hide internal directories.