{"modulePath":"github.com/codedellemc/libstorage","version":"v0.1.0-rc2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Constants\n\n```go\nconst (\n\t// Name is the name of the driver.\n\tName = \"mock\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tNextDeviceVals = []string{\"/dev/mock0\", \"/dev/mock1\", \"/dev/mock2\"}\n)\n```\n\n## Functions\n\n```go\nfunc GetInstanceID() *types.InstanceID\n```\nGetInstanceID gets the mock instance ID.\n\n## Types\n\n```go\ntype Executor struct {\n\tConfig gofig.Config\n\t// contains filtered or unexported fields\n}\n```\nExecutor is the storage executor for the VFS storage driver.\n\n```go\nfunc NewExecutor() *Executor\n```\nNewExecutor returns a new executor.\n\n```go\nfunc (d *Executor) Init(ctx types.Context, config gofig.Config) error\n```\n\n```go\nfunc (d *Executor) InstanceID(\n\tctx types.Context,\n\topts types.Store) (*types.InstanceID, error)\n```\nInstanceID returns the local system's InstanceID.\n\n```go\nfunc (d *Executor) LocalDevices(\n\tctx types.Context,\n\topts *types.LocalDevicesOpts) (map[string]string, error)\n```\nLocalDevices returns a map of the system's local devices.\n\n```go\nfunc (d *Executor) Name() string\n```\n\n```go\nfunc (d *Executor) NextDevice(\n\tctx types.Context,\n\topts types.Store) (string, error)\n```\nNextDevice returns the next available device.\n\n","path":"github.com/codedellemc/libstorage/drivers/storage/mock/executor","name":"executor","synopsis":"","isRedistributable":true}
