Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks holds the generated doubles of the token group's dependencies, for the methods' tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface.
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance.
func (*MockConfig) CustomRoles ¶
func (m *MockConfig) CustomRoles() (authtoken.CustomRoles, error)
CustomRoles mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfig) SigningKeys ¶
SigningKeys mocks base method.
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) CustomRoles ¶
func (mr *MockConfigMockRecorder) CustomRoles() *gomock.Call
CustomRoles indicates an expected call of CustomRoles.
func (*MockConfigMockRecorder) SigningKeys ¶
func (mr *MockConfigMockRecorder) SigningKeys(ctx any) *gomock.Call
SigningKeys indicates an expected call of SigningKeys.
type MockTokens ¶
type MockTokens struct {
// contains filtered or unexported fields
}
MockTokens is a mock of Tokens interface.
func NewMockTokens ¶
func NewMockTokens(ctrl *gomock.Controller) *MockTokens
NewMockTokens creates a new mock instance.
func (*MockTokens) EXPECT ¶
func (m *MockTokens) EXPECT() *MockTokensMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTokens) Generate ¶
func (m *MockTokens) Generate(key authtoken.Key, roles []types.Role, subject string, permissions, targets []string) (string, error)
Generate mocks base method.
func (*MockTokens) Validate ¶
func (m *MockTokens) Validate(tokenString string, keys authtoken.Keys) (*authtoken.CustomClaims, error)
Validate mocks base method.
type MockTokensMockRecorder ¶
type MockTokensMockRecorder struct {
// contains filtered or unexported fields
}
MockTokensMockRecorder is the mock recorder for MockTokens.