mirror of https://github.com/docker/cli.git
18 lines
338 B
Go
18 lines
338 B
Go
package llb
|
|
|
|
import (
|
|
"context"
|
|
|
|
digest "github.com/opencontainers/go-digest"
|
|
)
|
|
|
|
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)
|
|
}
|