workerpool

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoLeases = errors.New("idle lease not found")

Functions

func New

func New(ctx context.Context, restCfg *rest.Config, cfg config.Buildkit, opts ...PoolOption) (*workerPool, error)

Types

type AddressFuture

type AddressFuture func() (endpoint string, err error)

type Pool

type Pool interface {
	Get(ctx context.Context) (AddressFuture, error)
	Release(endpoint string) error
}

type PoolOption

type PoolOption func(o options) options

func Logger

func Logger(log logr.Logger) PoolOption

func MaxIdleTime

func MaxIdleTime(d time.Duration) PoolOption

func SyncWaitTime

func SyncWaitTime(d time.Duration) PoolOption

func WatchTimeoutSeconds

func WatchTimeoutSeconds(s int64) PoolOption

Jump to

Keyboard shortcuts

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