You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/vendor/github.com/containerd/continuity
Darren Shepherd fa08d6076c
Update vendor
6 years ago
..
devices Update vendor 6 years ago
driver Update vendor 6 years ago
fs Update vendor 6 years ago
pathdriver Update vendor 6 years ago
proto Update vendor 6 years ago
syscallx Update vendor 6 years ago
sysx Update vendor 6 years ago
.gitignore Update vendor 6 years ago
.mailmap Update vendor 6 years ago
.travis.yml Update vendor 6 years ago
AUTHORS Update vendor 6 years ago
LICENSE Update vendor 6 years ago
Makefile Update vendor 6 years ago
README.md Update vendor 6 years ago
context.go Update vendor 6 years ago
digests.go Update vendor 6 years ago
groups_unix.go Update vendor 6 years ago
hardlinks.go Update vendor 6 years ago
hardlinks_unix.go Update vendor 6 years ago
hardlinks_windows.go Update vendor 6 years ago
ioutils.go Update vendor 6 years ago
manifest.go Update vendor 6 years ago
manifest_test_darwin.go Update vendor 6 years ago
resource.go Update vendor 6 years ago
resource_unix.go Update vendor 6 years ago
resource_windows.go Update vendor 6 years ago
vendor.conf Update vendor 6 years ago

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