feat(proto): Format protobuf files with buf (#2033)
Formats all protobuf files with buf format. This ensures a consistent style across all our protobuf files, similar to gofumpt.
This commit is contained in:
1 parent
0fb9b35498
commit
f69fbf2255
131 files changed
+2329
-1618
No files matched your search
@@ -1,20 +1,20 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.servers.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
message Credential {
|
||||
oneof credential {
|
||||
UserPassword user_password = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// UserPassword is a credential containing a username and a password.
|
||||
message UserPassword {
|
||||
// The username of the credential
|
||||
string username = 10; // @gotags: `class:"public"`
|
||||
|
||||
// The password of the credential
|
||||
string password = 20; // @gotags: `class:"secret"`
|
||||
}
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.servers.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
message Credential {
|
||||
oneof credential {
|
||||
UserPassword user_password = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// UserPassword is a credential containing a username and a password.
|
||||
message UserPassword {
|
||||
// The username of the credential
|
||||
string username = 10; // @gotags: `class:"public"`
|
||||
|
||||
// The password of the credential
|
||||
string password = 20; // @gotags: `class:"secret"`
|
||||
}
|
||||
@@ -2,10 +2,10 @@ syntax = "proto3";
|
||||
|
||||
package controller.servers.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
import "controller/servers/v1/servers.proto";
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
service ServerCoordinationService {
|
||||
// Status gets worker status requests which include the ongoing jobs the worker is handling and
|
||||
// returns the status response which includes the changes the controller would like to make to
|
||||
|
||||
@@ -2,12 +2,12 @@ syntax = "proto3";
|
||||
|
||||
package controller.servers.services.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "controller/api/resources/targets/v1/target.proto";
|
||||
import "controller/servers/services/v1/credential.proto";
|
||||
import "controller/servers/services/v1/server_coordination_service.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/servers/services;services";
|
||||
|
||||
service SessionService {
|
||||
// LookupSession allows a worker to retrieve session information from the
|
||||
@@ -32,94 +32,94 @@ service SessionService {
|
||||
|
||||
message LookupSessionRequest {
|
||||
// The session ID from the client
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
// The name of the requesting worker, used for filtering to ensure this
|
||||
// worker is allowed to handle this session.
|
||||
string server_id = 20; // @gotags: `class:"public"`
|
||||
string server_id = 20; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
// LookupSessionResponse contains information necessary for a client to
|
||||
// establish a session.
|
||||
message LookupSessionResponse {
|
||||
api.resources.targets.v1.SessionAuthorizationData authorization = 10;
|
||||
string tofu_token = 20; // @gotags: `class:"secret"`
|
||||
uint32 version = 30; // @gotags: `class:"public"`
|
||||
string endpoint = 40; // @gotags: `class:"public"`
|
||||
google.protobuf.Timestamp expiration = 50; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 60; // @gotags: `class:"public"`
|
||||
int32 connection_limit = 70; // @gotags: `class:"public"`
|
||||
int32 connections_left = 80; // @gotags: `class:"public"`
|
||||
string host_id = 90; // @gotags: `class:"public"`
|
||||
string host_set_id = 100; // @gotags: `class:"public"`
|
||||
string target_id = 110; // @gotags: `class:"public"`
|
||||
string user_id = 120; // @gotags: `class:"public"`
|
||||
repeated Credential credentials = 130; // @gotags: `class:"secret"`
|
||||
string tofu_token = 20; // @gotags: `class:"secret"`
|
||||
uint32 version = 30; // @gotags: `class:"public"`
|
||||
string endpoint = 40; // @gotags: `class:"public"`
|
||||
google.protobuf.Timestamp expiration = 50; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 60; // @gotags: `class:"public"`
|
||||
int32 connection_limit = 70; // @gotags: `class:"public"`
|
||||
int32 connections_left = 80; // @gotags: `class:"public"`
|
||||
string host_id = 90; // @gotags: `class:"public"`
|
||||
string host_set_id = 100; // @gotags: `class:"public"`
|
||||
string target_id = 110; // @gotags: `class:"public"`
|
||||
string user_id = 120; // @gotags: `class:"public"`
|
||||
repeated Credential credentials = 130; // @gotags: `class:"secret"`
|
||||
}
|
||||
|
||||
message ActivateSessionRequest {
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string tofu_token = 20; // @gotags: `class:"secret"`
|
||||
uint32 version = 30; // @gotags: `class:"public"`
|
||||
string worker_id = 40; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 50; // @gotags: `class:"public"`
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string tofu_token = 20; // @gotags: `class:"secret"`
|
||||
uint32 version = 30; // @gotags: `class:"public"`
|
||||
string worker_id = 40; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 50; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message ActivateSessionResponse {
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CancelSessionRequest {
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CancelSessionResponse {
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message AuthorizeConnectionRequest {
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string worker_id = 20; // @gotags: `class:"public"`
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string worker_id = 20; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message AuthorizeConnectionResponse {
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 20; // @gotags: `class:"public"`
|
||||
int32 connections_left = 30; // @gotags: `class:"public"`
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 20; // @gotags: `class:"public"`
|
||||
int32 connections_left = 30; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message ConnectConnectionRequest {
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
string client_tcp_address = 20; // @gotags: `class:"public"`
|
||||
uint32 client_tcp_port = 30; // @gotags: `class:"public"`
|
||||
string endpoint_tcp_address = 40; // @gotags: `class:"public"`
|
||||
uint32 endpoint_tcp_port = 50; // @gotags: `class:"public"`
|
||||
string type = 60; // @gotags: `class:"public"`
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
string client_tcp_address = 20; // @gotags: `class:"public"`
|
||||
uint32 client_tcp_port = 30; // @gotags: `class:"public"`
|
||||
string endpoint_tcp_address = 40; // @gotags: `class:"public"`
|
||||
uint32 endpoint_tcp_port = 50; // @gotags: `class:"public"`
|
||||
string type = 60; // @gotags: `class:"public"`
|
||||
|
||||
// user_client_ip is the user's client ip for the connection as determined by
|
||||
// the inbound http request handler
|
||||
string user_client_ip = 70; // @gotags: `class:"public"
|
||||
string user_client_ip = 70; // @gotags: `class:"public"
|
||||
}
|
||||
|
||||
message ConnectConnectionResponse {
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CloseConnectionRequestData {
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
uint64 bytes_up = 20; // @gotags: `class:"public"`
|
||||
uint64 bytes_down = 30; // @gotags: `class:"public"`
|
||||
string reason = 40; // @gotags: `class:"public"`
|
||||
string connection_id = 10; // @gotags: `class:"public"`
|
||||
uint64 bytes_up = 20; // @gotags: `class:"public"`
|
||||
uint64 bytes_down = 30; // @gotags: `class:"public"`
|
||||
string reason = 40; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CloseConnectionRequest {
|
||||
repeated CloseConnectionRequestData close_request_data = 10; // @gotags: `class:"public"`
|
||||
repeated CloseConnectionRequestData close_request_data = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CloseConnectionResponseData {
|
||||
string connection_id = 10;
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 20; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.CONNECTIONSTATUS status = 20; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
message CloseConnectionResponse {
|
||||
repeated CloseConnectionResponseData close_response_data = 10; // @gotags: `class:"public"`
|
||||
repeated CloseConnectionResponseData close_response_data = 10; // @gotags: `class:"public"`
|
||||
}
|
||||
@@ -1,10 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package controller.servers.v1;
|
||||
option go_package = "github.com/hashicorp/boundary/internal/servers;servers";
|
||||
|
||||
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
|
||||
@@ -41,4 +42,4 @@ message Server {
|
||||
// message
|
||||
message TagValues {
|
||||
repeated string values = 10;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user