~go-bot/goose/trunk

« back to all changes in this revision

Viewing changes to client/client.go

  • Committer: John Arbash Meinel
  • Date: 2013-09-09 08:24:27 UTC
  • mto: This revision was merged to the branch mainline in revision 107.
  • Revision ID: john@arbash-meinel.com-20130909082427-jeu2usmhwxdyq91v
Add another API for NewNonValidatingPublicClient.

We need this to handle listing tool buckets on public locations.
This function will eventually go away when we switch from finding source
tools as listing containers to using simplestream indexes.
For now, though, we need this.

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 {