Documentation
¶
Overview ¶
Package worker executes sessions concurrently under a single database owner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountFactory ¶
type AccountFactory func(context.Context, harness.Sandbox, string, session.Credentials) (credentials.Sync, error)
type AccountLimitsCollector ¶ added in v0.1.7
type AccountLimitsCollector struct {
// contains filtered or unexported fields
}
func (*AccountLimitsCollector) Register ¶ added in v0.1.7
func (c *AccountLimitsCollector) Register(id uuid.UUID, cfg session.ResolvedConfiguration, driver harness.Driver) func()
Register uses the immutable session credentials, never a re-resolved profile. The returned function must run before the driver is closed or its sandbox paused.
func (*AccountLimitsCollector) Wait ¶ added in v0.1.7
func (c *AccountLimitsCollector) Wait()
type Executor ¶
type Executor struct {
ID uuid.UUID
Store *store.Store
Platform harness.Platform
NewDriver DriverFactory
NewAccount AccountFactory
RunnerBinary func(string) ([]byte, error)
Limits *AccountLimitsCollector
// contains filtered or unexported fields
}
func (*Executor) Disconnect ¶
func (e *Executor) Disconnect()
Click to show internal directories.
Click to hide internal directories.