activator

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// MaxPoolSize is the maximum number of sandboxes allowed in a pool
	// This prevents runaway growth even if there are bugs in scaling logic
	MaxPoolSize = 20
)

Variables

View Source
var ErrPoolTimeout = fmt.Errorf("timeout waiting for sandbox from pool")
View Source
var ErrSandboxDiedEarly = fmt.Errorf("sandbox died while booting")

Functions

This section is empty.

Types

type AppActivator

type AppActivator interface {
	AcquireLease(ctx context.Context, ver *core_v1alpha.AppVersion, service string) (*Lease, error)
	ReleaseLease(ctx context.Context, lease *Lease) error
	RenewLease(ctx context.Context, lease *Lease) (*Lease, error)
}

type Lease

type Lease struct {
	Size int
	URL  string
	// contains filtered or unexported fields
}

func (*Lease) Pool

func (l *Lease) Pool() string

func (*Lease) Sandbox

func (l *Lease) Sandbox() *compute_v1alpha.Sandbox

func (*Lease) SandboxEntity

func (l *Lease) SandboxEntity() *entity.Entity

func (*Lease) Version

func (l *Lease) Version() *core_v1alpha.AppVersion

Jump to

Keyboard shortcuts

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