containerd/metadata
Wei Fu 8a388d6238 leases: support resource management
Add three methods for lease service so that the client can use it to
manage the resource by lease, not just gc.root label. With the following
methods, it is easy for client to maintain their own cache system.

```
 - AddResource(context.Context, Lease, Resource) error
 - RemoveResource(context.Context, Lease, Resource) error
 - ListResources(context.Context, Lease) ([]Resource, error)
```

And the resource is to be

```golang
type Resource {
  ID   string
  Type string
}
```

For the snapshots, the Type field will be formatted by
snapshots/%{type}, like snapshots/overlayfs.

fix: #3295

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2019-05-29 11:00:32 +08:00
..
boltutil Write the Annotations map into the bolt db 2019-03-07 13:55:58 -05:00
adaptors.go Extend adaptImage function with annotations case 2019-03-22 14:56:26 -04:00
bolt.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
buckets.go Add structure documentation for metadata 2019-02-05 14:45:29 -08:00
containers_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
containers.go Eliminate misuses of errors.Wrapf 2018-11-29 14:26:53 -08:00
content_test.go metadata: define content sharing policy 2018-12-21 15:02:21 +08:00
content.go Ensure namespaced writer commit has correct namespace 2019-05-21 11:08:55 -07:00
db_test.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
db.go fix: linter issue 2019-01-23 22:54:51 +08:00
gc_test.go Add content gc ref labels from containers, images, and snapshots 2019-03-04 14:51:07 -08:00
gc.go Add content gc ref labels from containers, images, and snapshots 2019-03-04 14:51:07 -08:00
images_test.go Extend metadata images test with fieldpaths for Annotations 2019-03-07 14:20:56 -05:00
images.go Write the Annotations map into the bolt db 2019-03-07 13:55:58 -05:00
leases_test.go leases: support resource management 2019-05-29 11:00:32 +08:00
leases.go leases: support resource management 2019-05-29 11:00:32 +08:00
migrations.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
namespaces.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
snapshot_test.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
snapshot.go metadata: merge snapshot labels with metadata's labels 2019-02-18 16:11:12 +08:00