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

Interface OAuthAPI

internal/oauth/api/api.go:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19)
20
21type OAuthAPI interface {
22 GetDeviceCode(ctx context.Context, audience string) (State, error)
23 WaitForDeviceToken(ctx context.Context, state State) (TokenResponse, error)
24 RevokeToken(ctx context.Context, refreshToken string) error
25 GetAutoPAT(ctx context.Context, audience string, res TokenResponse) (string, error)
26}
27
28// API represents API interactions with Auth0.
29type API struct {

Callers 4

LoginDeviceMethod · 0.65
LoginDeviceMethod · 0.65
LogoutMethod · 0.65
LoginDeviceMethod · 0.65

Implementers 2

APIinternal/oauth/api/api.go
testAPIinternal/oauth/manager/manager_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…