MCPcopy Index your code
hub / github.com/docker/cli / testAPI

Struct testAPI

internal/oauth/manager/manager_test.go:302–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300var _ api.OAuthAPI = &testAPI{}
301
302type testAPI struct {
303 getDeviceToken func(audience string) (api.State, error)
304 waitForDeviceToken func(state api.State) (api.TokenResponse, error)
305 refresh func(token string) (api.TokenResponse, error)
306 revokeToken func(token string) error
307 getAutoPAT func(audience string, res api.TokenResponse) (string, error)
308}
309
310func (t *testAPI) GetDeviceCode(_ context.Context, audience string) (api.State, error) {
311 if t.getDeviceToken != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected