sealworker

package
v1.25.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: Apache-2.0, MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WorkerHandler

func WorkerHandler(authv func(ctx context.Context, token string) ([]auth.Permission, error), remote http.HandlerFunc, a api.Worker, permissioned bool) http.Handler

Types

type Worker

type Worker struct {
	*sealer.LocalWorker

	LocalStore *paths.Local
	Storage    paths.LocalStorage
	// contains filtered or unexported fields
}

func (*Worker) Discover

func (w *Worker) Discover(ctx context.Context) (apitypes.OpenRPCDocument, error)

func (*Worker) Enabled

func (w *Worker) Enabled(ctx context.Context) (bool, error)

func (*Worker) ProcessSession

func (w *Worker) ProcessSession(ctx context.Context) (uuid.UUID, error)

func (*Worker) Session

func (w *Worker) Session(ctx context.Context) (uuid.UUID, error)

func (*Worker) SetEnabled

func (w *Worker) SetEnabled(ctx context.Context, enabled bool) error

func (*Worker) Shutdown added in v1.17.1

func (w *Worker) Shutdown(ctx context.Context) error

func (*Worker) StorageAddLocal

func (w *Worker) StorageAddLocal(ctx context.Context, path string) error

func (*Worker) StorageDetachAll added in v1.17.1

func (w *Worker) StorageDetachAll(ctx context.Context) error

func (*Worker) StorageDetachLocal added in v1.17.1

func (w *Worker) StorageDetachLocal(ctx context.Context, path string) error

func (*Worker) StorageLocal added in v1.17.1

func (w *Worker) StorageLocal(ctx context.Context) (map[storiface.ID]string, error)

func (*Worker) StorageRedeclareLocal added in v1.17.1

func (w *Worker) StorageRedeclareLocal(ctx context.Context, id *storiface.ID, dropMissing bool) error

func (*Worker) Version

func (w *Worker) Version(context.Context) (api.Version, error)

func (*Worker) WaitQuiet

func (w *Worker) WaitQuiet(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL