Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + const LegacyPasswordTokensPrefix + var GlobalSessionDataMaxEntries = 5000 + func CreateResources(ctx context.Context, b backend.Backend, resources ...types.Resource) error + func FakePaginate(resources []types.ResourceWithLabels, req proto.ListResourcesRequest) (*types.ListResourcesResponse, error) + func ItemsFromResources(resources ...types.Resource) ([]backend.Item, error) + func ItemsToResources(items ...backend.Item) ([]types.Resource, error) + func NewSessionTrackerService(bk backend.Backend) (services.SessionTrackerService, error) + func WaitForEvent(ctx context.Context, watcher types.Watcher, m EventMatcher, ...) (types.Resource, error) + type AccessService struct + func NewAccessService(backend backend.Backend) *AccessService + func (s *AccessService) CreateRole(ctx context.Context, role types.Role) error + func (s *AccessService) DeleteAllLocks(ctx context.Context) error + func (s *AccessService) DeleteAllRoles() error + func (s *AccessService) DeleteLock(ctx context.Context, name string) error + func (s *AccessService) DeleteRole(ctx context.Context, name string) error + func (s *AccessService) GetLock(ctx context.Context, name string) (types.Lock, error) + func (s *AccessService) GetLocks(ctx context.Context, inForceOnly bool, targets ...types.LockTarget) ([]types.Lock, error) + func (s *AccessService) GetRole(ctx context.Context, name string) (types.Role, error) + func (s *AccessService) GetRoles(ctx context.Context) ([]types.Role, error) + func (s *AccessService) ReplaceRemoteLocks(ctx context.Context, clusterName string, newRemoteLocks []types.Lock) error + func (s *AccessService) UpsertLock(ctx context.Context, lock types.Lock) error + func (s *AccessService) UpsertRole(ctx context.Context, role types.Role) error + type AppService struct + func NewAppService(backend backend.Backend) *AppService + func (s *AppService) CreateApp(ctx context.Context, app types.Application) error + func (s *AppService) DeleteAllApps(ctx context.Context) error + func (s *AppService) DeleteApp(ctx context.Context, name string) error + func (s *AppService) GetApp(ctx context.Context, name string) (types.Application, error) + func (s *AppService) GetApps(ctx context.Context) ([]types.Application, error) + func (s *AppService) UpdateApp(ctx context.Context, app types.Application) error + type AssertionReplayService struct + func NewAssertionReplayService(bk backend.Backend) *AssertionReplayService + func (s *AssertionReplayService) RecognizeSSOAssertion(ctx context.Context, connectorID string, assertionID string, user string, ...) error + type CA struct + func NewCAService(b backend.Backend) *CA + func (s *CA) ActivateCertAuthority(id types.CertAuthID) error + func (s *CA) CompareAndSwapCertAuthority(new, expected types.CertAuthority) error + func (s *CA) CreateCertAuthority(ca types.CertAuthority) error + func (s *CA) DeactivateCertAuthority(id types.CertAuthID) error + func (s *CA) DeleteAllCertAuthorities(caType types.CertAuthType) error + func (s *CA) DeleteCertAuthority(id types.CertAuthID) error + func (s *CA) GetCertAuthorities(ctx context.Context, caType types.CertAuthType, loadSigningKeys bool, ...) ([]types.CertAuthority, error) + func (s *CA) GetCertAuthority(ctx context.Context, id types.CertAuthID, loadSigningKeys bool, ...) (types.CertAuthority, error) + func (s *CA) UpsertCertAuthority(ca types.CertAuthority) error + type ClusterConfigurationService struct + func NewClusterConfigurationService(backend backend.Backend) (*ClusterConfigurationService, error) + func (s *ClusterConfigurationService) DeleteAllInstallers(ctx context.Context) error + func (s *ClusterConfigurationService) DeleteAuthPreference(ctx context.Context) error + func (s *ClusterConfigurationService) DeleteClusterAuditConfig(ctx context.Context) error + func (s *ClusterConfigurationService) DeleteClusterName() error + func (s *ClusterConfigurationService) DeleteClusterNetworkingConfig(ctx context.Context) error + func (s *ClusterConfigurationService) DeleteInstaller(ctx context.Context, name string) error + func (s *ClusterConfigurationService) DeleteSessionRecordingConfig(ctx context.Context) error + func (s *ClusterConfigurationService) DeleteStaticTokens() error + func (s *ClusterConfigurationService) GetAuthPreference(ctx context.Context) (types.AuthPreference, error) + func (s *ClusterConfigurationService) GetClusterAuditConfig(ctx context.Context, opts ...services.MarshalOption) (types.ClusterAuditConfig, error) + func (s *ClusterConfigurationService) GetClusterName(opts ...services.MarshalOption) (types.ClusterName, error) + func (s *ClusterConfigurationService) GetClusterNetworkingConfig(ctx context.Context, opts ...services.MarshalOption) (types.ClusterNetworkingConfig, error) + func (s *ClusterConfigurationService) GetInstaller(ctx context.Context, name string) (types.Installer, error) + func (s *ClusterConfigurationService) GetInstallers(ctx context.Context) ([]types.Installer, error) + func (s *ClusterConfigurationService) GetSessionRecordingConfig(ctx context.Context, opts ...services.MarshalOption) (types.SessionRecordingConfig, error) + func (s *ClusterConfigurationService) GetStaticTokens() (types.StaticTokens, error) + func (s *ClusterConfigurationService) SetAuthPreference(ctx context.Context, preferences types.AuthPreference) error + func (s *ClusterConfigurationService) SetClusterAuditConfig(ctx context.Context, auditConfig types.ClusterAuditConfig) error + func (s *ClusterConfigurationService) SetClusterName(c types.ClusterName) error + func (s *ClusterConfigurationService) SetClusterNetworkingConfig(ctx context.Context, netConfig types.ClusterNetworkingConfig) error + func (s *ClusterConfigurationService) SetInstaller(ctx context.Context, ins types.Installer) error + func (s *ClusterConfigurationService) SetSessionRecordingConfig(ctx context.Context, recConfig types.SessionRecordingConfig) error + func (s *ClusterConfigurationService) SetStaticTokens(c types.StaticTokens) error + func (s *ClusterConfigurationService) UpsertClusterName(c types.ClusterName) error + type ConnectionDiagnosticService struct + func NewConnectionsDiagnosticService(backend backend.Backend) *ConnectionDiagnosticService + func (s *ConnectionDiagnosticService) AppendDiagnosticTrace(ctx context.Context, name string, t *types.ConnectionDiagnosticTrace) (types.ConnectionDiagnostic, error) + func (s *ConnectionDiagnosticService) CreateConnectionDiagnostic(ctx context.Context, connectionDiagnostic types.ConnectionDiagnostic) error + func (s *ConnectionDiagnosticService) GetConnectionDiagnostic(ctx context.Context, name string) (types.ConnectionDiagnostic, error) + func (s *ConnectionDiagnosticService) UpdateConnectionDiagnostic(ctx context.Context, connectionDiagnostic types.ConnectionDiagnostic) error + type DatabaseService struct + func NewDatabasesService(backend backend.Backend) *DatabaseService + func (s *DatabaseService) CreateDatabase(ctx context.Context, database types.Database) error + func (s *DatabaseService) DeleteAllDatabases(ctx context.Context) error + func (s *DatabaseService) DeleteDatabase(ctx context.Context, name string) error + func (s *DatabaseService) GetDatabase(ctx context.Context, name string) (types.Database, error) + func (s *DatabaseService) GetDatabases(ctx context.Context) ([]types.Database, error) + func (s *DatabaseService) UpdateDatabase(ctx context.Context, database types.Database) error + type DiscardUsageReporter struct + func NewDiscardUsageReporter() *DiscardUsageReporter + func (d *DiscardUsageReporter) SubmitAnonymizedUsageEvents(event ...services.UsageAnonymizable) error + type DynamicAccessService struct + func NewDynamicAccessService(backend backend.Backend) *DynamicAccessService + func (s *DynamicAccessService) ApplyAccessReview(ctx context.Context, params types.AccessReviewSubmission, ...) (types.AccessRequest, error) + func (s *DynamicAccessService) CreateAccessRequest(ctx context.Context, req types.AccessRequest) error + func (s *DynamicAccessService) DeleteAccessRequest(ctx context.Context, name string) error + func (s *DynamicAccessService) DeleteAllAccessRequests(ctx context.Context) error + func (s *DynamicAccessService) GetAccessRequest(ctx context.Context, name string) (types.AccessRequest, error) + func (s *DynamicAccessService) GetAccessRequests(ctx context.Context, filter types.AccessRequestFilter) ([]types.AccessRequest, error) + func (s *DynamicAccessService) GetPluginData(ctx context.Context, filter types.PluginDataFilter) ([]types.PluginData, error) + func (s *DynamicAccessService) SetAccessRequestState(ctx context.Context, params types.AccessRequestUpdate) (types.AccessRequest, error) + func (s *DynamicAccessService) UpdatePluginData(ctx context.Context, params types.PluginDataUpdateParams) error + func (s *DynamicAccessService) UpsertAccessRequest(ctx context.Context, req types.AccessRequest) error + type EventMatcher interface + Match func(types.Event) (types.Resource, error) + type EventMatcherFunc func(types.Event) (types.Resource, error) + func (r EventMatcherFunc) Match(event types.Event) (types.Resource, error) + type EventsService struct + func NewEventsService(b backend.Backend) *EventsService + func (e *EventsService) NewWatcher(ctx context.Context, watch types.Watch) (types.Watcher, error) + type IdentityService struct + func NewIdentityService(backend backend.Backend) *IdentityService + func (s *IdentityService) AddUserLoginAttempt(user string, attempt services.LoginAttempt, ttl time.Duration) error + func (s *IdentityService) CompareAndSwapUser(ctx context.Context, new, existing types.User) error + func (s *IdentityService) CreateGithubAuthRequest(ctx context.Context, req types.GithubAuthRequest) error + func (s *IdentityService) CreateOIDCAuthRequest(ctx context.Context, req types.OIDCAuthRequest, ttl time.Duration) error + func (s *IdentityService) CreateSAMLAuthRequest(ctx context.Context, req types.SAMLAuthRequest, ttl time.Duration) error + func (s *IdentityService) CreateSSODiagnosticInfo(ctx context.Context, authKind string, authRequestID string, ...) error + func (s *IdentityService) CreateUser(user types.User) error + func (s *IdentityService) CreateUserRecoveryAttempt(ctx context.Context, user string, attempt *types.RecoveryAttempt) error + func (s *IdentityService) CreateUserToken(ctx context.Context, token types.UserToken) (types.UserToken, error) + func (s *IdentityService) DeleteAllAppSessions(ctx context.Context) error + func (s *IdentityService) DeleteAllSnowflakeSessions(ctx context.Context) error + func (s *IdentityService) DeleteAllUsers() error + func (s *IdentityService) DeleteAppSession(ctx context.Context, req types.DeleteAppSessionRequest) error + func (s *IdentityService) DeleteGithubConnector(ctx context.Context, name string) error + func (s *IdentityService) DeleteGlobalWebauthnSessionData(ctx context.Context, scope, id string) error + func (s *IdentityService) DeleteMFADevice(ctx context.Context, user, id string) error + func (s *IdentityService) DeleteOIDCConnector(ctx context.Context, name string) error + func (s *IdentityService) DeleteSAMLConnector(ctx context.Context, name string) error + func (s *IdentityService) DeleteSnowflakeSession(ctx context.Context, req types.DeleteSnowflakeSessionRequest) error + func (s *IdentityService) DeleteUsedTOTPToken(user string) error + func (s *IdentityService) DeleteUser(ctx context.Context, user string) error + func (s *IdentityService) DeleteUserAppSessions(ctx context.Context, req *proto.DeleteUserAppSessionsRequest) error + func (s *IdentityService) DeleteUserLoginAttempts(user string) error + func (s *IdentityService) DeleteUserRecoveryAttempts(ctx context.Context, user string) error + func (s *IdentityService) DeleteUserToken(ctx context.Context, tokenID string) error + func (s *IdentityService) DeleteWebauthnSessionData(ctx context.Context, user, sessionID string) error + func (s *IdentityService) GetAppSession(ctx context.Context, req types.GetAppSessionRequest) (types.WebSession, error) + func (s *IdentityService) GetAppSessions(ctx context.Context) ([]types.WebSession, error) + func (s *IdentityService) GetGithubAuthRequest(ctx context.Context, stateToken string) (*types.GithubAuthRequest, error) + func (s *IdentityService) GetGithubConnector(ctx context.Context, name string, withSecrets bool) (types.GithubConnector, error) + func (s *IdentityService) GetGithubConnectors(ctx context.Context, withSecrets bool) ([]types.GithubConnector, error) + func (s *IdentityService) GetGlobalWebauthnSessionData(ctx context.Context, scope, id string) (*wantypes.SessionData, error) + func (s *IdentityService) GetKeyAttestationData(ctx context.Context, publicKey crypto.PublicKey) (*keys.AttestationData, error) + func (s *IdentityService) GetMFADevices(ctx context.Context, user string, withSecrets bool) ([]*types.MFADevice, error) + func (s *IdentityService) GetOIDCAuthRequest(ctx context.Context, stateToken string) (*types.OIDCAuthRequest, error) + func (s *IdentityService) GetOIDCConnector(ctx context.Context, name string, withSecrets bool) (types.OIDCConnector, error) + func (s *IdentityService) GetOIDCConnectors(ctx context.Context, withSecrets bool) ([]types.OIDCConnector, error) + func (s *IdentityService) GetPasswordHash(user string) ([]byte, error) + func (s *IdentityService) GetRecoveryCodes(ctx context.Context, user string, withSecrets bool) (*types.RecoveryCodesV1, error) + func (s *IdentityService) GetSAMLAuthRequest(ctx context.Context, id string) (*types.SAMLAuthRequest, error) + func (s *IdentityService) GetSAMLConnector(ctx context.Context, name string, withSecrets bool) (types.SAMLConnector, error) + func (s *IdentityService) GetSAMLConnectors(ctx context.Context, withSecrets bool) ([]types.SAMLConnector, error) + func (s *IdentityService) GetSSODiagnosticInfo(ctx context.Context, authKind string, authRequestID string) (*types.SSODiagnosticInfo, error) + func (s *IdentityService) GetSnowflakeSession(ctx context.Context, req types.GetSnowflakeSessionRequest) (types.WebSession, error) + func (s *IdentityService) GetSnowflakeSessions(ctx context.Context) ([]types.WebSession, error) + func (s *IdentityService) GetTeleportUserByWebauthnID(ctx context.Context, webID []byte) (string, error) + func (s *IdentityService) GetUsedTOTPToken(user string) (string, error) + func (s *IdentityService) GetUser(user string, withSecrets bool) (types.User, error) + func (s *IdentityService) GetUserAppSessions(ctx context.Context, user string) ([]types.WebSession, error) + func (s *IdentityService) GetUserByGithubIdentity(id types.ExternalIdentity) (types.User, error) + func (s *IdentityService) GetUserByOIDCIdentity(id types.ExternalIdentity) (types.User, error) + func (s *IdentityService) GetUserBySAMLIdentity(id types.ExternalIdentity) (types.User, error) + func (s *IdentityService) GetUserLoginAttempts(user string) ([]services.LoginAttempt, error) + func (s *IdentityService) GetUserRecoveryAttempts(ctx context.Context, user string) ([]*types.RecoveryAttempt, error) + func (s *IdentityService) GetUserToken(ctx context.Context, tokenID string) (types.UserToken, error) + func (s *IdentityService) GetUserTokenSecrets(ctx context.Context, tokenID string) (types.UserTokenSecrets, error) + func (s *IdentityService) GetUserTokens(ctx context.Context) ([]types.UserToken, error) + func (s *IdentityService) GetUsers(withSecrets bool) ([]types.User, error) + func (s *IdentityService) GetWebauthnLocalAuth(ctx context.Context, user string) (*types.WebauthnLocalAuth, error) + func (s *IdentityService) GetWebauthnSessionData(ctx context.Context, user, sessionID string) (*wantypes.SessionData, error) + func (s *IdentityService) UpdateUser(ctx context.Context, user types.User) error + func (s *IdentityService) UpsertAppSession(ctx context.Context, session types.WebSession) error + func (s *IdentityService) UpsertGithubConnector(ctx context.Context, connector types.GithubConnector) error + func (s *IdentityService) UpsertGlobalWebauthnSessionData(ctx context.Context, scope, id string, sd *wantypes.SessionData) error + func (s *IdentityService) UpsertKeyAttestationData(ctx context.Context, attestationData *keys.AttestationData, ttl time.Duration) error + func (s *IdentityService) UpsertMFADevice(ctx context.Context, user string, d *types.MFADevice) error + func (s *IdentityService) UpsertOIDCConnector(ctx context.Context, connector types.OIDCConnector) error + func (s *IdentityService) UpsertPassword(user string, password []byte) error + func (s *IdentityService) UpsertPasswordHash(username string, hash []byte) error + func (s *IdentityService) UpsertRecoveryCodes(ctx context.Context, user string, recovery *types.RecoveryCodesV1) error + func (s *IdentityService) UpsertSAMLConnector(ctx context.Context, connector types.SAMLConnector) error + func (s *IdentityService) UpsertSnowflakeSession(ctx context.Context, session types.WebSession) error + func (s *IdentityService) UpsertUsedTOTPToken(user string, otpToken string) error + func (s *IdentityService) UpsertUser(user types.User) error + func (s *IdentityService) UpsertUserTokenSecrets(ctx context.Context, secrets types.UserTokenSecrets) error + func (s *IdentityService) UpsertWebauthnLocalAuth(ctx context.Context, user string, wla *types.WebauthnLocalAuth) error + func (s *IdentityService) UpsertWebauthnSessionData(ctx context.Context, user, sessionID string, sd *wantypes.SessionData) error + func (s *IdentityService) WebSessions() types.WebSessionInterface + func (s *IdentityService) WebTokens() types.WebTokenInterface + type KubernetesService struct + func NewKubernetesService(backend backend.Backend) *KubernetesService + func (s *KubernetesService) CreateKubernetesCluster(ctx context.Context, cluster types.KubeCluster) error + func (s *KubernetesService) DeleteAllKubernetesClusters(ctx context.Context) error + func (s *KubernetesService) DeleteKubernetesCluster(ctx context.Context, name string) error + func (s *KubernetesService) GetKubernetesCluster(ctx context.Context, name string) (types.KubeCluster, error) + func (s *KubernetesService) GetKubernetesClusters(ctx context.Context) ([]types.KubeCluster, error) + func (s *KubernetesService) UpdateKubernetesCluster(ctx context.Context, cluster types.KubeCluster) error + type NoopEnforcer struct + func NewNoopEnforcer() *NoopEnforcer + func (r *NoopEnforcer) GetLicenseCheckResult(ctx context.Context) (*types.Heartbeat, error) + type PresenceService struct + func NewPresenceService(b backend.Backend) *PresenceService + func (s *PresenceService) AcquireSemaphore(ctx context.Context, req types.AcquireSemaphoreRequest) (*types.SemaphoreLease, error) + func (s *PresenceService) CancelSemaphoreLease(ctx context.Context, lease types.SemaphoreLease) error + func (s *PresenceService) CreateRemoteCluster(rc types.RemoteCluster) error + func (s *PresenceService) DeleteAllApplicationServers(ctx context.Context, namespace string) error + func (s *PresenceService) DeleteAllAuthServers() error + func (s *PresenceService) DeleteAllDatabaseServers(ctx context.Context, namespace string) error + func (s *PresenceService) DeleteAllKubeServices(ctx context.Context) error + func (s *PresenceService) DeleteAllKubernetesServers(ctx context.Context) error + func (s *PresenceService) DeleteAllNamespaces() error + func (s *PresenceService) DeleteAllNodes(ctx context.Context, namespace string) error + func (s *PresenceService) DeleteAllProxies() error + func (s *PresenceService) DeleteAllRemoteClusters() error + func (s *PresenceService) DeleteAllReverseTunnels() error + func (s *PresenceService) DeleteAllTunnelConnections() error + func (s *PresenceService) DeleteAllWindowsDesktopServices(ctx context.Context) error + func (s *PresenceService) DeleteApplicationServer(ctx context.Context, namespace, hostID, name string) error + func (s *PresenceService) DeleteAuthServer(name string) error + func (s *PresenceService) DeleteDatabaseServer(ctx context.Context, namespace, hostID, name string) error + func (s *PresenceService) DeleteKubeService(ctx context.Context, name string) error + func (s *PresenceService) DeleteKubernetesServer(ctx context.Context, hostID, name string) error + func (s *PresenceService) DeleteNamespace(namespace string) error + func (s *PresenceService) DeleteNode(ctx context.Context, namespace string, name string) error + func (s *PresenceService) DeleteProxy(name string) error + func (s *PresenceService) DeleteRemoteCluster(clusterName string) error + func (s *PresenceService) DeleteReverseTunnel(clusterName string) error + func (s *PresenceService) DeleteSemaphore(ctx context.Context, filter types.SemaphoreFilter) error + func (s *PresenceService) DeleteTrustedCluster(ctx context.Context, name string) error + func (s *PresenceService) DeleteTunnelConnection(clusterName, connectionName string) error + func (s *PresenceService) DeleteTunnelConnections(clusterName string) error + func (s *PresenceService) DeleteWindowsDesktopService(ctx context.Context, name string) error + func (s *PresenceService) GetAllTunnelConnections(opts ...services.MarshalOption) ([]types.TunnelConnection, error) + func (s *PresenceService) GetApplicationServers(ctx context.Context, namespace string) ([]types.AppServer, error) + func (s *PresenceService) GetAuthServers() ([]types.Server, error) + func (s *PresenceService) GetDatabaseServers(ctx context.Context, namespace string, opts ...services.MarshalOption) ([]types.DatabaseServer, error) + func (s *PresenceService) GetHostUserInteractionTime(ctx context.Context, name string) (time.Time, error) + func (s *PresenceService) GetKubeServices(ctx context.Context) ([]types.Server, error) + func (s *PresenceService) GetKubernetesServers(ctx context.Context) ([]types.KubeServer, error) + func (s *PresenceService) GetNamespace(name string) (*types.Namespace, error) + func (s *PresenceService) GetNamespaces() ([]types.Namespace, error) + func (s *PresenceService) GetNode(ctx context.Context, namespace, name string) (types.Server, error) + func (s *PresenceService) GetNodes(ctx context.Context, namespace string) ([]types.Server, error) + func (s *PresenceService) GetProxies() ([]types.Server, error) + func (s *PresenceService) GetRemoteCluster(clusterName string) (types.RemoteCluster, error) + func (s *PresenceService) GetRemoteClusters(opts ...services.MarshalOption) ([]types.RemoteCluster, error) + func (s *PresenceService) GetReverseTunnel(name string, opts ...services.MarshalOption) (types.ReverseTunnel, error) + func (s *PresenceService) GetReverseTunnels(ctx context.Context, opts ...services.MarshalOption) ([]types.ReverseTunnel, error) + func (s *PresenceService) GetSemaphores(ctx context.Context, filter types.SemaphoreFilter) ([]types.Semaphore, error) + func (s *PresenceService) GetTrustedCluster(ctx context.Context, name string) (types.TrustedCluster, error) + func (s *PresenceService) GetTrustedClusters(ctx context.Context) ([]types.TrustedCluster, error) + func (s *PresenceService) GetTunnelConnection(clusterName, connectionName string, opts ...services.MarshalOption) (types.TunnelConnection, error) + func (s *PresenceService) GetTunnelConnections(clusterName string, opts ...services.MarshalOption) ([]types.TunnelConnection, error) + func (s *PresenceService) GetWindowsDesktopService(ctx context.Context, name string) (types.WindowsDesktopService, error) + func (s *PresenceService) GetWindowsDesktopServices(ctx context.Context) ([]types.WindowsDesktopService, error) + func (s *PresenceService) KeepAliveNode(ctx context.Context, h types.KeepAlive) error + func (s *PresenceService) KeepAliveSemaphoreLease(ctx context.Context, lease types.SemaphoreLease) error + func (s *PresenceService) KeepAliveServer(ctx context.Context, h types.KeepAlive) error + func (s *PresenceService) ListResources(ctx context.Context, req proto.ListResourcesRequest) (*types.ListResourcesResponse, error) + func (s *PresenceService) UpdateRemoteCluster(ctx context.Context, rc types.RemoteCluster) error + func (s *PresenceService) UpsertApplicationServer(ctx context.Context, server types.AppServer) (*types.KeepAlive, error) + func (s *PresenceService) UpsertAuthServer(server types.Server) error + func (s *PresenceService) UpsertDatabaseServer(ctx context.Context, server types.DatabaseServer) (*types.KeepAlive, error) + func (s *PresenceService) UpsertHostUserInteractionTime(ctx context.Context, name string, loginTime time.Time) error + func (s *PresenceService) UpsertKubeService(ctx context.Context, server types.Server) error + func (s *PresenceService) UpsertKubeServiceV2(ctx context.Context, server types.Server) (*types.KeepAlive, error) + func (s *PresenceService) UpsertKubernetesServer(ctx context.Context, server types.KubeServer) (*types.KeepAlive, error) + func (s *PresenceService) UpsertNamespace(n types.Namespace) error + func (s *PresenceService) UpsertNode(ctx context.Context, server types.Server) (*types.KeepAlive, error) + func (s *PresenceService) UpsertProxy(server types.Server) error + func (s *PresenceService) UpsertReverseTunnel(tunnel types.ReverseTunnel) error + func (s *PresenceService) UpsertTrustedCluster(ctx context.Context, trustedCluster types.TrustedCluster) (types.TrustedCluster, error) + func (s *PresenceService) UpsertTunnelConnection(conn types.TunnelConnection) error + func (s *PresenceService) UpsertWindowsDesktopService(ctx context.Context, srv types.WindowsDesktopService) (*types.KeepAlive, error) + type ProvisioningService struct + func NewProvisioningService(backend backend.Backend) *ProvisioningService + func (s *ProvisioningService) CreateToken(ctx context.Context, p types.ProvisionToken) error + func (s *ProvisioningService) DeleteAllTokens() error + func (s *ProvisioningService) DeleteToken(ctx context.Context, token string) error + func (s *ProvisioningService) GetToken(ctx context.Context, token string) (types.ProvisionToken, error) + func (s *ProvisioningService) GetTokens(ctx context.Context) ([]types.ProvisionToken, error) + func (s *ProvisioningService) UpsertToken(ctx context.Context, p types.ProvisionToken) error + type RestrictionsService struct + func NewRestrictionsService(backend backend.Backend) *RestrictionsService + func (s *RestrictionsService) DeleteNetworkRestrictions(ctx context.Context) error + func (s *RestrictionsService) GetNetworkRestrictions(ctx context.Context) (types.NetworkRestrictions, error) + func (s *RestrictionsService) SetNetworkRestrictions(ctx context.Context, nr types.NetworkRestrictions) error + type Status interface + DeleteClusterAlert func(ctx context.Context, alertID string) error + GetClusterAlerts func(ctx context.Context, query types.GetClusterAlertsRequest) ([]types.ClusterAlert, error) + UpsertClusterAlert func(ctx context.Context, alert types.ClusterAlert) error + type StatusService struct + func NewStatusService(bk backend.Backend) *StatusService + func (s *StatusService) DeleteClusterAlert(ctx context.Context, alertID string) error + func (s *StatusService) GetClusterAlerts(ctx context.Context, query types.GetClusterAlertsRequest) ([]types.ClusterAlert, error) + func (s *StatusService) UpsertClusterAlert(ctx context.Context, alert types.ClusterAlert) error + type SubmittedEvent struct + Event *prehogapi.SubmitEventRequest + type UnstableService struct + func NewUnstableService(backend backend.Backend, assertion *AssertionReplayService) UnstableService + func (s UnstableService) AssertSystemRole(ctx context.Context, req proto.UnstableSystemRoleAssertion) error + func (s UnstableService) GetSystemRoleAssertions(ctx context.Context, serverID string, assertionID string) (proto.UnstableSystemRoleAssertionSet, error) + type UsageReporter struct + func NewUsageReporter(ctx context.Context, log logrus.FieldLogger, clusterName types.ClusterName, ...) (*UsageReporter, error) + func (r *UsageReporter) Run(ctx context.Context) + func (r *UsageReporter) SubmitAnonymizedUsageEvents(events ...services.UsageAnonymizable) error + type UsageSubmitFunc func(reporter *UsageReporter, batch []*SubmittedEvent) ([]*SubmittedEvent, error) + func NewPrehogSubmitter(ctx context.Context, prehogEndpoint string, clientCert *tls.Certificate, ...) (UsageSubmitFunc, error) + type WindowsDesktopService struct + func NewWindowsDesktopService(backend backend.Backend) *WindowsDesktopService + func (s *WindowsDesktopService) CreateWindowsDesktop(ctx context.Context, desktop types.WindowsDesktop) error + func (s *WindowsDesktopService) DeleteAllWindowsDesktops(ctx context.Context) error + func (s *WindowsDesktopService) DeleteWindowsDesktop(ctx context.Context, hostID, name string) error + func (s *WindowsDesktopService) GetWindowsDesktops(ctx context.Context, filter types.WindowsDesktopFilter) ([]types.WindowsDesktop, error) + func (s *WindowsDesktopService) ListWindowsDesktopServices(ctx context.Context, req types.ListWindowsDesktopServicesRequest) (*types.ListWindowsDesktopServicesResponse, error) + func (s *WindowsDesktopService) ListWindowsDesktops(ctx context.Context, req types.ListWindowsDesktopsRequest) (*types.ListWindowsDesktopsResponse, error) + func (s *WindowsDesktopService) UpdateWindowsDesktop(ctx context.Context, desktop types.WindowsDesktop) error + func (s *WindowsDesktopService) UpsertWindowsDesktop(ctx context.Context, desktop types.WindowsDesktop) error Other modules containing this package github.com/zmb3/teleport