You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/proto-public/pbmesh/v2beta1/pbproxystate/endpoints.proto

32 lines
798 B

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
syntax = "proto3";
package hashicorp.consul.mesh.v2beta1.pbproxystate;
import "google/protobuf/wrappers.proto";
import "pbmesh/v2beta1/pbproxystate/address.proto";
message Endpoints {
repeated Endpoint endpoints = 1;
}
message Endpoint {
oneof address {
HostPortAddress host_port = 1;
UnixSocketAddress unix_socket = 2;
}
HealthStatus health_status = 3;
google.protobuf.UInt32Value load_balancing_weight = 4;
}
// +kubebuilder:validation:Enum=HEALTH_STATUS_UNKNOWN;HEALTH_STATUS_HEALTHY;HEALTH_STATUS_UNHEALTHY
// +kubebuilder:validation:Type=string
enum HealthStatus {
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
HEALTH_STATUS_UNKNOWN = 0;
HEALTH_STATUS_HEALTHY = 1;
HEALTH_STATUS_UNHEALTHY = 2;
}