~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/state/allcollections.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                // the simplestreams data source pointing to binaries required by juju.
88
88
                toolsmetadataC: {global: true},
89
89
 
 
90
                // This collection holds a convenient representation of the content of
 
91
                // the simplestreams data source pointing to Juju GUI archives.
 
92
                guimetadataC: {global: true},
 
93
 
90
94
                // This collection holds model information; in particular its
91
95
                // Life and its UUID.
92
96
                modelsC: {global: true},
263
267
                // -----
264
268
 
265
269
                // These collections hold information associated with networking.
266
 
                ipaddressesC: {
 
270
                // TODO(dimitern): Remove the obsolete collections below once possible.
 
271
                legacyipaddressesC: {
267
272
                        indexes: []mgo.Index{{
268
273
                                Key: []string{"uuid"},
269
274
                        }, {
293
298
                },
294
299
                openedPortsC:       {},
295
300
                requestedNetworksC: {},
 
301
                // TODO(dimitern): End of obsolete networking collections.
296
302
                spacesC: {
297
303
                        indexes: []mgo.Index{{
298
 
                                // NOTE: Like the DocID field, ProviderId also has the model
299
 
                                // UUID as prefix to ensure uniqueness per model. However since
300
 
                                // not all providers support spaces, it can be empty, hence both
301
 
                                // unique and sparse.
302
304
                                Key:    []string{"providerid"},
303
305
                                Unique: true,
304
306
                                Sparse: true,
306
308
                },
307
309
                subnetsC: {
308
310
                        indexes: []mgo.Index{{
309
 
                                // NOTE: Like the DocID field, ProviderId also has the model
310
 
                                // UUID as prefix to ensure uniqueness per model. However since
311
 
                                // not all providers support subnets, it can be empty, hence both
312
 
                                // unique and sparse.
 
311
                                Key:    []string{"providerid"},
 
312
                                Unique: true,
 
313
                                Sparse: true,
 
314
                        }},
 
315
                },
 
316
                linkLayerDevicesC: {
 
317
                        indexes: []mgo.Index{{
 
318
                                Key:    []string{"providerid"},
 
319
                                Unique: true,
 
320
                                Sparse: true,
 
321
                        }},
 
322
                },
 
323
                linkLayerDevicesRefsC: {},
 
324
                ipAddressesC: {
 
325
                        indexes: []mgo.Index{{
313
326
                                Key:    []string{"providerid"},
314
327
                                Unique: true,
315
328
                                Sparse: true,
393
406
        controllersC             = "controllers"
394
407
        filesystemAttachmentsC   = "filesystemAttachments"
395
408
        filesystemsC             = "filesystems"
 
409
        guimetadataC             = "guimetadata"
396
410
        instanceDataC            = "instanceData"
397
 
        ipaddressesC             = "ipaddresses"
 
411
        legacyipaddressesC       = "ipaddresses"
398
412
        leaseC                   = "lease"
399
413
        leasesC                  = "leases"
400
414
        machinesC                = "machines"
428
442
        storageConstraintsC      = "storageconstraints"
429
443
        storageInstancesC        = "storageinstances"
430
444
        subnetsC                 = "subnets"
 
445
        linkLayerDevicesC        = "linklayerdevices"
 
446
        linkLayerDevicesRefsC    = "linklayerdevicesrefs"
 
447
        ipAddressesC             = "ip.addresses"
431
448
        toolsmetadataC           = "toolsmetadata"
432
449
        txnLogC                  = "txns.log"
433
450
        txnsC                    = "txns"