Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Plugins message, add it to Config message #14

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 42 additions & 35 deletions gen/go/proto/config/v1alpha1/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

148 changes: 148 additions & 0 deletions gen/go/proto/plugins/v1alpha1/plugins.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions proto/config/v1alpha1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@

import "google/protobuf/struct.proto";
import "proto/attestation_policy/v1alpha1/attestation_policy.proto";
import "proto/plugins/v1alpha1/plugins.proto";
import "proto/trust_zone/v1alpha1/trust_zone.proto";

option go_package = "github.com/cofide/cofide-api-sdk/gen/go/proto/config/v1alpha1";

message Config {
optional string data_source = 1;
repeated proto.trust_zone.v1alpha1.TrustZone trust_zones = 2;
repeated proto.attestation_policy.v1alpha1.AttestationPolicy attestation_policies = 3;
map<string, google.protobuf.Struct> plugin_config = 4;
repeated proto.trust_zone.v1alpha1.TrustZone trust_zones = 1;

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed cardinality from "optional with explicit presence" to "repeated".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed option "json_name" from "dataSource" to "trustZones".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed type from "string" to "message".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" on message "Config" changed name from "data_source" to "trust_zones".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed cardinality from "optional with explicit presence" to "repeated".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed option "json_name" from "dataSource" to "trustZones".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" with name "trust_zones" on message "Config" changed type from "string" to "message".

Check failure on line 16 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "1" on message "Config" changed name from "data_source" to "trust_zones".
repeated proto.attestation_policy.v1alpha1.AttestationPolicy attestation_policies = 2;

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" with name "attestation_policies" on message "Config" changed option "json_name" from "trustZones" to "attestationPolicies".

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" with name "attestation_policies" on message "Config" changed type from "proto.trust_zone.v1alpha1.TrustZone" to "proto.attestation_policy.v1alpha1.AttestationPolicy".

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" on message "Config" changed name from "trust_zones" to "attestation_policies".

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" with name "attestation_policies" on message "Config" changed option "json_name" from "trustZones" to "attestationPolicies".

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" with name "attestation_policies" on message "Config" changed type from "proto.trust_zone.v1alpha1.TrustZone" to "proto.attestation_policy.v1alpha1.AttestationPolicy".

Check failure on line 17 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" on message "Config" changed name from "trust_zones" to "attestation_policies".
map<string, google.protobuf.Struct> plugin_config = 3;

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed cardinality from "repeated" to "map".

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed option "json_name" from "attestationPolicies" to "pluginConfig".

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed type from "proto.attestation_policy.v1alpha1.AttestationPolicy" to "proto.config.v1alpha1.Config.PluginConfigEntry".

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed cardinality from "repeated" to "map".

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed option "json_name" from "attestationPolicies" to "pluginConfig".

Check failure on line 18 in proto/config/v1alpha1/config.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "plugin_config" on message "Config" changed type from "proto.attestation_policy.v1alpha1.AttestationPolicy" to "proto.config.v1alpha1.Config.PluginConfigEntry".
optional proto.plugins.v1alpha1.Plugins plugins = 4;
}
13 changes: 13 additions & 0 deletions proto/plugins/v1alpha1/plugins.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Copyright 2024 Cofide Limited.
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package proto.plugins.v1alpha1;

option go_package = "github.com/cofide/cofide-api-sdk/gen/go/proto/plugins/v1alpha1";

message Plugins {
optional string data_source = 1;
optional string provision = 2;
}
Loading