Documentation
¶
Index ¶
Constants ¶
View Source
const Deadline = 30 * time.Minute
View Source
const MaximumTargets = 16
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.