MCPcopy Create free account
hub / github.com/cli/cli / CAPIClient

Struct CAPIClient

pkg/cmd/agent-task/capi/client.go:26–30  ·  view source on GitHub ↗

CAPIClient is a client for interacting with the Copilot API

Source from the content-addressed store, hash-verified

24
25// CAPIClient is a client for interacting with the Copilot API
26type CAPIClient struct {
27 httpClient *http.Client
28 host string
29 capiBaseURL string
30}
31
32// authConfig resolves the active token for a GitHub host, refreshing an expiring token when it is near expiry.
33// It is satisfied by gh's AuthConfig and lets the transport obtain a fresh token on each request.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected