Skip to content

Commit

Permalink
Fix ClientI
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Oct 4, 2024
1 parent 143b385 commit 4967ce6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/auth/authclient/clt.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,10 @@ func (c *Client) AccessMonitoringRuleClient() services.AccessMonitoringRules {
return c.APIClient.AccessMonitoringRulesClient()
}

func (c *Client) AutoUpdateClient() services.AutoUpdateService {
return c.APIClient.AutoUpdateClient()
}

func (c *Client) ExternalAuditStorageClient() *externalauditstorage.Client {
return c.APIClient.ExternalAuditStorageClient()
}
Expand Down Expand Up @@ -1581,7 +1585,6 @@ type ClientI interface {
WebService
services.Status
services.ClusterConfiguration
services.AutoUpdateServiceGetter
services.SessionTrackerService
services.ConnectionsDiagnostic
services.SAMLIdPSession
Expand Down Expand Up @@ -1757,6 +1760,12 @@ type ClientI interface {
// (as per the default gRPC behavior).
AccessMonitoringRuleClient() services.AccessMonitoringRules

// AutoUpdateClient returns an auto update client.
// Clients connecting to older Teleport versions, still get an auto update client
// when calling this method, but all RPCs will return "not implemented" errors
// (as per the default gRPC behavior).
AutoUpdateClient() services.AutoUpdateService

// DatabaseObjectImportRuleClient returns a database object import rule client.
DatabaseObjectImportRuleClient() dbobjectimportrulev1.DatabaseObjectImportRuleServiceClient

Expand Down

0 comments on commit 4967ce6

Please sign in to comment.