|
@@ -8,7 +8,7 @@ import (
|
|
|
|
|
|
"github.com/docker/distribution"
|
|
"github.com/docker/distribution"
|
|
"github.com/docker/distribution/manifest/schema2"
|
|
"github.com/docker/distribution/manifest/schema2"
|
|
- "github.com/docker/docker/api/types"
|
|
|
|
|
|
+ "github.com/docker/docker/api/types/registry"
|
|
"github.com/docker/docker/distribution/metadata"
|
|
"github.com/docker/docker/distribution/metadata"
|
|
"github.com/docker/docker/distribution/xfer"
|
|
"github.com/docker/docker/distribution/xfer"
|
|
"github.com/docker/docker/image"
|
|
"github.com/docker/docker/image"
|
|
@@ -16,7 +16,7 @@ import (
|
|
"github.com/docker/docker/pkg/progress"
|
|
"github.com/docker/docker/pkg/progress"
|
|
"github.com/docker/docker/pkg/system"
|
|
"github.com/docker/docker/pkg/system"
|
|
refstore "github.com/docker/docker/reference"
|
|
refstore "github.com/docker/docker/reference"
|
|
- "github.com/docker/docker/registry"
|
|
|
|
|
|
+ registrypkg "github.com/docker/docker/registry"
|
|
"github.com/docker/libtrust"
|
|
"github.com/docker/libtrust"
|
|
"github.com/opencontainers/go-digest"
|
|
"github.com/opencontainers/go-digest"
|
|
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
|
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
|
@@ -30,13 +30,13 @@ type Config struct {
|
|
MetaHeaders map[string][]string
|
|
MetaHeaders map[string][]string
|
|
// AuthConfig holds authentication credentials for authenticating with
|
|
// AuthConfig holds authentication credentials for authenticating with
|
|
// the registry.
|
|
// the registry.
|
|
- AuthConfig *types.AuthConfig
|
|
|
|
|
|
+ AuthConfig *registry.AuthConfig
|
|
// ProgressOutput is the interface for showing the status of the pull
|
|
// ProgressOutput is the interface for showing the status of the pull
|
|
// operation.
|
|
// operation.
|
|
ProgressOutput progress.Output
|
|
ProgressOutput progress.Output
|
|
// RegistryService is the registry service to use for TLS configuration
|
|
// RegistryService is the registry service to use for TLS configuration
|
|
// and endpoint lookup.
|
|
// and endpoint lookup.
|
|
- RegistryService registry.Service
|
|
|
|
|
|
+ RegistryService registrypkg.Service
|
|
// ImageEventLogger notifies events for a given image
|
|
// ImageEventLogger notifies events for a given image
|
|
ImageEventLogger func(id, name, action string)
|
|
ImageEventLogger func(id, name, action string)
|
|
// MetadataStore is the storage backend for distribution-specific
|
|
// MetadataStore is the storage backend for distribution-specific
|