Documentation
¶
Index ¶
- type MockAuthenticateSource
- type MockAuthenticateSource_Expecter
- type MockAuthenticateSource_VerifyClaims_Call
- func (_c *MockAuthenticateSource_VerifyClaims_Call) Return(accessTokenClaims *models0.AccessTokenClaims, err error) *MockAuthenticateSource_VerifyClaims_Call
- func (_c *MockAuthenticateSource_VerifyClaims_Call) Run(run func(ctx context.Context, usage models.KeyUsage, accessToken string, ...)) *MockAuthenticateSource_VerifyClaims_Call
- func (_c *MockAuthenticateSource_VerifyClaims_Call) RunAndReturn(...) *MockAuthenticateSource_VerifyClaims_Call
- type MockToken
- type MockToken_Expecter
- type MockToken_GetRoles_Call
- type MockToken_GetToken_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthenticateSource ¶
MockAuthenticateSource is an autogenerated mock type for the AuthenticateSource type
func NewMockAuthenticateSource ¶
func NewMockAuthenticateSource(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthenticateSource
NewMockAuthenticateSource creates a new instance of MockAuthenticateSource. 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 (*MockAuthenticateSource) EXPECT ¶
func (_m *MockAuthenticateSource) EXPECT() *MockAuthenticateSource_Expecter
func (*MockAuthenticateSource) VerifyClaims ¶
func (_mock *MockAuthenticateSource) VerifyClaims(ctx context.Context, usage models.KeyUsage, accessToken string, options *pkg.VerifyClaimsOptions) (*models0.AccessTokenClaims, error)
VerifyClaims provides a mock function for the type MockAuthenticateSource
type MockAuthenticateSource_Expecter ¶
type MockAuthenticateSource_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthenticateSource_Expecter) VerifyClaims ¶
func (_e *MockAuthenticateSource_Expecter) VerifyClaims(ctx interface{}, usage interface{}, accessToken interface{}, options interface{}) *MockAuthenticateSource_VerifyClaims_Call
VerifyClaims is a helper method to define mock.On call
- ctx context.Context
- usage models.KeyUsage
- accessToken string
- options *pkg.VerifyClaimsOptions
type MockAuthenticateSource_VerifyClaims_Call ¶
MockAuthenticateSource_VerifyClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyClaims'
func (*MockAuthenticateSource_VerifyClaims_Call) Return ¶
func (_c *MockAuthenticateSource_VerifyClaims_Call) Return(accessTokenClaims *models0.AccessTokenClaims, err error) *MockAuthenticateSource_VerifyClaims_Call
func (*MockAuthenticateSource_VerifyClaims_Call) Run ¶
func (_c *MockAuthenticateSource_VerifyClaims_Call) Run(run func(ctx context.Context, usage models.KeyUsage, accessToken string, options *pkg.VerifyClaimsOptions)) *MockAuthenticateSource_VerifyClaims_Call
func (*MockAuthenticateSource_VerifyClaims_Call) RunAndReturn ¶
func (_c *MockAuthenticateSource_VerifyClaims_Call) RunAndReturn(run func(ctx context.Context, usage models.KeyUsage, accessToken string, options *pkg.VerifyClaimsOptions) (*models0.AccessTokenClaims, error)) *MockAuthenticateSource_VerifyClaims_Call
type MockToken ¶
MockToken is an autogenerated mock type for the Token type
func NewMockToken ¶
NewMockToken creates a new instance of MockToken. 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 (*MockToken) EXPECT ¶
func (_m *MockToken) EXPECT() *MockToken_Expecter
type MockToken_Expecter ¶
type MockToken_Expecter struct {
// contains filtered or unexported fields
}
func (*MockToken_Expecter) GetRoles ¶
func (_e *MockToken_Expecter) GetRoles() *MockToken_GetRoles_Call
GetRoles is a helper method to define mock.On call
func (*MockToken_Expecter) GetToken ¶
func (_e *MockToken_Expecter) GetToken() *MockToken_GetToken_Call
GetToken is a helper method to define mock.On call
type MockToken_GetRoles_Call ¶
MockToken_GetRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRoles'
func (*MockToken_GetRoles_Call) Return ¶
func (_c *MockToken_GetRoles_Call) Return(strings []string) *MockToken_GetRoles_Call
func (*MockToken_GetRoles_Call) Run ¶
func (_c *MockToken_GetRoles_Call) Run(run func()) *MockToken_GetRoles_Call
func (*MockToken_GetRoles_Call) RunAndReturn ¶
func (_c *MockToken_GetRoles_Call) RunAndReturn(run func() []string) *MockToken_GetRoles_Call
type MockToken_GetToken_Call ¶
MockToken_GetToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetToken'
func (*MockToken_GetToken_Call) Return ¶
func (_c *MockToken_GetToken_Call) Return(s string) *MockToken_GetToken_Call
func (*MockToken_GetToken_Call) Run ¶
func (_c *MockToken_GetToken_Call) Run(run func()) *MockToken_GetToken_Call
func (*MockToken_GetToken_Call) RunAndReturn ¶
func (_c *MockToken_GetToken_Call) RunAndReturn(run func() string) *MockToken_GetToken_Call