2017-03-16 06:20:04 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package containerd.v1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
|
2017-03-16 17:15:56 +00:00
|
|
|
// Kind defines the kind of snapshot.
|
|
|
|
enum Kind {
|
|
|
|
option (gogoproto.goproto_enum_prefix) = false;
|
|
|
|
option (gogoproto.enum_customname) = "Kind";
|
|
|
|
|
|
|
|
// KindActive represents an active snapshot
|
|
|
|
ACTIVE = 0 [(gogoproto.enumvalue_customname) = "KindActive"];
|
|
|
|
|
|
|
|
// KindCommitted represents a committed immutable snapshot
|
|
|
|
COMMITTED = 1 [(gogoproto.enumvalue_customname) = "KindCommitted"];
|
|
|
|
}
|
|
|
|
|
2017-03-16 06:20:04 +00:00
|
|
|
message Snapshot {
|
|
|
|
uint64 id = 1 [(gogoproto.customname) = "ID"];
|
|
|
|
string parent = 2;
|
2017-03-16 17:15:56 +00:00
|
|
|
Kind kind = 4;
|
2017-03-16 06:20:04 +00:00
|
|
|
bool readonly = 5;
|
|
|
|
}
|