From ce5753a248d9c49b44c7be0f47ba160035246f84 Mon Sep 17 00:00:00 2001 From: David Kang Date: Mon, 23 Sep 2024 09:25:13 -0700 Subject: [PATCH] Add Namespace and RepositoryContents messages in feature package --- proto/lekko/feature/v1beta1/feature.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/proto/lekko/feature/v1beta1/feature.proto b/proto/lekko/feature/v1beta1/feature.proto index 348e8510..804f6083 100644 --- a/proto/lekko/feature/v1beta1/feature.proto +++ b/proto/lekko/feature/v1beta1/feature.proto @@ -17,10 +17,25 @@ syntax = "proto3"; package lekko.feature.v1beta1; import "google/protobuf/any.proto"; +import "google/protobuf/descriptor.proto"; import "google/protobuf/struct.proto"; import "lekko/rules/v1beta2/rules.proto"; import "lekko/rules/v1beta3/rules.proto"; +// A config repository's contents are made up of namespaces/features and the types +// required to describe them. +// Lekkos written in all languages should be able to have 1:1 mappings with this +// structure. +message RepositoryContents { + repeated Namespace namespaces = 1; + google.protobuf.FileDescriptorSet file_descriptor_set = 2; +} + +message Namespace { + string name = 1; + repeated Feature features = 2; +} + // A prototype of the wrapper type that will be used to house all feature flags for // the 'homegrown' feature flagging solution: // User-defined proto defintions, and a tree-based constraints system.