kubernetes/vendor/golang.org/x/oauth2/deviceauth.go

const errAuthorizationPending

const errSlowDown

const errAccessDenied

const errExpiredToken

type DeviceAuthResponse

func (d DeviceAuthResponse) MarshalJSON() ([]byte, error) {}

func (c *DeviceAuthResponse) UnmarshalJSON(data []byte) error {}

// DeviceAuth returns a device auth struct which contains a device code
// and authorization information provided for users to enter on another device.
func (c *Config) DeviceAuth(ctx context.Context, opts ...AuthCodeOption) (*DeviceAuthResponse, error) {}

func retrieveDeviceAuth(ctx context.Context, c *Config, v url.Values) (*DeviceAuthResponse, error) {}

// DeviceAccessToken polls the server to exchange a device code for a token.
func (c *Config) DeviceAccessToken(ctx context.Context, da *DeviceAuthResponse, opts ...AuthCodeOption) (*Token, error) {}