adding comment to bootstrapClient

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence 2016-01-05 17:00:05 -08:00
parent d11f11748c
commit 6d72fe7fd1
1 changed files with 5 additions and 0 deletions

View File

@ -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