From be88cdfb8136cfae16ae89630cc23810f663d62c Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Thu, 6 Jul 2017 15:48:25 +0000 Subject: [PATCH] client: specify default behavior upon nil Roundtripper Signed-off-by: Luca Bruno --- client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client.go b/client/client.go index 7cd0f9976..8264de512 100644 --- a/client/client.go +++ b/client/client.go @@ -57,6 +57,8 @@ type NotaryRepository struct { // a file cache from the provided repository, local config information and a crypto service. // It also retrieves the remote store associated to the base directory under where all the // trust files will be stored and the specified GUN. +// +// In case of a nil RoundTripper, a default offline store is used instead. func NewFileCachedNotaryRepository(baseDir string, gun data.GUN, baseURL string, rt http.RoundTripper, retriever notary.PassRetriever, trustPinning trustpinning.TrustPinConfig) ( *NotaryRepository, error) {