forked from TrueCloudLab/distribution
Removed unused mirror flags
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
68d5ecf6bf
commit
c6b51970cd
2 changed files with 4 additions and 5 deletions
|
@ -40,7 +40,6 @@ func NewRepository(ctx context.Context, name, endpoint string, repoConfig *Repos
|
||||||
ub: ub,
|
ub: ub,
|
||||||
name: name,
|
name: name,
|
||||||
context: ctx,
|
context: ctx,
|
||||||
mirror: repoConfig.AllowMirrors,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,7 +48,6 @@ type repository struct {
|
||||||
ub *v2.URLBuilder
|
ub *v2.URLBuilder
|
||||||
context context.Context
|
context context.Context
|
||||||
name string
|
name string
|
||||||
mirror bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *repository) Name() string {
|
func (r *repository) Name() string {
|
||||||
|
|
|
@ -34,9 +34,10 @@ type CredentialStore interface {
|
||||||
// RepositoryConfig holds the base configuration needed to communicate
|
// RepositoryConfig holds the base configuration needed to communicate
|
||||||
// with a registry including a method of authorization and HTTP headers.
|
// with a registry including a method of authorization and HTTP headers.
|
||||||
type RepositoryConfig struct {
|
type RepositoryConfig struct {
|
||||||
Header http.Header
|
Header http.Header
|
||||||
AuthSource Authorizer
|
AuthSource Authorizer
|
||||||
AllowMirrors bool
|
|
||||||
|
//TODO(dmcgowan): Add tls config
|
||||||
}
|
}
|
||||||
|
|
||||||
// HTTPClient returns a new HTTP client configured for this configuration
|
// HTTPClient returns a new HTTP client configured for this configuration
|
||||||
|
|
Loading…
Reference in a new issue