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

Struct API

internal/codespaces/api/api.go:63–69  ·  view source on GitHub ↗

API is the interface to the codespace service.

Source from the content-addressed store, hash-verified

61
62// API is the interface to the codespace service.
63type API struct {
64 client func() (*http.Client, error)
65 externalClient func() (*http.Client, error)
66 githubAPI string
67 githubServer string
68 retryBackoff time.Duration
69}
70
71// New creates a new API client connecting to the configured endpoints with the HTTP client.
72func New(f *cmdutil.Factory) *API {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected