Skip to content

Commit

Permalink
Add Namespace and RepositoryContents messages in feature package
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSGK committed Sep 23, 2024
1 parent eeca13d commit ce5753a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions proto/lekko/feature/v1beta1/feature.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ce5753a

Please sign in to comment.