Skip to content

Commit

Permalink
Enhance the router data model with config information. Fixes #2010
Browse files Browse the repository at this point in the history
  • Loading branch information
plorenz committed May 23, 2024
1 parent f271825 commit 8fa92aa
Show file tree
Hide file tree
Showing 25 changed files with 3,697 additions and 2,227 deletions.
16 changes: 16 additions & 0 deletions common/event_cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright NetFoundry Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package common

import (
Expand Down
16 changes: 16 additions & 0 deletions common/oidc_tokens.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright NetFoundry Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package common

import (
Expand Down
967 changes: 532 additions & 435 deletions common/pb/edge_cmd_pb/edge_cmd.pb.go

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion common/pb/edge_cmd_pb/edge_cmd.proto
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ message Controller {
bool isOnline = 6;
google.protobuf.Timestamp lastJoinedAt = 7;
map<string, TagValue> tags = 8;
map<string,ApiAddressList> apiAddresses = 9;
map<string, ApiAddressList> apiAddresses = 9;
}

message ApiAddressList {
Expand Down Expand Up @@ -291,6 +291,12 @@ message Identity {
string Version = 6;
}

message ServiceConfig {
string serviceId = 1;
string configTypeId = 2;
string configId = 3;
}

string id = 1;
string name = 2;
map<string, TagValue> tags = 3;
Expand All @@ -310,6 +316,7 @@ message Identity {
bool disabled = 17;
optional google.protobuf.Timestamp disabledAt = 18;
optional google.protobuf.Timestamp disabledUntil = 19;
repeated ServiceConfig serviceConfigs = 20;
}

message CreateIdentityWithEnrollmentsCmd {
Expand Down
Loading

0 comments on commit 8fa92aa

Please sign in to comment.