mirror of
https://github.com/moby/buildkit.git
synced 2026-08-04 06:40:22 +00:00
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>
12 lines
184 B
Go
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)
|
|
}
|