reg/vendor/github.com/containerd/continuity
Jess Frazelle ab6c553e6b
update deps
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 10:41:43 -05:00
..
cmd/continuity update deps 2018-03-06 10:32:47 -05:00
commands update deps 2018-03-06 10:32:47 -05:00
continuityfs update deps 2018-03-06 10:32:47 -05:00
devices update deps 2018-03-06 10:32:47 -05:00
driver update deps 2018-03-06 10:32:47 -05:00
fs update deps 2018-03-06 10:41:43 -05:00
pathdriver switch to dep 2017-12-11 14:50:55 -05:00
proto update deps 2018-03-06 10:32:47 -05:00
sysx update deps 2018-03-06 10:41:43 -05:00
testutil update deps 2018-03-06 10:41:43 -05:00
version update deps 2018-03-06 10:32:47 -05:00
.gitignore switch to dep 2017-12-11 14:50:55 -05:00
.mailmap switch to dep 2017-12-11 14:50:55 -05:00
.travis.yml update deps 2018-03-06 10:41:43 -05:00
AUTHORS switch to dep 2017-12-11 14:50:55 -05:00
context.go switch to dep 2017-12-11 14:50:55 -05:00
digests.go switch to dep 2017-12-11 14:50:55 -05:00
digests_test.go switch to dep 2017-12-11 14:50:55 -05:00
groups_unix.go switch to dep 2017-12-11 14:50:55 -05:00
hardlinks.go switch to dep 2017-12-11 14:50:55 -05:00
hardlinks_unix.go switch to dep 2017-12-11 14:50:55 -05:00
hardlinks_windows.go switch to dep 2017-12-11 14:50:55 -05:00
ioutils.go switch to dep 2017-12-11 14:50:55 -05:00
LICENSE switch to dep 2017-12-11 14:50:55 -05:00
Makefile switch to dep 2017-12-11 14:50:55 -05:00
manifest.go switch to dep 2017-12-11 14:50:55 -05:00
manifest_test.go switch to dep 2017-12-11 14:50:55 -05:00
manifest_test_darwin.go switch to dep 2017-12-11 14:50:55 -05:00
README.md switch to dep 2017-12-11 14:50:55 -05:00
resource.go switch to dep 2017-12-11 14:50:55 -05:00
resource_test.go switch to dep 2017-12-11 14:50:55 -05:00
resource_unix.go switch to dep 2017-12-11 14:50:55 -05:00
resource_windows.go switch to dep 2017-12-11 14:50:55 -05:00
testutil_test.go switch to dep 2017-12-11 14:50:55 -05:00
vendor.conf update deps 2018-03-06 10:41:43 -05:00

continuity

GoDoc Build Status

A transport-agnostic, filesystem metadata manifest system

This project is a staging area for experiments in providing transport agnostic metadata storage.

Please see https://github.com/opencontainers/specs/issues/11 for more details.

Manifest Format

A continuity manifest encodes filesystem metadata in Protocol Buffers. Please refer to proto/manifest.proto.

Usage

Build:

$ make

Create a manifest (of this repo itself):

$ ./bin/continuity build . > /tmp/a.pb

Dump a manifest:

$ ./bin/continuity ls /tmp/a.pb
...
-rw-rw-r--      270 B   /.gitignore
-rw-rw-r--      88 B    /.mailmap
-rw-rw-r--      187 B   /.travis.yml
-rw-rw-r--      359 B   /AUTHORS
-rw-rw-r--      11 kB   /LICENSE
-rw-rw-r--      1.5 kB  /Makefile
...
-rw-rw-r--      986 B   /testutil_test.go
drwxrwxr-x      0 B     /version
-rw-rw-r--      478 B   /version/version.go

Verify a manifest:

$ ./bin/continuity verify . /tmp/a.pb

Break the directory and restore using the manifest:

$ chmod 777 Makefile
$ ./bin/continuity verify . /tmp/a.pb
2017/06/23 08:00:34 error verifying manifest: resource "/Makefile" has incorrect mode: -rwxrwxrwx != -rw-rw-r--
$ ./bin/continuity apply . /tmp/a.pb
$ stat -c %a Makefile
664
$ ./bin/continuity verify . /tmp/a.pb

Contribution Guide

Building Proto Package

If you change the proto file you will need to rebuild the generated Go with go generate.

$ go generate ./proto