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) StorageAddLocal(ctx context.Context, path string) 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 ¶
Click to show internal directories.
Click to hide internal directories.