Skip to content

Commit

Permalink
Add plugin status details proto for Entra ID (#43536)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinas authored Jun 26, 2024
1 parent 2848fc4 commit 8fd29bc
Show file tree
Hide file tree
Showing 3 changed files with 2,004 additions and 1,722 deletions.
9 changes: 9 additions & 0 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6097,6 +6097,7 @@ message PluginStatusV1 {
oneof details {
// gitlab is the status details for the Gitlab plugin.
PluginGitlabStatusV1 gitlab = 4;
PluginEntraIDStatusV1 entra_id = 5;
}
}

Expand All @@ -6110,6 +6111,14 @@ message PluginGitlabStatusV1 {
uint32 imported_projects = 3;
}

// PluginEntraIDStatusV1 is the status details for the Entra ID plugin.
message PluginEntraIDStatusV1 {
// imported_users is the number of users imported from Entra ID.
uint32 imported_users = 1;
// imported_groups is the number of groups imported from Entra ID.
uint32 imported_groups = 2;
}

enum PluginStatusCode {
// UNKNOWN is the default value when the plugin has not reported its status yet.
UNKNOWN = 0;
Expand Down
1 change: 1 addition & 0 deletions api/types/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ type PluginStatus interface {
GetErrorMessage() string
GetLastSyncTime() time.Time
GetGitlab() *PluginGitlabStatusV1
GetEntraId() *PluginEntraIDStatusV1
}

// NewPluginV1 creates a new PluginV1 resource.
Expand Down
Loading

0 comments on commit 8fd29bc

Please sign in to comment.