Documentation ¶
Index ¶
- func WorkerHandler(authv func(ctx context.Context, token string) ([]auth.Permission, error), ...) http.Handler
- type Worker
- func (w *Worker) Discover(ctx context.Context) (apitypes.OpenRPCDocument, error)
- func (w *Worker) Enabled(ctx context.Context) (bool, error)
- func (w *Worker) ProcessSession(ctx context.Context) (uuid.UUID, error)
- func (w *Worker) Session(ctx context.Context) (uuid.UUID, error)
- func (w *Worker) SetEnabled(ctx context.Context, enabled bool) error
- func (w *Worker) Shutdown(ctx context.Context) error
- func (w *Worker) StorageAddLocal(ctx context.Context, path string) error
- func (w *Worker) StorageDetachAll(ctx context.Context) error
- func (w *Worker) StorageDetachLocal(ctx context.Context, path string) error
- func (w *Worker) StorageLocal(ctx context.Context) (map[storiface.ID]string, error)
- func (w *Worker) StorageRedeclareLocal(ctx context.Context, id *storiface.ID, dropMissing bool) error
- func (w *Worker) Version(context.Context) (api.Version, error)
- func (w *Worker) WaitQuiet(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WorkerHandler ¶
Types ¶
type Worker ¶
type Worker struct { *sealer.LocalWorker LocalStore *paths.Local Storage paths.LocalStorage // contains filtered or unexported fields }
func (*Worker) ProcessSession ¶
func (*Worker) StorageAddLocal ¶
func (*Worker) StorageDetachAll ¶ added in v1.17.1
func (*Worker) StorageDetachLocal ¶ added in v1.17.1
func (*Worker) StorageLocal ¶ added in v1.17.1
func (*Worker) StorageRedeclareLocal ¶ added in v1.17.1
Click to show internal directories.
Click to hide internal directories.