Skip to content

Commit

Permalink
Merge pull request #14 from cofide/plugins-config
Browse files Browse the repository at this point in the history
Add Plugins message, add it to Config message
  • Loading branch information
markgoddard authored Dec 12, 2024
2 parents 1388b27 + 3ef03dc commit 527e216
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 39 deletions.
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 @@ package proto.config.v1alpha1;

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;
repeated proto.attestation_policy.v1alpha1.AttestationPolicy attestation_policies = 2;
map<string, google.protobuf.Struct> plugin_config = 3;
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;
}

0 comments on commit 527e216

Please sign in to comment.