mirror of https://github.com/hashicorp/consul
34 lines
986 B
Protocol Buffer
34 lines
986 B
Protocol Buffer
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package hashicorp.consul.mesh.v2beta1;
|
|
|
|
import "pbresource/resource.proto";
|
|
|
|
// NOTE: roughly equivalent to structs.ResourceReference
|
|
message ParentReference {
|
|
// For east/west configuration, this should point to a pbcatalog.Service.
|
|
// For north/south it should point to a gateway (TBD)
|
|
hashicorp.consul.resource.Reference ref = 1;
|
|
|
|
// For east/west this is the name of the Consul Service port to direct traffic to
|
|
// or empty to imply all.
|
|
//
|
|
// For north/south this is TBD.
|
|
string port = 2;
|
|
}
|
|
|
|
message BackendReference {
|
|
// For east/west configuration, this should point to a pbcatalog.Service.
|
|
hashicorp.consul.resource.Reference ref = 1;
|
|
|
|
// For east/west this is the name of the Consul Service port to direct traffic to
|
|
// or empty to imply using the same value as the parent ref.
|
|
//
|
|
// For north/south this is TBD.
|
|
string port = 2;
|
|
string datacenter = 3;
|
|
}
|