/
left76
/
cli
Обзор
Документация
Войти
/
left76
/
cli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
vendor/github.com/docker/swarmkit/api/snapshot.proto
44 строки
1 KB
Sebastiaan van Stijn
bump moby/moby and dependencies to 14ce1f1cf48e9859223c6311de58aec4dc0f046c
29 сен 2017, 18:44
Не верифицирован
29 сен 2017, 18:44
98dbfee
Код
Авторство
О чём код?
syntax = "proto3"; package docker.swarmkit.v1; import "github.com/docker/swarmkit/api/objects.proto"; import "github.com/docker/swarmkit/api/raft.proto"; import weak "gogoproto/gogo.proto"; // StoreSnapshot is used to store snapshots of the store. message StoreSnapshot { // TODO(aaronl): The current method of assembling a StoreSnapshot // structure and marshalling it is not optimal. It may be better to // write out nodes, networks, tasks, etc. one at a time to an io.Writer // using gogo-protobuf's io.DelimitedWriter. A new value of the version // field could support this approach. repeated Node nodes = 1; repeated Service services = 2; repeated Network networks = 3; repeated Task tasks = 4; repeated Cluster clusters = 5; repeated Secret secrets = 6; repeated Resource resources = 7; repeated Extension extensions = 8; repeated Config configs = 9; } // ClusterSnapshot stores cluster membership information in snapshots. message ClusterSnapshot { repeated RaftMember members = 1; repeated uint64 removed = 2 [packed=false]; } message Snapshot { enum Version { // V0 is the initial version of the StoreSnapshot message. V0 = 0; } Version version = 1; ClusterSnapshot membership = 2 [(gogoproto.nullable) = false]; StoreSnapshot store = 3 [(gogoproto.nullable) = false]; }