2017-08-21 22:41:22 +00:00
|
|
|
package llb
|
|
|
|
|
|
|
|
import (
|
|
|
|
digest "github.com/opencontainers/go-digest"
|
2017-12-01 01:29:57 +00:00
|
|
|
"golang.org/x/net/context"
|
2017-08-21 22:41:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func WithMetaResolver(mr ImageMetaResolver) ImageOption {
|
|
|
|
return func(ii *ImageInfo) {
|
|
|
|
ii.metaResolver = mr
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type ImageMetaResolver interface {
|
2017-12-01 01:29:57 +00:00
|
|
|
ResolveImageConfig(ctx context.Context, ref string) (digest.Digest, []byte, error)
|
2017-08-21 22:41:22 +00:00
|
|
|
}
|