buildkit/client/llb/resolver.go

17 lines
354 B
Go

package llb
import (
digest "github.com/opencontainers/go-digest"
"golang.org/x/net/context"
)
func WithMetaResolver(mr ImageMetaResolver) ImageOption {
return ImageOptionFunc(func(ii *ImageInfo) {
ii.metaResolver = mr
})
}
type ImageMetaResolver interface {
ResolveImageConfig(ctx context.Context, ref string) (digest.Digest, []byte, error)
}