mirror of https://github.com/hashicorp/consul
26 lines
595 B
Protocol Buffer
26 lines
595 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
|
|
|
message ExposeConfig {
|
|
repeated ExposePath expose_paths = 1;
|
|
}
|
|
|
|
message ExposePath {
|
|
uint32 listener_port = 1;
|
|
string path = 2;
|
|
uint32 local_path_port = 3;
|
|
ExposePathProtocol protocol = 4;
|
|
}
|
|
|
|
// +kubebuilder:validation:Enum=EXPOSE_PATH_PROTOCOL_HTTP;EXPOSE_PATH_PROTOCOL_HTTP2
|
|
// +kubebuilder:validation:Type=string
|
|
enum ExposePathProtocol {
|
|
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
|
|
EXPOSE_PATH_PROTOCOL_HTTP = 0;
|
|
EXPOSE_PATH_PROTOCOL_HTTP2 = 1;
|
|
}
|