MCPcopy Index your code
hub / github.com/coder/coder / GetAllTailnetTunnels

Method GetAllTailnetTunnels

coderd/database/querier.go:310–310  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

308 GetAllTailnetCoordinators(ctx context.Context) ([]TailnetCoordinator, error)
309 GetAllTailnetPeers(ctx context.Context) ([]TailnetPeer, error)
310 GetAllTailnetTunnels(ctx context.Context) ([]TailnetTunnel, error)
311 // Atomic read+delete prevents replicas that flush between a separate read and
312 // reset from having their data deleted before the next snapshot. Uses a common
313 // table expression with DELETE...RETURNING so the rows we sum are exactly the

Callers 4

GetAllTailnetTunnelsMethod · 0.65
GetAllTailnetTunnelsMethod · 0.65
getDebugFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1