Documentation
¶
Index ¶
- func New(authServer string, log logrus.FieldLogger) *handler
- type ExchangeRequest
- type ExchangeResponse
- type Handler
- type MockHandler
- type MockHandler_Expecter
- type MockHandler_GetDeviceAgentToken_Call
- func (_c *MockHandler_GetDeviceAgentToken_Call) Return(tokens *Tokens, err error) *MockHandler_GetDeviceAgentToken_Call
- func (_c *MockHandler_GetDeviceAgentToken_Call) Run(...) *MockHandler_GetDeviceAgentToken_Call
- func (_c *MockHandler_GetDeviceAgentToken_Call) RunAndReturn(...) *MockHandler_GetDeviceAgentToken_Call
- type Tokens
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(authServer string, log logrus.FieldLogger) *handler
Types ¶
type ExchangeRequest ¶
type ExchangeResponse ¶
type MockHandler ¶
MockHandler is an autogenerated mock type for the Handler type
func NewMockHandler ¶
func NewMockHandler(t interface {
mock.TestingT
Cleanup(func())
},
) *MockHandler
NewMockHandler creates a new instance of MockHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockHandler) EXPECT ¶
func (_m *MockHandler) EXPECT() *MockHandler_Expecter
func (*MockHandler) GetDeviceAgentToken ¶
func (_mock *MockHandler) GetDeviceAgentToken(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config, redirect string) (*Tokens, error)
GetDeviceAgentToken provides a mock function for the type MockHandler
type MockHandler_Expecter ¶
type MockHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHandler_Expecter) GetDeviceAgentToken ¶
func (_e *MockHandler_Expecter) GetDeviceAgentToken(ctx interface{}, log interface{}, oauthConfig interface{}, redirect interface{}) *MockHandler_GetDeviceAgentToken_Call
GetDeviceAgentToken is a helper method to define mock.On call
- ctx context.Context
- log logrus.FieldLogger
- oauthConfig oauth2.Config
- redirect string
type MockHandler_GetDeviceAgentToken_Call ¶
MockHandler_GetDeviceAgentToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeviceAgentToken'
func (*MockHandler_GetDeviceAgentToken_Call) Return ¶
func (_c *MockHandler_GetDeviceAgentToken_Call) Return(tokens *Tokens, err error) *MockHandler_GetDeviceAgentToken_Call
func (*MockHandler_GetDeviceAgentToken_Call) Run ¶
func (_c *MockHandler_GetDeviceAgentToken_Call) Run(run func(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config, redirect string)) *MockHandler_GetDeviceAgentToken_Call
func (*MockHandler_GetDeviceAgentToken_Call) RunAndReturn ¶
func (_c *MockHandler_GetDeviceAgentToken_Call) RunAndReturn(run func(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config, redirect string) (*Tokens, error)) *MockHandler_GetDeviceAgentToken_Call
Click to show internal directories.
Click to hide internal directories.