2017-03-09 06:03:46 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package containerd.v1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "github.com/docker/containerd/api/types/mount/mount.proto";
|
|
|
|
import "github.com/docker/containerd/api/types/descriptor/descriptor.proto";
|
|
|
|
|
|
|
|
service RootFS {
|
2017-03-15 06:34:32 +00:00
|
|
|
rpc Unpack(UnpackRequest) returns (UnpackResponse);
|
|
|
|
rpc Prepare(PrepareRequest) returns (MountResponse);
|
2017-03-10 02:11:26 +00:00
|
|
|
rpc Mounts(MountsRequest) returns (MountResponse);
|
2017-03-09 06:03:46 +00:00
|
|
|
}
|
|
|
|
|
2017-03-15 06:34:32 +00:00
|
|
|
message UnpackRequest {
|
2017-03-09 06:03:46 +00:00
|
|
|
repeated containerd.v1.types.Descriptor layers = 1;
|
|
|
|
}
|
|
|
|
|
2017-03-15 06:34:32 +00:00
|
|
|
message UnpackResponse {
|
2017-03-09 06:03:46 +00:00
|
|
|
string chainid = 1 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false, (gogoproto.customname) = "ChainID"];
|
|
|
|
}
|
|
|
|
|
2017-03-15 06:34:32 +00:00
|
|
|
message PrepareRequest {
|
2017-03-10 02:11:26 +00:00
|
|
|
string name = 1;
|
2017-03-15 06:34:32 +00:00
|
|
|
string chain_id = 2 [(gogoproto.customtype) = "github.com/opencontainers/go-digest.Digest", (gogoproto.nullable) = false, (gogoproto.customname) = "ChainID"];
|
|
|
|
bool readonly = 3;
|
2017-03-10 02:11:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MountsRequest {
|
|
|
|
string name = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MountResponse {
|
|
|
|
repeated containerd.v1.types.Mount mounts = 1;
|
|
|
|
}
|