containerd/vendor/github.com/containerd/continuity
Wei Fu 59b0b39af0 vendor: update github.com/containerd/continuity
Pin it with 1e0d26eb2381594984ee80989c9c229dbd930d9f

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-06-17 08:36:45 +08:00
..
devices go.mod: update github.com/containerd/{continuity,go-cni,imgcrypt} 2022-01-07 18:54:15 +09:00
driver Update continuity, go-winio and hcsshim 2023-03-31 06:16:52 -07:00
fs vendor: update github.com/containerd/continuity 2023-06-17 08:36:45 +08:00
pathdriver Update continuity 2018-09-21 09:14:51 -07:00
proto go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
sysx go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
testutil go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
.gitignore Go mod vendor 2020-12-01 01:41:25 +08:00
.golangci.yml Update continuity, go-winio and hcsshim 2023-03-31 06:16:52 -07:00
.mailmap go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
AUTHORS go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
context.go Update continuity, go-winio and hcsshim 2023-03-31 06:16:52 -07:00
digests.go vendor: update containerd/continuity efbc4488d8fe1bdc16bde3b2d2990d9b3a899165 2020-07-28 16:39:35 +02:00
groups_unix.go vendor: update containerd/continuity efbc4488d8fe1bdc16bde3b2d2990d9b3a899165 2020-07-28 16:39:35 +02:00
hardlinks_unix.go go.mod: update github.com/containerd/{continuity,go-cni,imgcrypt} 2022-01-07 18:54:15 +09:00
hardlinks_windows.go Update continuity 2018-09-21 09:14:51 -07:00
hardlinks.go Update continuity, go-winio and hcsshim 2023-03-31 06:16:52 -07:00
ioutils.go Update continuity 2023-03-31 06:17:32 -07:00
LICENSE Update continuity vendor 2019-08-16 15:49:47 -07:00
Makefile go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
manifest.go go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
README.md go.mod: github.com/containerd/continuity v0.3.0 2022-06-07 17:14:08 +09:00
resource_unix.go go.mod: update github.com/containerd/{continuity,go-cni,imgcrypt} 2022-01-07 18:54:15 +09:00
resource_windows.go Update continuity 2018-09-21 09:14:51 -07:00
resource.go Update continuity 2018-09-21 09:14:51 -07:00

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.