Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface {
CreateDeviceAuth() (*DeviceAuthResponse, error)
ExchangeToken(TokenRequest) (*TokenResponse, error)
}
func NewCloudAuthClient ¶
type CloudAuthClient ¶
type CloudAuthClient struct {
// contains filtered or unexported fields
}
func (CloudAuthClient) CreateDeviceAuth ¶
func (c CloudAuthClient) CreateDeviceAuth() (*DeviceAuthResponse, error)
func (CloudAuthClient) ExchangeToken ¶
func (c CloudAuthClient) ExchangeToken(request TokenRequest) (*TokenResponse, error)
type CloudAuthClientFactory ¶ added in v1.19.0
type DeviceAuthRequest ¶
type DeviceAuthRequest struct {
Scope string `json:"scope"`
}
type DeviceAuthResponse ¶
type MockClient ¶
func NewMockClient ¶
func NewMockClient() *MockClient
func (*MockClient) CreateDeviceAuth ¶
func (m *MockClient) CreateDeviceAuth() (*DeviceAuthResponse, error)
func (*MockClient) ExchangeToken ¶
func (m *MockClient) ExchangeToken(request TokenRequest) (*TokenResponse, error)
type TokenRequest ¶
type TokenResponse ¶
Click to show internal directories.
Click to hide internal directories.