worker_v2

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteWorker added in v0.53.1

func DeleteWorker(ctx context.Context, tx gorpmapper.SqlExecutorWithTx, w sdk.V2Worker) error

func LoadAllWorker

func LoadAllWorker(ctx context.Context, db gorp.SqlExecutor) ([]sdk.V2Worker, error)

func LoadAllWorkersByHatcheryID added in v0.53.1

func LoadAllWorkersByHatcheryID(ctx context.Context, db gorp.SqlExecutor, hatcheryID string) ([]sdk.V2Worker, error)

func LoadByConsumerID

func LoadByConsumerID(ctx context.Context, db gorp.SqlExecutor, authConsumerID string) (*sdk.V2Worker, error)

func LoadByID

func LoadByID(ctx context.Context, db gorp.SqlExecutor, workerID string, opts ...gorpmapping.GetOptionFunc) (*sdk.V2Worker, error)

func LoadDeadWorkers

func LoadDeadWorkers(ctx context.Context, db gorp.SqlExecutor, timeout float64, status []string) ([]sdk.V2Worker, error)

func LoadWorkerByName

func LoadWorkerByName(ctx context.Context, db gorp.SqlExecutor, workerName string, opts ...gorpmapping.GetOptionFunc) (*sdk.V2Worker, error)

LoadWorkerByName load worker

func LoadWorkerByStatus

func LoadWorkerByStatus(ctx context.Context, db gorp.SqlExecutor, status string) ([]sdk.V2Worker, error)

func RegisterWorker

func RegisterWorker(ctx context.Context, db gorpmapper.SqlExecutorWithTx, spawnArgs hatchery.SpawnArgumentsJWTV2, hatch sdk.Hatchery, workerConsumer *sdk.AuthHatcheryConsumer,
	registrationForm sdk.WorkerRegistrationForm) (*sdk.V2Worker, error)

RegisterWorker Register new worker

Types

This section is empty.

Jump to

Keyboard shortcuts

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