DockerCLI/vendor/github.com/containerd/continuity
Tonis Tiigi 198407c56b vendor: update buildkit to 62e55427
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-02 23:40:56 -07:00
..
devices vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
driver vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
fs Update github.com/containerd/continuity 2019-02-02 13:31:09 +01:00
pathdriver Update github.com/containerd/continuity 2019-02-02 13:31:09 +01:00
proto vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
syscallx Update github.com/containerd/continuity 2019-02-02 13:31:09 +01:00
sysx Update github.com/containerd/continuity 2019-02-02 13:31:09 +01:00
LICENSE bump moby/moby and dependencies to 14ce1f1cf48e9859223c6311de58aec4dc0f046c 2017-09-29 17:44:49 +02:00
README.md bump moby/moby and dependencies to 14ce1f1cf48e9859223c6311de58aec4dc0f046c 2017-09-29 17:44:49 +02:00
context.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
digests.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
groups_unix.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
hardlinks.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
hardlinks_unix.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
hardlinks_windows.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
ioutils.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
manifest.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
resource.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
resource_unix.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
resource_windows.go vendor: update buildkit to 62e55427 2019-04-02 23:40:56 -07:00
vendor.conf Bump containerd client to d97a907f7f781c0ab8340877d8e6b53cc7f1c2f6 2018-09-26 15:45:28 +02:00

README.md

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