runner

package
v0.0.108 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBearerNotReady = errors.New("bearer is not ready")
	ErrAuthentication = errors.New("authentication error")
	ErrNoPendingChunk = fmt.Errorf("no pending chunks available")
)

Functions

This section is empty.

Types

type ChunkRunner

type ChunkRunner struct {
	// contains filtered or unexported fields
}

ChunkRunner executes Chunk tasks

func NewChunkRunner

func NewChunkRunner(
	handlerName string,
	clientset versioned.Interface,
	sharedInformerFactory externalversions.SharedInformerFactory,
	updateDuration time.Duration,
	concurrency int,
) *ChunkRunner

NewChunkRunner creates a new Runner instance

func (*ChunkRunner) Release

func (r *ChunkRunner) Release(ctx context.Context) error

Release releases the current held chunk

func (*ChunkRunner) Shutdown

func (r *ChunkRunner) Shutdown(ctx context.Context) error

Shutdown stops the runner

func (*ChunkRunner) Start

func (r *ChunkRunner) Start(ctx context.Context) error

Run starts the runner

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

ChunkRunner executes Chunk tasks

func NewRunner

func NewRunner(handlerName string, client versioned.Interface, updateDuration time.Duration, concurrency int) *Runner

NewChunkRunner creates a new Runner instance

func (*Runner) Shutdown

func (r *Runner) Shutdown(ctx context.Context) error

Shutdown stops the runner

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

Start starts the runner

Jump to

Keyboard shortcuts

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