Skip to content

Commit dbf2889

Browse files
authored
Add Namespace and RepositoryContents messages in feature package (#458)
1 parent 130df7b commit dbf2889

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

proto/lekko/feature/v1beta1/feature.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,25 @@ syntax = "proto3";
1717
package lekko.feature.v1beta1;
1818

1919
import "google/protobuf/any.proto";
20+
import "google/protobuf/descriptor.proto";
2021
import "google/protobuf/struct.proto";
2122
import "lekko/rules/v1beta2/rules.proto";
2223
import "lekko/rules/v1beta3/rules.proto";
2324

25+
// A config repository's contents are made up of namespaces/features and the types
26+
// required to describe them.
27+
// Lekkos written in all languages should be able to have 1:1 mappings with this
28+
// structure.
29+
message RepositoryContents {
30+
repeated Namespace namespaces = 1;
31+
google.protobuf.FileDescriptorSet file_descriptor_set = 2;
32+
}
33+
34+
message Namespace {
35+
string name = 1;
36+
repeated Feature features = 2;
37+
}
38+
2439
// A prototype of the wrapper type that will be used to house all feature flags for
2540
// the 'homegrown' feature flagging solution:
2641
// User-defined proto defintions, and a tree-based constraints system.

0 commit comments

Comments
 (0)