Documentation
¶
Index ¶
- func New(authServer string) *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 ¶
Types ¶
type ExchangeRequest ¶
type ExchangeResponse ¶
type MockHandler ¶ added in v1.3.0
MockHandler is an autogenerated mock type for the Handler type
func NewMockHandler ¶ added in v1.3.0
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 ¶ added in v1.3.0
func (_m *MockHandler) EXPECT() *MockHandler_Expecter
func (*MockHandler) GetDeviceAgentToken ¶ added in v1.3.0
func (_mock *MockHandler) GetDeviceAgentToken(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config) (*Tokens, error)
GetDeviceAgentToken provides a mock function for the type MockHandler
type MockHandler_Expecter ¶ added in v1.3.0
type MockHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHandler_Expecter) GetDeviceAgentToken ¶ added in v1.3.0
func (_e *MockHandler_Expecter) GetDeviceAgentToken(ctx interface{}, log interface{}, oauthConfig interface{}) *MockHandler_GetDeviceAgentToken_Call
GetDeviceAgentToken is a helper method to define mock.On call
- ctx context.Context
- log logrus.FieldLogger
- oauthConfig oauth2.Config
type MockHandler_GetDeviceAgentToken_Call ¶ added in v1.3.0
MockHandler_GetDeviceAgentToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeviceAgentToken'
func (*MockHandler_GetDeviceAgentToken_Call) Return ¶ added in v1.3.0
func (_c *MockHandler_GetDeviceAgentToken_Call) Return(tokens *Tokens, err error) *MockHandler_GetDeviceAgentToken_Call
func (*MockHandler_GetDeviceAgentToken_Call) Run ¶ added in v1.3.0
func (_c *MockHandler_GetDeviceAgentToken_Call) Run(run func(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config)) *MockHandler_GetDeviceAgentToken_Call
func (*MockHandler_GetDeviceAgentToken_Call) RunAndReturn ¶ added in v1.3.0
func (_c *MockHandler_GetDeviceAgentToken_Call) RunAndReturn(run func(ctx context.Context, log logrus.FieldLogger, oauthConfig oauth2.Config) (*Tokens, error)) *MockHandler_GetDeviceAgentToken_Call
Click to show internal directories.
Click to hide internal directories.