From a9b0f49c8bfe10e182d36549a1c0313afbbf99d7 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Mon, 11 May 2015 18:11:08 -0700 Subject: [PATCH] Removed unused mirror flags Signed-off-by: Derek McGowan (github: dmcgowan) --- docs/client/repository.go | 2 -- docs/client/session.go | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/client/repository.go b/docs/client/repository.go index c79c306b..e7fcfa9f 100644 --- a/docs/client/repository.go +++ b/docs/client/repository.go @@ -40,7 +40,6 @@ func NewRepository(ctx context.Context, name, endpoint string, repoConfig *Repos ub: ub, name: name, context: ctx, - mirror: repoConfig.AllowMirrors, }, nil } @@ -49,7 +48,6 @@ type repository struct { ub *v2.URLBuilder context context.Context name string - mirror bool } func (r *repository) Name() string { diff --git a/docs/client/session.go b/docs/client/session.go index 97e932ff..dd8e7d80 100644 --- a/docs/client/session.go +++ b/docs/client/session.go @@ -34,9 +34,10 @@ type CredentialStore interface { // RepositoryConfig holds the base configuration needed to communicate // with a registry including a method of authorization and HTTP headers. type RepositoryConfig struct { - Header http.Header - AuthSource Authorizer - AllowMirrors bool + Header http.Header + AuthSource Authorizer + + //TODO(dmcgowan): Add tls config } // HTTPClient returns a new HTTP client configured for this configuration