Files
buildkit/solver/llbsolver/sourcepolicy.go
Tonis Tiigi 30c069cb03 replace resolveimageconfig with generic sourcemetaresolver
This is more versatile function that works for any source,
not just images.

It can be used together with a policy that switches
between input and output source as well as for adding
additional metadata for other sources in the future.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-02-11 22:06:23 -08:00

12 lines
184 B
Go

package llbsolver
import (
"context"
"github.com/moby/buildkit/solver/pb"
)
type SourcePolicyEvaluator interface {
Evaluate(ctx context.Context, op *pb.SourceOp) (bool, error)
}