Formats all protobuf files with buf format. This ensures a consistent style across all our protobuf files, similar to gofumpt.
46 lines
1.3 KiB
Protocol Buffer
46 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package controller.servers.v1;
|
|
|
|
import "controller/storage/timestamp/v1/timestamp.proto";
|
|
|
|
option go_package = "github.com/hashicorp/boundary/internal/servers;servers";
|
|
|
|
// Server contains all fields related to a Controller or Worker resource
|
|
message Server {
|
|
// Private ID of the resource
|
|
string private_id = 10;
|
|
|
|
// Type of the resource (controller, worker)
|
|
string type = 20;
|
|
|
|
// Name of the resource. This is deprecated because we ended up setting the
|
|
// private ID and name to be identical, and there is currently no reason we
|
|
// can think of to allow a given server's name to match another within the
|
|
// same cluster. So we simply use the private ID and deprecate this.
|
|
// @inject_tag: `gorm:"-"`
|
|
string name = 30 [deprecated = true];
|
|
|
|
// Description of the resource
|
|
string description = 40;
|
|
|
|
// Address for the server
|
|
string address = 50;
|
|
|
|
// First seen time from the RDBMS
|
|
storage.timestamp.v1.Timestamp create_time = 60;
|
|
|
|
// Last time there was an update
|
|
storage.timestamp.v1.Timestamp update_time = 70;
|
|
|
|
// Tags for workers
|
|
// @inject_tag: `gorm:"-"`
|
|
map<string, TagValues> tags = 80;
|
|
}
|
|
|
|
// TagValues is used because map fields cannot be repeated but can be a
|
|
// message
|
|
message TagValues {
|
|
repeated string values = 10;
|
|
}
|