~rogpeppe/juju-core/axwalk-lp1300889-disable-mongo-keyfile

« back to all changes in this revision

Viewing changes to environs/simplestreams/simplestreams.go

  • Committer: Ian Booth
  • Date: 2013-08-13 04:55:12 UTC
  • mto: (1603.8.2 simplify-tools-search)
  • mto: This revision was merged to the branch mainline in revision 1680.
  • Revision ID: ian.booth@canonical.com-20130813045512-e68m4emfaoyn01h9
Add support for parsing and validating tools metadata

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
type ItemCollection struct {
158
158
        Items      map[string]interface{} `json:"items"`
159
159
        Arch       string                 `json:"arch"`
 
160
        Version    string                 `json:"version"`
160
161
        RegionName string                 `json:"region"`
161
162
        Endpoint   string                 `json:"endpoint"`
162
163
}
244
245
        return result
245
246
}
246
247
 
247
 
// This needs to be a var so we can override it for testing.
248
 
var DefaultBaseURL = "http://cloud-images.ubuntu.com/releases"
249
 
 
250
248
var httpClient *http.Client = http.DefaultClient
251
249
 
252
250
// SetHttpClient replaces the default http.Client used to fetch the metadata