Documentation
¶
Index ¶
- Constants
- func CancelSandboxPreparations(ctx context.Context, tx pgx.Tx, sandboxID string, now time.Time) (bool, error)
- func Queue(ctx context.Context, tx pgx.Tx, ...) error
- func RecordResolvedPreparation(ctx context.Context, tx pgx.Tx, effectID, operationID, runner string, ...) error
- func SandboxStartOperationID(metadata []byte, legacyEffectID string) (string, error)
- type Payload
- type Target
Constants ¶
const Deadline = 30 * time.Minute
const MaximumTargets = 16
Variables ¶
This section is empty.
Functions ¶
func CancelSandboxPreparations ¶ added in v0.32.0
func CancelSandboxPreparations(ctx context.Context, tx pgx.Tx, sandboxID string, now time.Time) (bool, error)
Call with the Sandbox/Workspace locked and compute admission revoked. Preparation only fills the immutable image cache; it never owns a Workspace writer.
func RecordResolvedPreparation ¶
func RecordResolvedPreparation(ctx context.Context, tx pgx.Tx, effectID, operationID, runner string, evidence []byte, now, deadline time.Time) error
RecordResolvedPreparation counts the resolve Runner's completed fetch as that Runner's preparation. It carries the resolve evidence and sends no second command, so one Runner never retrieves the same digest twice.
Types ¶
type Target ¶
type Target struct {
RunnerID string `json:"runnerId"`
Architectures []string `json:"architectures"`
}
func ResolveTarget ¶
ResolveTarget selects the captured Runner that resolves and verifies the reference. Its fetch also prepares that Runner, so the widest architecture coverage is chosen: a Runner outside the resolved image's architecture keeps no prepared bytes the Operation can count.