Skip to content

API Coverage

Igor Sazonov edited this page Sep 8, 2026 · 1 revision

goldsky-go implements the complete 40-operation Goldsky REST API v1.2.0 manifest examined by this project. The live OpenAPI specification remains authoritative; the SDK repository contains the full operation-to-method, request, response, and contract-test map in docs/api-coverage.md.1

This page is the human-oriented navigation layer. It groups Go methods by the work developers typically perform.

REST coverage summary

Product area Operations Primary service
Turbo Pipelines 13 client.Pipelines
Subgraphs and Subgraph Webhooks 16 client.Subgraphs, client.Webhooks
Edge endpoints and catalogs 11 client.Edge, client.Catalogs
Total REST operations 40

Turbo Pipelines

Capability Go method Key input / result
List Pipelines.List ListPipelinesOptionsPage[Pipeline]
Create Pipelines.Create CreatePipelineRequestPipeline
Get Pipelines.Get name → Pipeline
Delete Pipelines.Delete name → error only
Validate Pipelines.Validate ValidatePipelineRequestValidatePipelineResponse
Preview Pipelines.Preview PreviewPipelineRequestPreviewPipelineResponse
Pause Pipelines.Pause name → error only
Resume Pipelines.Resume name → error only
Restart Pipelines.Restart name, optional RestartPipelineRequest → error only
Read logs Pipelines.Logs PipelineLogsOptionsPipelineLogsResponse
Read error count Pipelines.ErrorCount name, hours → PipelineErrorCountResponse
Read status Pipelines.Status name → PipelineStatusResponse
Read state Pipelines.State name → raw PipelineStateResponse

See Pipelines for authoring and operational guidance.

Subgraphs and webhooks

Capability Go method Key input / result
List subgraphs Subgraphs.List ListSubgraphsOptionsPage[Subgraph]
Get named subgraph Subgraphs.Get name → Page[Subgraph]
List supported chains Subgraphs.SupportedChains / Catalogs.SupportedSubgraphChains SubgraphChainsResponse
Get version or tag Subgraphs.GetVersion name, version/tag → Page[Subgraph]
Update version or tag settings Subgraphs.UpdateVersion UpdateSubgraphVersionRequestSubgraph
Read indexing logs Subgraphs.Logs SubgraphLogsOptionsSubgraphLogsResponse
Pause / resume a version Subgraphs.Pause / Subgraphs.Resume name, version → error only
Set tag Subgraphs.SetTag SetSubgraphTagRequestSubgraph
Delete tag Subgraphs.DeleteTag name, tag → error only
Delete deployment Subgraphs.DeleteDeployment name, version → error only
Deploy bundle Subgraphs.Deploy DeploySubgraphOptionsSubgraph
List webhooks Webhooks.List WebhookListResponse
Create webhook Webhooks.Create CreateWebhookRequest → one-time secret response
Delete webhook Webhooks.Delete name → error only
List webhook entities Subgraphs.WebhookEntities name, version/tag → WebhookEntitiesResponse

See Subgraphs and Webhooks for release and receiver patterns.

Edge endpoints and catalogs

Capability Go method Key input / result
List supported Edge networks Catalogs.EdgeNetworks EdgeNetworksResponse
List Edge Data sources Catalogs.EdgeSources EdgeSourcesResponse
List endpoints Edge.List ListEdgeEndpointsOptionsPage[EdgeEndpoint]
Create endpoint Edge.Create CreateEdgeEndpointRequest → one-time key response
Get endpoint Edge.Get name → EdgeEndpoint
Update endpoint Edge.Update UpdateEdgeEndpointRequestEdgeEndpoint
Delete endpoint Edge.Delete name → error only
Pause / resume endpoint Edge.Pause / Edge.Resume name → EdgeEndpoint
Reveal endpoint key Edge.RevealKey name → RevealEdgeKeyResponse
Read metrics Edge.Metrics EdgeMetricsOptionsEdgeMetricsResponse

See Edge Endpoints for lifecycle and secret-handling guidance.

Data-plane coverage

GraphQL and Edge RPC are separate from the REST manifest, but are first-class SDK services.

Capability Go method Notes
Build public GraphQL URL GraphQL.PublicURL No credential sent by QueryPublic.
Build private GraphQL URL GraphQL.PrivateURL Uses project API token with QueryPrivate.
Query arbitrary GraphQL endpoint GraphQL.Query Caller chooses endpoint and whether to authenticate.
Query public/private GraphQL GraphQL.QueryPublic / GraphQL.QueryPrivate Returns GraphQLResponse; check HasErrors().
Single Edge JSON-RPC call RPC.Call Returns *RPCError for a JSON-RPC method error.
Batch Edge JSON-RPC calls RPC.Batch Returns responses in input order; inspect each .Error.
Verify webhook secret VerifyWebhookSecret / VerifyWebhookRequest Constant-time header-secret comparison.

Coverage boundaries

The SDK exposes Goldsky REST operations, Subgraph GraphQL, Edge JSON-RPC over HTTPS, and webhook-secret verification. It does not invent a static schema for flexible Turbo pipeline definitions or raw pipeline state, because Goldsky leaves those payloads open. Those areas are represented as map[string]any and json.RawMessage to preserve compatibility as Goldsky evolves.

The SDK also does not provide WebSocket RPC subscriptions because Goldsky Edge RPC documents HTTPS-only transport. See Edge RPC.

Verify current coverage

When upgrading the library or integrating a new Goldsky capability, compare the current Goldsky OpenAPI source to the repository’s coverage map and contract tests. The live API document can change after this wiki page is published.

curl -sSL https://api.goldsky.com/api/v1/docs/openapi.json \
  -o testdata/openapi/openapi.json
go test ./...

The repository’s docs/api-coverage.md describes the snapshot maintenance process and names the contract test associated with every REST operation.

References

Clone this wiki locally