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)
}
func NewLocalActivator ¶
func NewLocalActivator(ctx context.Context, log *slog.Logger, eac *entityserver_v1alpha.EntityAccessClient) AppActivator
type Lease ¶
func (*Lease) Sandbox ¶
func (l *Lease) Sandbox() *compute_v1alpha.Sandbox
func (*Lease) SandboxEntity ¶
func (*Lease) Version ¶
func (l *Lease) Version() *core_v1alpha.AppVersion
Click to show internal directories.
Click to hide internal directories.