You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/vendor/github.com/containerd/continuity
Justin Chadwell 2d124e0ce9 test: add basic integration tests
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
..
devices test: add basic integration tests 2 years ago
driver test: add basic integration tests 2 years ago
fs test: add basic integration tests 2 years ago
pathdriver test: add basic integration tests 2 years ago
proto test: add basic integration tests 2 years ago
sysx vendor: update moby/buildkit 3 years ago
.gitignore test: add basic integration tests 2 years ago
.golangci.yml test: add basic integration tests 2 years ago
.mailmap test: add basic integration tests 2 years ago
AUTHORS vendor: update moby/buildkit 3 years ago
LICENSE vendor: initial vendor 6 years ago
Makefile test: add basic integration tests 2 years ago
README.md test: add basic integration tests 2 years ago
context.go test: add basic integration tests 2 years ago
digests.go test: add basic integration tests 2 years ago
groups_unix.go test: add basic integration tests 2 years ago
hardlinks.go test: add basic integration tests 2 years ago
hardlinks_unix.go test: add basic integration tests 2 years ago
hardlinks_windows.go test: add basic integration tests 2 years ago
ioutils.go test: add basic integration tests 2 years ago
manifest.go test: add basic integration tests 2 years ago
resource.go test: add basic integration tests 2 years ago
resource_unix.go test: add basic integration tests 2 years ago
resource_windows.go test: add basic integration tests 2 years ago

README.md

continuity

Go Reference Build Status

A transport-agnostic, filesystem metadata manifest system

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

See opencontainers/runtime-spec#11 for more details.

Manifest Format

A continuity manifest encodes filesystem metadata in Protocol Buffers. Refer to proto/manifest.proto for more details.

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

Platforms

continuity primarily targets Linux. Continuity may compile for and work on other operating systems, but those platforms are not tested.

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

Project details

continuity is a containerd sub-project, licensed under the Apache 2.0 license. As a containerd sub-project, you will find the:

information in our containerd/project repository.