diff --git a/gen/go/proto/config/v1alpha1/config.pb.go b/gen/go/proto/config/v1alpha1/config.pb.go index a324259..77f3215 100644 --- a/gen/go/proto/config/v1alpha1/config.pb.go +++ b/gen/go/proto/config/v1alpha1/config.pb.go @@ -11,6 +11,7 @@ package v1alpha1 import ( v1alpha11 "github.com/cofide/cofide-api-sdk/gen/go/proto/attestation_policy/v1alpha1" + v1alpha12 "github.com/cofide/cofide-api-sdk/gen/go/proto/plugins/v1alpha1" v1alpha1 "github.com/cofide/cofide-api-sdk/gen/go/proto/trust_zone/v1alpha1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -31,10 +32,10 @@ type Config struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DataSource *string `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof" json:"data_source,omitempty"` - TrustZones []*v1alpha1.TrustZone `protobuf:"bytes,2,rep,name=trust_zones,json=trustZones,proto3" json:"trust_zones,omitempty"` - AttestationPolicies []*v1alpha11.AttestationPolicy `protobuf:"bytes,3,rep,name=attestation_policies,json=attestationPolicies,proto3" json:"attestation_policies,omitempty"` - PluginConfig map[string]*structpb.Struct `protobuf:"bytes,4,rep,name=plugin_config,json=pluginConfig,proto3" json:"plugin_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + TrustZones []*v1alpha1.TrustZone `protobuf:"bytes,1,rep,name=trust_zones,json=trustZones,proto3" json:"trust_zones,omitempty"` + AttestationPolicies []*v1alpha11.AttestationPolicy `protobuf:"bytes,2,rep,name=attestation_policies,json=attestationPolicies,proto3" json:"attestation_policies,omitempty"` + PluginConfig map[string]*structpb.Struct `protobuf:"bytes,3,rep,name=plugin_config,json=pluginConfig,proto3" json:"plugin_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Plugins *v1alpha12.Plugins `protobuf:"bytes,4,opt,name=plugins,proto3,oneof" json:"plugins,omitempty"` } func (x *Config) Reset() { @@ -67,13 +68,6 @@ func (*Config) Descriptor() ([]byte, []int) { return file_proto_config_v1alpha1_config_proto_rawDescGZIP(), []int{0} } -func (x *Config) GetDataSource() string { - if x != nil && x.DataSource != nil { - return *x.DataSource - } - return "" -} - func (x *Config) GetTrustZones() []*v1alpha1.TrustZone { if x != nil { return x.TrustZones @@ -95,6 +89,13 @@ func (x *Config) GetPluginConfig() map[string]*structpb.Struct { return nil } +func (x *Config) GetPlugins() *v1alpha12.Plugins { + if x != nil { + return x.Plugins + } + return nil +} + var File_proto_config_v1alpha1_config_proto protoreflect.FileDescriptor var file_proto_config_v1alpha1_config_proto_rawDesc = []byte{ @@ -107,40 +108,44 @@ var file_proto_config_v1alpha1_config_proto_rawDesc = []byte{ 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x75, - 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, - 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x9e, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0b, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, - 0x01, 0x01, 0x12, 0x45, 0x0a, 0x0b, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x03, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x73, 0x74, 0x5a, 0x6f, 0x6e, 0x65, 0x52, 0x0a, 0x74, 0x72, 0x75, 0x73, 0x74, 0x5a, 0x6f, 0x6e, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x14, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x13, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x0d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x58, 0x0a, 0x11, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3e, 0x0a, 0x07, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x1a, 0x58, 0x0a, 0x11, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x63, 0x6f, 0x66, 0x69, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x66, 0x69, 0x64, 0x65, 0x2d, 0x61, - 0x70, 0x69, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x38, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x3f, + 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x66, + 0x69, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x66, 0x69, 0x64, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x73, + 0x64, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -161,18 +166,20 @@ var file_proto_config_v1alpha1_config_proto_goTypes = []any{ nil, // 1: proto.config.v1alpha1.Config.PluginConfigEntry (*v1alpha1.TrustZone)(nil), // 2: proto.trust_zone.v1alpha1.TrustZone (*v1alpha11.AttestationPolicy)(nil), // 3: proto.attestation_policy.v1alpha1.AttestationPolicy - (*structpb.Struct)(nil), // 4: google.protobuf.Struct + (*v1alpha12.Plugins)(nil), // 4: proto.plugins.v1alpha1.Plugins + (*structpb.Struct)(nil), // 5: google.protobuf.Struct } var file_proto_config_v1alpha1_config_proto_depIdxs = []int32{ 2, // 0: proto.config.v1alpha1.Config.trust_zones:type_name -> proto.trust_zone.v1alpha1.TrustZone 3, // 1: proto.config.v1alpha1.Config.attestation_policies:type_name -> proto.attestation_policy.v1alpha1.AttestationPolicy 1, // 2: proto.config.v1alpha1.Config.plugin_config:type_name -> proto.config.v1alpha1.Config.PluginConfigEntry - 4, // 3: proto.config.v1alpha1.Config.PluginConfigEntry.value:type_name -> google.protobuf.Struct - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 4, // 3: proto.config.v1alpha1.Config.plugins:type_name -> proto.plugins.v1alpha1.Plugins + 5, // 4: proto.config.v1alpha1.Config.PluginConfigEntry.value:type_name -> google.protobuf.Struct + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name } func init() { file_proto_config_v1alpha1_config_proto_init() } diff --git a/gen/go/proto/plugins/v1alpha1/plugins.pb.go b/gen/go/proto/plugins/v1alpha1/plugins.pb.go new file mode 100644 index 0000000..28cd9a1 --- /dev/null +++ b/gen/go/proto/plugins/v1alpha1/plugins.pb.go @@ -0,0 +1,148 @@ +// Copyright 2024 Cofide Limited. +// SPDX-License-Identifier: Apache-2.0 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc (unknown) +// source: proto/plugins/v1alpha1/plugins.proto + +package v1alpha1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Plugins struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DataSource *string `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3,oneof" json:"data_source,omitempty"` + Provision *string `protobuf:"bytes,2,opt,name=provision,proto3,oneof" json:"provision,omitempty"` +} + +func (x *Plugins) Reset() { + *x = Plugins{} + mi := &file_proto_plugins_v1alpha1_plugins_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Plugins) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Plugins) ProtoMessage() {} + +func (x *Plugins) ProtoReflect() protoreflect.Message { + mi := &file_proto_plugins_v1alpha1_plugins_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Plugins.ProtoReflect.Descriptor instead. +func (*Plugins) Descriptor() ([]byte, []int) { + return file_proto_plugins_v1alpha1_plugins_proto_rawDescGZIP(), []int{0} +} + +func (x *Plugins) GetDataSource() string { + if x != nil && x.DataSource != nil { + return *x.DataSource + } + return "" +} + +func (x *Plugins) GetProvision() string { + if x != nil && x.Provision != nil { + return *x.Provision + } + return "" +} + +var File_proto_plugins_v1alpha1_plugins_proto protoreflect.FileDescriptor + +var file_proto_plugins_v1alpha1_plugins_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x70, + 0x0a, 0x07, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x21, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x88, + 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, + 0x6f, 0x66, 0x69, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x66, 0x69, 0x64, 0x65, 0x2d, 0x61, 0x70, 0x69, + 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proto_plugins_v1alpha1_plugins_proto_rawDescOnce sync.Once + file_proto_plugins_v1alpha1_plugins_proto_rawDescData = file_proto_plugins_v1alpha1_plugins_proto_rawDesc +) + +func file_proto_plugins_v1alpha1_plugins_proto_rawDescGZIP() []byte { + file_proto_plugins_v1alpha1_plugins_proto_rawDescOnce.Do(func() { + file_proto_plugins_v1alpha1_plugins_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_plugins_v1alpha1_plugins_proto_rawDescData) + }) + return file_proto_plugins_v1alpha1_plugins_proto_rawDescData +} + +var file_proto_plugins_v1alpha1_plugins_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_proto_plugins_v1alpha1_plugins_proto_goTypes = []any{ + (*Plugins)(nil), // 0: proto.plugins.v1alpha1.Plugins +} +var file_proto_plugins_v1alpha1_plugins_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_proto_plugins_v1alpha1_plugins_proto_init() } +func file_proto_plugins_v1alpha1_plugins_proto_init() { + if File_proto_plugins_v1alpha1_plugins_proto != nil { + return + } + file_proto_plugins_v1alpha1_plugins_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_plugins_v1alpha1_plugins_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_proto_plugins_v1alpha1_plugins_proto_goTypes, + DependencyIndexes: file_proto_plugins_v1alpha1_plugins_proto_depIdxs, + MessageInfos: file_proto_plugins_v1alpha1_plugins_proto_msgTypes, + }.Build() + File_proto_plugins_v1alpha1_plugins_proto = out.File + file_proto_plugins_v1alpha1_plugins_proto_rawDesc = nil + file_proto_plugins_v1alpha1_plugins_proto_goTypes = nil + file_proto_plugins_v1alpha1_plugins_proto_depIdxs = nil +} diff --git a/proto/config/v1alpha1/config.proto b/proto/config/v1alpha1/config.proto index d07fbee..7716332 100644 --- a/proto/config/v1alpha1/config.proto +++ b/proto/config/v1alpha1/config.proto @@ -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 plugin_config = 4; + repeated proto.trust_zone.v1alpha1.TrustZone trust_zones = 1; + repeated proto.attestation_policy.v1alpha1.AttestationPolicy attestation_policies = 2; + map plugin_config = 3; + optional proto.plugins.v1alpha1.Plugins plugins = 4; } diff --git a/proto/plugins/v1alpha1/plugins.proto b/proto/plugins/v1alpha1/plugins.proto new file mode 100644 index 0000000..22c4f27 --- /dev/null +++ b/proto/plugins/v1alpha1/plugins.proto @@ -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; +}