~go-bot/goose/trunk

« back to all changes in this revision

Viewing changes to client/client.go

  • Committer: Tarmac
  • Author(s): John Arbash Meinel
  • Date: 2013-09-10 08:46:34 UTC
  • mfrom: (105.2.1 no-ssl-public)
  • Revision ID: tarmac-20130910084634-qu05mqby3hkd6jp1
[r=jameinel] client.NewNonValidatingPublicClient: new API

While working on the juju-core side of the code, I discovered another path
where we try to connect to the HTTPS server (reading public buckets). So we
need a way to disable ssl validation there as well.

https://codereview.appspot.com/13396048/

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        return &client
90
90
}
91
91
 
 
92
func NewNonValidatingPublicClient(baseURL string, logger *log.Logger) Client {
 
93
        return &client{
 
94
                baseURL:    baseURL,
 
95
                logger:     logger,
 
96
                httpClient: goosehttp.NewNonSSLValidating(),
 
97
        }
 
98
}
 
99
 
92
100
var defaultRequiredServiceTypes = []string{"compute", "object-store"}
93
101
 
94
102
func newClient(creds *identity.Credentials, auth_method identity.AuthMode, httpClient *goosehttp.Client, logger *log.Logger) AuthenticatingClient {