refactor accessing registry configs via drivers

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2021-11-03 21:17:27 -07:00
parent 8afc82b427
commit 88d0775692
18 changed files with 264 additions and 163 deletions

View File

@ -12,6 +12,7 @@ import (
"github.com/containerd/containerd/remotes/docker"
clitypes "github.com/docker/cli/cli/config/types"
"github.com/docker/distribution/reference"
registryconfig "github.com/moby/buildkit/util/resolver/config"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)
@ -20,7 +21,8 @@ type Auth interface {
}
type Opt struct {
Auth Auth
Auth Auth
RegistryConfig map[string]registryconfig.RegistryConfig
}
type Resolver struct {