2023-05-05 13:47:28 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-21 17:31:54 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
2023-05-05 13:47:28 +00:00
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
2023-09-22 16:51:15 +00:00
|
|
|
package hashicorp.consul.catalog.v2beta1;
|
2023-05-05 13:47:28 +00:00
|
|
|
|
2023-09-21 21:18:47 +00:00
|
|
|
import "pbresource/annotations.proto";
|
|
|
|
|
2023-05-05 13:47:28 +00:00
|
|
|
message Node {
|
2023-09-21 21:18:47 +00:00
|
|
|
option (hashicorp.consul.resource.spec) = {
|
|
|
|
// TODO: This should eventually be SCOPE_PARTITION but that will require further changes to code
|
|
|
|
scope: SCOPE_NAMESPACE,
|
|
|
|
};
|
|
|
|
|
2023-05-05 13:47:28 +00:00
|
|
|
repeated NodeAddress addresses = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NodeAddress {
|
|
|
|
// host can be an IP or DNS name.Í
|
|
|
|
string host = 1;
|
|
|
|
|
|
|
|
// external indicates whether this address should be used for external communication
|
|
|
|
// (aka a WAN address).
|
|
|
|
bool external = 3;
|
|
|
|
}
|