MCPcopy Index your code
hub / github.com/cli/cli / API

Struct API

internal/codespaces/api/api.go:62–68  ·  view source on GitHub ↗

API is the interface to the codespace service.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected