full diff: 616e8db4c3...6068d1894d
a replace rule was needed (similar as in github.com/docker/docker) to fix some
dependency issues;
github.com/docker/cli/cli/trust imports
github.com/theupdateframework/notary/trustpinning tested by
github.com/theupdateframework/notary/trustpinning.test imports
github.com/cloudflare/cfssl/helpers imports
github.com/google/certificate-transparency-go imports
go.etcd.io/etcd/v3 imports
go.etcd.io/etcd/tests/v3/integration imports
go.etcd.io/etcd/server/v3/embed imports
go.opentelemetry.io/otel/semconv: module go.opentelemetry.io/otel@latest found (v1.7.0), but does not contain package go.opentelemetry.io/otel/semconv
github.com/docker/cli/cli/trust imports
github.com/theupdateframework/notary/trustpinning tested by
github.com/theupdateframework/notary/trustpinning.test imports
github.com/cloudflare/cfssl/helpers imports
github.com/google/certificate-transparency-go imports
go.etcd.io/etcd/v3 imports
go.etcd.io/etcd/tests/v3/integration imports
go.etcd.io/etcd/server/v3/embed imports
go.opentelemetry.io/otel/exporters/otlp imports
go.opentelemetry.io/otel/sdk/metric/controller/basic imports
go.opentelemetry.io/otel/metric/registry: module go.opentelemetry.io/otel/metric@latest found (v0.30.0), but does not contain package go.opentelemetry.io/otel/metric/registry
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
46 lines
1.3 KiB
Protocol Buffer
46 lines
1.3 KiB
Protocol Buffer
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;
|
|
repeated Volume volumes = 10;
|
|
}
|
|
|
|
// 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];
|
|
}
|