feat: add queries for PGCoord HTMLDebug (#10913)

Adds queries for implementing HTMLDebug on the new PGCoordinator
This commit is contained in:
Spike Curtis
2023-11-28 20:19:32 +04:00
committed by GitHub
parent 3416f6dfb5
commit 14bd489af6
7 changed files with 208 additions and 0 deletions

View File

@ -74,6 +74,10 @@ type sqlcQuerier interface {
GetActiveWorkspaceBuildsByTemplateID(ctx context.Context, templateID uuid.UUID) ([]WorkspaceBuild, error)
GetAllTailnetAgents(ctx context.Context) ([]TailnetAgent, error)
GetAllTailnetClients(ctx context.Context) ([]GetAllTailnetClientsRow, error)
// For PG Coordinator HTMLDebug
GetAllTailnetCoordinators(ctx context.Context) ([]TailnetCoordinator, error)
GetAllTailnetPeers(ctx context.Context) ([]TailnetPeer, error)
GetAllTailnetTunnels(ctx context.Context) ([]TailnetTunnel, error)
GetAppSecurityKey(ctx context.Context) (string, error)
GetApplicationName(ctx context.Context) (string, error)
// GetAuditLogsBefore retrieves `row_limit` number of audit logs before the provided