From 6d72fe7fd1d90b2fe671f872339a5f935b992e18 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 5 Jan 2016 17:00:05 -0800 Subject: [PATCH] adding comment to bootstrapClient Signed-off-by: David Lawrence (github: endophage) --- client/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/client.go b/client/client.go index 0e140d98f2..b0579e0f6b 100644 --- a/client/client.go +++ b/client/client.go @@ -737,6 +737,11 @@ func (r *NotaryRepository) Update(forWrite bool) (*tufclient.Client, error) { return c, nil } +// bootstrapClient attempts to bootstrap a root.json to be used as the trust +// anchor for a repository. The checkInitialized argument indicates whether +// we should always attempt to contact the server to determine if the repository +// is initialized or not. If set to true, we will always attempt to download +// and return an error if the remote repository errors. func (r *NotaryRepository) bootstrapClient(checkInitialized bool) (*tufclient.Client, error) { var ( rootJSON []byte