{"modulePath":"github.com/codedellemc/libstorage","version":"v0.6.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package services\n\n## Functions\n\n```go\nfunc GetStorageService(\n\tctx types.Context, name string) types.StorageService\n```\nGetStorageService returns the storage service specified by the given name; otherwise a nil value is returned if no such service exists.\n\n```go\nfunc Init(ctx types.Context, config gofig.Config) error\n```\nInit initializes the types.\n\n```go\nfunc StorageServices(ctx types.Context) \u003c-chan types.StorageService\n```\nStorageServices returns a channel on which all the storage services are received.\n\n```go\nfunc TaskEnqueue(\n\tctx types.Context,\n\trun types.TaskRunFunc,\n\tschema []byte) *types.Task\n```\nTaskEnqueue enqueues a task for execution.\n\n```go\nfunc TaskInspect(ctx types.Context, taskID int) *types.Task\n```\nTaskInspect returns the task with the specified ID.\n\n```go\nfunc TaskTrack(ctx types.Context) *types.Task\n```\nTaskTrack creates a new, trackable task.\n\n```go\nfunc TaskWait(ctx types.Context, taskID int)\n```\nTaskWait blocks until the specified task is completed.\n\n```go\nfunc TaskWaitAll(ctx types.Context, taskIDs ...int)\n```\nTaskWaitAll blocks until all the specified task are complete.\n\n```go\nfunc TaskWaitAllC(ctx types.Context, taskIDs ...int) \u003c-chan int\n```\nTaskWaitAllC returns a channel that is closed only when all the specified tasks are completed.\n\n```go\nfunc TaskWaitC(ctx types.Context, taskID int) \u003c-chan int\n```\nTaskWaitC returns a channel that is closed only when the specified task is completed.\n\n```go\nfunc Tasks(ctx types.Context) \u003c-chan *types.Task\n```\nTasks returns a channel on which all tasks are received.\n\n","path":"github.com/codedellemc/libstorage/api/server/services","name":"services","synopsis":"","isRedistributable":true}
