mirror of
https://github.com/docker/cli.git
synced 2026-11-06 21:18:28 -04:00
full diff: https://github.com/moby/swarmkit/compare/616e8db4c3b0...6068d1894d46 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>
35 lines
914 B
Protocol Buffer
35 lines
914 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
// See: https://github.com/grpc/grpc-go/blob/master/health/grpc_health_v1/health.proto
|
|
//
|
|
// We use the same health check service proto description defined in the gRPC documentation,
|
|
// including the authorization check. This requires our own implementation of the health
|
|
// package located in `manager/health`.
|
|
//
|
|
// For more infos, refer to:
|
|
// https://github.com/grpc/grpc/blob/master/doc/health-checking.md
|
|
|
|
package docker.swarmkit.v1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "github.com/docker/swarmkit/protobuf/plugin/plugin.proto";
|
|
|
|
service Health {
|
|
rpc Check(HealthCheckRequest) returns (HealthCheckResponse) {
|
|
option (docker.protobuf.plugin.tls_authorization) = { roles: "swarm-manager" };
|
|
};
|
|
}
|
|
|
|
message HealthCheckRequest {
|
|
string service = 1;
|
|
}
|
|
|
|
message HealthCheckResponse {
|
|
enum ServingStatus {
|
|
UNKNOWN = 0;
|
|
SERVING = 1;
|
|
NOT_SERVING = 2;
|
|
}
|
|
ServingStatus status = 1;
|
|
}
|