runner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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,
) *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 ReadCount

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

ReadCount tracks the number of bytes read through an io.Reader

func NewReadCount

func NewReadCount(ctx context.Context, r io.Reader) *ReadCount

NewReadCount returns a new ReadCount that wraps the given reader

func (*ReadCount) Count

func (r *ReadCount) Count() int64

Count returns the total number of bytes read

func (*ReadCount) Read

func (r *ReadCount) Read(p []byte) (int, error)

Read implements io.Reader and tracks bytes read

type Runner

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

ChunkRunner executes Chunk tasks

func NewRunner

func NewRunner(handlerName string, client versioned.Interface) *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