API is the interface to the codespace service.
| 60 | |
| 61 | // API is the interface to the codespace service. |
| 62 | type 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. |
| 71 | func New(f *cmdutil.Factory) *API { |
nothing calls this directly
no outgoing calls
no test coverage detected