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
+84
-16
@@ -2,14 +2,14 @@ syntax = "proto3";
|
||||
|
||||
package controller.api.resources.credentialstores.v1;
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/credentialstores;credentialstores";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "google/api/visibility.proto";
|
||||
import "controller/api/resources/scopes/v1/scope.proto";
|
||||
import "controller/custom_options/v1/options.proto";
|
||||
import "google/api/visibility.proto";
|
||||
import "google/protobuf/struct.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/credentialstores;credentialstores";
|
||||
|
||||
// CredentialStore contains all fields related to an Credential Store resource
|
||||
message CredentialStore {
|
||||
@@ -23,10 +23,22 @@ message CredentialStore {
|
||||
resources.scopes.v1.ScopeInfo scope = 30;
|
||||
|
||||
// Optional name for identification purposes.
|
||||
google.protobuf.StringValue name = 40 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "name" that: "Name" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue name = 40 [
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "name"
|
||||
that: "Name"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// Optional user-set description for identification purposes.
|
||||
google.protobuf.StringValue description = 50 [(custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "description" that: "Description" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue description = 50 [
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "description"
|
||||
that: "Description"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// Output only. The time this resource was created.
|
||||
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public"`
|
||||
@@ -64,22 +76,64 @@ message CredentialStore {
|
||||
// The attributes of a vault typed Credential Store.
|
||||
message VaultCredentialStoreAttributes {
|
||||
// The complete url address of vault.
|
||||
google.protobuf.StringValue address = 10 [json_name = "address", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.address" that: "VaultAddress" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue address = 10 [
|
||||
json_name = "address",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.address"
|
||||
that: "VaultAddress"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// The namespace of vault used by this store
|
||||
google.protobuf.StringValue namespace = 20 [json_name = "namespace", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.namespace" that: "Namespace" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue namespace = 20 [
|
||||
json_name = "namespace",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.namespace"
|
||||
that: "Namespace"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// The PEM encoded CA cert to verify the vault server's ssl certificate
|
||||
google.protobuf.StringValue ca_cert = 30 [json_name = "ca_cert", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.ca_cert" that: "CaCert" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue ca_cert = 30 [
|
||||
json_name = "ca_cert",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.ca_cert"
|
||||
that: "CaCert"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// The value to use as the SNI host when connecting to vault via TLS.
|
||||
google.protobuf.StringValue tls_server_name = 40 [json_name = "tls_server_name", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.tls_server_name" that: "TlsServerName" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.StringValue tls_server_name = 40 [
|
||||
json_name = "tls_server_name",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.tls_server_name"
|
||||
that: "TlsServerName"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// When set to true verification of the TLS certificate is disabled.
|
||||
google.protobuf.BoolValue tls_skip_verify = 50 [json_name = "tls_skip_verify", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.tls_skip_verify" that: "TlsSkipVerify" }]; // @gotags: `class:"public"`
|
||||
google.protobuf.BoolValue tls_skip_verify = 50 [
|
||||
json_name = "tls_skip_verify",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.tls_skip_verify"
|
||||
that: "TlsSkipVerify"
|
||||
}
|
||||
]; // @gotags: `class:"public"`
|
||||
|
||||
// Input only. The current vault token used by this credential store for creating new credentials.
|
||||
google.protobuf.StringValue token = 60 [json_name = "token", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.token" that: "Token" }]; // @gotags: `class:"secret"`
|
||||
google.protobuf.StringValue token = 60 [
|
||||
json_name = "token",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.token"
|
||||
that: "Token"
|
||||
}
|
||||
]; // @gotags: `class:"secret"`
|
||||
|
||||
// Output only. The hmac value of the vault token used by this credential store.
|
||||
string token_hmac = 70 [json_name = "token_hmac"]; // @gotags: `class:"public"`
|
||||
@@ -88,10 +142,24 @@ message VaultCredentialStoreAttributes {
|
||||
// optional private key included in the bundle. It is an error to include
|
||||
// the private key in this bundle as well as setting the certificate_key
|
||||
// field.
|
||||
google.protobuf.StringValue client_certificate = 80 [json_name = "client_certificate", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.client_certificate" that: "Certificate" }]; // @gotags: `class:"secret"`
|
||||
google.protobuf.StringValue client_certificate = 80 [
|
||||
json_name = "client_certificate",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.client_certificate"
|
||||
that: "Certificate"
|
||||
}
|
||||
]; // @gotags: `class:"secret"`
|
||||
|
||||
// Input only. A client certificate private key.
|
||||
google.protobuf.StringValue client_certificate_key = 90 [json_name = "client_certificate_key", (custom_options.v1.generate_sdk_option) = true, (custom_options.v1.mask_mapping) = { this: "attributes.client_certificate_key" that: "CertificateKey" }]; // @gotags: `class:"secret"`
|
||||
google.protobuf.StringValue client_certificate_key = 90 [
|
||||
json_name = "client_certificate_key",
|
||||
(custom_options.v1.generate_sdk_option) = true,
|
||||
(custom_options.v1.mask_mapping) = {
|
||||
this: "attributes.client_certificate_key"
|
||||
that: "CertificateKey"
|
||||
}
|
||||
]; // @gotags: `class:"secret"`
|
||||
|
||||
// Output only. The hmac value of the private key used by the credential store.
|
||||
string client_certificate_key_hmac = 100 [json_name = "client_certificate_key_hmac"]; // @gotags: `class:"public"`
|
||||
|
||||
Reference in new issue
Block a user