Documentation ¶
Index ¶
- type Authenticator
- type Authenticator_Expecter
- type Authenticator_IsValid_Call
- func (_c *Authenticator_IsValid_Call) Return(_a0 bool, _a1 error) *Authenticator_IsValid_Call
- func (_c *Authenticator_IsValid_Call) Run(run func(ginCtx *gin.Context)) *Authenticator_IsValid_Call
- func (_c *Authenticator_IsValid_Call) RunAndReturn(run func(*gin.Context) (bool, error)) *Authenticator_IsValid_Call
- type JwtTokenHandler
- type JwtTokenHandler_Expecter
- type JwtTokenHandler_SignClaims_Call
- func (_c *JwtTokenHandler_SignClaims_Call) Return(_a0 *string, _a1 error) *JwtTokenHandler_SignClaims_Call
- func (_c *JwtTokenHandler_SignClaims_Call) Run(run func(claims auth.Claims)) *JwtTokenHandler_SignClaims_Call
- func (_c *JwtTokenHandler_SignClaims_Call) RunAndReturn(run func(auth.Claims) (*string, error)) *JwtTokenHandler_SignClaims_Call
- type JwtTokenHandler_Sign_Call
- func (_c *JwtTokenHandler_Sign_Call) Return(_a0 *string, _a1 error) *JwtTokenHandler_Sign_Call
- func (_c *JwtTokenHandler_Sign_Call) Run(run func(user auth.SignUserInput)) *JwtTokenHandler_Sign_Call
- func (_c *JwtTokenHandler_Sign_Call) RunAndReturn(run func(auth.SignUserInput) (*string, error)) *JwtTokenHandler_Sign_Call
- type JwtTokenHandler_Valid_Call
- func (_c *JwtTokenHandler_Valid_Call) Return(_a0 bool, _a1 *jwt.Token, _a2 error) *JwtTokenHandler_Valid_Call
- func (_c *JwtTokenHandler_Valid_Call) Run(run func(jwtToken string)) *JwtTokenHandler_Valid_Call
- func (_c *JwtTokenHandler_Valid_Call) RunAndReturn(run func(string) (bool, *jwt.Token, error)) *JwtTokenHandler_Valid_Call
- type TokenInfoProvider
- type TokenInfoProvider_Expecter
- type TokenInfoProvider_GetTokenInfo_Call
- func (_c *TokenInfoProvider_GetTokenInfo_Call) Return(_a0 *oauth2.Tokeninfo, _a1 error) *TokenInfoProvider_GetTokenInfo_Call
- func (_c *TokenInfoProvider_GetTokenInfo_Call) Run(run func(_a0 string)) *TokenInfoProvider_GetTokenInfo_Call
- func (_c *TokenInfoProvider_GetTokenInfo_Call) RunAndReturn(run func(string) (*oauth2.Tokeninfo, error)) *TokenInfoProvider_GetTokenInfo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator is an autogenerated mock type for the Authenticator type
func NewAuthenticator ¶
func NewAuthenticator(t interface { mock.TestingT Cleanup(func()) }) *Authenticator
NewAuthenticator creates a new instance of Authenticator. 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 (*Authenticator) EXPECT ¶
func (_m *Authenticator) EXPECT() *Authenticator_Expecter
type Authenticator_Expecter ¶
type Authenticator_Expecter struct {
// contains filtered or unexported fields
}
func (*Authenticator_Expecter) IsValid ¶
func (_e *Authenticator_Expecter) IsValid(ginCtx interface{}) *Authenticator_IsValid_Call
IsValid is a helper method to define mock.On call
- ginCtx *gin.Context
type Authenticator_IsValid_Call ¶
Authenticator_IsValid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsValid'
func (*Authenticator_IsValid_Call) Return ¶
func (_c *Authenticator_IsValid_Call) Return(_a0 bool, _a1 error) *Authenticator_IsValid_Call
func (*Authenticator_IsValid_Call) Run ¶
func (_c *Authenticator_IsValid_Call) Run(run func(ginCtx *gin.Context)) *Authenticator_IsValid_Call
func (*Authenticator_IsValid_Call) RunAndReturn ¶
func (_c *Authenticator_IsValid_Call) RunAndReturn(run func(*gin.Context) (bool, error)) *Authenticator_IsValid_Call
type JwtTokenHandler ¶
JwtTokenHandler is an autogenerated mock type for the JwtTokenHandler type
func NewJwtTokenHandler ¶
func NewJwtTokenHandler(t interface { mock.TestingT Cleanup(func()) }) *JwtTokenHandler
NewJwtTokenHandler creates a new instance of JwtTokenHandler. 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 (*JwtTokenHandler) EXPECT ¶
func (_m *JwtTokenHandler) EXPECT() *JwtTokenHandler_Expecter
func (*JwtTokenHandler) Sign ¶
func (_m *JwtTokenHandler) Sign(user auth.SignUserInput) (*string, error)
Sign provides a mock function with given fields: user
func (*JwtTokenHandler) SignClaims ¶ added in v0.21.3
func (_m *JwtTokenHandler) SignClaims(claims auth.Claims) (*string, error)
SignClaims provides a mock function with given fields: claims
type JwtTokenHandler_Expecter ¶
type JwtTokenHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*JwtTokenHandler_Expecter) Sign ¶
func (_e *JwtTokenHandler_Expecter) Sign(user interface{}) *JwtTokenHandler_Sign_Call
Sign is a helper method to define mock.On call
- user auth.SignUserInput
func (*JwtTokenHandler_Expecter) SignClaims ¶ added in v0.21.3
func (_e *JwtTokenHandler_Expecter) SignClaims(claims interface{}) *JwtTokenHandler_SignClaims_Call
SignClaims is a helper method to define mock.On call
- claims auth.Claims
func (*JwtTokenHandler_Expecter) Valid ¶
func (_e *JwtTokenHandler_Expecter) Valid(jwtToken interface{}) *JwtTokenHandler_Valid_Call
Valid is a helper method to define mock.On call
- jwtToken string
type JwtTokenHandler_SignClaims_Call ¶ added in v0.21.3
JwtTokenHandler_SignClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignClaims'
func (*JwtTokenHandler_SignClaims_Call) Return ¶ added in v0.21.3
func (_c *JwtTokenHandler_SignClaims_Call) Return(_a0 *string, _a1 error) *JwtTokenHandler_SignClaims_Call
func (*JwtTokenHandler_SignClaims_Call) Run ¶ added in v0.21.3
func (_c *JwtTokenHandler_SignClaims_Call) Run(run func(claims auth.Claims)) *JwtTokenHandler_SignClaims_Call
func (*JwtTokenHandler_SignClaims_Call) RunAndReturn ¶ added in v0.21.3
func (_c *JwtTokenHandler_SignClaims_Call) RunAndReturn(run func(auth.Claims) (*string, error)) *JwtTokenHandler_SignClaims_Call
type JwtTokenHandler_Sign_Call ¶
JwtTokenHandler_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*JwtTokenHandler_Sign_Call) Return ¶
func (_c *JwtTokenHandler_Sign_Call) Return(_a0 *string, _a1 error) *JwtTokenHandler_Sign_Call
func (*JwtTokenHandler_Sign_Call) Run ¶
func (_c *JwtTokenHandler_Sign_Call) Run(run func(user auth.SignUserInput)) *JwtTokenHandler_Sign_Call
func (*JwtTokenHandler_Sign_Call) RunAndReturn ¶
func (_c *JwtTokenHandler_Sign_Call) RunAndReturn(run func(auth.SignUserInput) (*string, error)) *JwtTokenHandler_Sign_Call
type JwtTokenHandler_Valid_Call ¶
JwtTokenHandler_Valid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Valid'
func (*JwtTokenHandler_Valid_Call) Return ¶
func (_c *JwtTokenHandler_Valid_Call) Return(_a0 bool, _a1 *jwt.Token, _a2 error) *JwtTokenHandler_Valid_Call
func (*JwtTokenHandler_Valid_Call) Run ¶
func (_c *JwtTokenHandler_Valid_Call) Run(run func(jwtToken string)) *JwtTokenHandler_Valid_Call
func (*JwtTokenHandler_Valid_Call) RunAndReturn ¶
func (_c *JwtTokenHandler_Valid_Call) RunAndReturn(run func(string) (bool, *jwt.Token, error)) *JwtTokenHandler_Valid_Call
type TokenInfoProvider ¶
TokenInfoProvider is an autogenerated mock type for the TokenInfoProvider type
func NewTokenInfoProvider ¶
func NewTokenInfoProvider(t interface { mock.TestingT Cleanup(func()) }) *TokenInfoProvider
NewTokenInfoProvider creates a new instance of TokenInfoProvider. 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 (*TokenInfoProvider) EXPECT ¶
func (_m *TokenInfoProvider) EXPECT() *TokenInfoProvider_Expecter
func (*TokenInfoProvider) GetTokenInfo ¶
func (_m *TokenInfoProvider) GetTokenInfo(_a0 string) (*oauth2.Tokeninfo, error)
GetTokenInfo provides a mock function with given fields: _a0
type TokenInfoProvider_Expecter ¶
type TokenInfoProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*TokenInfoProvider_Expecter) GetTokenInfo ¶
func (_e *TokenInfoProvider_Expecter) GetTokenInfo(_a0 interface{}) *TokenInfoProvider_GetTokenInfo_Call
GetTokenInfo is a helper method to define mock.On call
- _a0 string
type TokenInfoProvider_GetTokenInfo_Call ¶
TokenInfoProvider_GetTokenInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenInfo'
func (*TokenInfoProvider_GetTokenInfo_Call) Return ¶
func (_c *TokenInfoProvider_GetTokenInfo_Call) Return(_a0 *oauth2.Tokeninfo, _a1 error) *TokenInfoProvider_GetTokenInfo_Call
func (*TokenInfoProvider_GetTokenInfo_Call) Run ¶
func (_c *TokenInfoProvider_GetTokenInfo_Call) Run(run func(_a0 string)) *TokenInfoProvider_GetTokenInfo_Call
func (*TokenInfoProvider_GetTokenInfo_Call) RunAndReturn ¶
func (_c *TokenInfoProvider_GetTokenInfo_Call) RunAndReturn(run func(string) (*oauth2.Tokeninfo, error)) *TokenInfoProvider_GetTokenInfo_Call