Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockAuthorizatorClient
- func (m *MockAuthorizatorClient) DecideIfAllowed(ctx context.Context, regoQuery, method, path, brandID, userID string) (bool, error)
- func (m *MockAuthorizatorClient) EXPECT() *MockAuthorizatorClientMockRecorder
- func (m *MockAuthorizatorClient) ExecuteQuery(ctx context.Context, query string, input map[string]interface{}) (opa.AuthorizationResult, error)
- type MockAuthorizatorClientMockRecorder
- type MockJWKSClient
- type MockJWKSClientMockRecorder
- type MockLogger
- func (m *MockLogger) Critical(ctx context.Context, err error)
- func (m *MockLogger) Debug(ctx context.Context, msg string, args ...interface{})
- func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
- func (m *MockLogger) Error(ctx context.Context, err error)
- func (m *MockLogger) Info(ctx context.Context, msg string, args ...interface{})
- func (m *MockLogger) Warning(ctx context.Context, msg string, args ...interface{})
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Critical(ctx, err interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Debug(ctx, msg interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Error(ctx, err interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Info(ctx, msg interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warning(ctx, msg interface{}, args ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizatorClient ¶
type MockAuthorizatorClient struct {
// contains filtered or unexported fields
}
MockAuthorizatorClient is a mock of AuthorizatorClient interface.
func NewMockAuthorizatorClient ¶
func NewMockAuthorizatorClient(ctrl *gomock.Controller) *MockAuthorizatorClient
NewMockAuthorizatorClient creates a new mock instance.
func (*MockAuthorizatorClient) DecideIfAllowed ¶
func (m *MockAuthorizatorClient) DecideIfAllowed(ctx context.Context, regoQuery, method, path, brandID, userID string) (bool, error)
DecideIfAllowed mocks base method.
func (*MockAuthorizatorClient) EXPECT ¶
func (m *MockAuthorizatorClient) EXPECT() *MockAuthorizatorClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorizatorClient) ExecuteQuery ¶
func (m *MockAuthorizatorClient) ExecuteQuery(ctx context.Context, query string, input map[string]interface{}) (opa.AuthorizationResult, error)
ExecuteQuery mocks base method.
type MockAuthorizatorClientMockRecorder ¶
type MockAuthorizatorClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizatorClientMockRecorder is the mock recorder for MockAuthorizatorClient.
func (*MockAuthorizatorClientMockRecorder) DecideIfAllowed ¶
func (mr *MockAuthorizatorClientMockRecorder) DecideIfAllowed(ctx, regoQuery, method, path, brandID, userID interface{}) *gomock.Call
DecideIfAllowed indicates an expected call of DecideIfAllowed.
func (*MockAuthorizatorClientMockRecorder) ExecuteQuery ¶
func (mr *MockAuthorizatorClientMockRecorder) ExecuteQuery(ctx, query, input interface{}) *gomock.Call
ExecuteQuery indicates an expected call of ExecuteQuery.
type MockJWKSClient ¶
type MockJWKSClient struct {
// contains filtered or unexported fields
}
MockJWKSClient is a mock of JWKSClient interface.
func NewMockJWKSClient ¶
func NewMockJWKSClient(ctrl *gomock.Controller) *MockJWKSClient
NewMockJWKSClient creates a new mock instance.
func (*MockJWKSClient) Certs ¶
func (m *MockJWKSClient) Certs() map[string]string
Certs mocks base method.
func (*MockJWKSClient) EXPECT ¶
func (m *MockJWKSClient) EXPECT() *MockJWKSClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJWKSClient) GetCerts ¶
func (m *MockJWKSClient) GetCerts(ctx context.Context) error
GetCerts mocks base method.
func (*MockJWKSClient) RenewCerts ¶
func (m *MockJWKSClient) RenewCerts(ctx context.Context) error
RenewCerts mocks base method.
type MockJWKSClientMockRecorder ¶
type MockJWKSClientMockRecorder struct {
// contains filtered or unexported fields
}
MockJWKSClientMockRecorder is the mock recorder for MockJWKSClient.
func (*MockJWKSClientMockRecorder) Certs ¶
func (mr *MockJWKSClientMockRecorder) Certs() *gomock.Call
Certs indicates an expected call of Certs.
func (*MockJWKSClientMockRecorder) GetCerts ¶
func (mr *MockJWKSClientMockRecorder) GetCerts(ctx interface{}) *gomock.Call
GetCerts indicates an expected call of GetCerts.
func (*MockJWKSClientMockRecorder) RenewCerts ¶
func (mr *MockJWKSClientMockRecorder) RenewCerts(ctx interface{}) *gomock.Call
RenewCerts indicates an expected call of RenewCerts.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) Critical ¶
func (m *MockLogger) Critical(ctx context.Context, err error)
Critical mocks base method.
func (*MockLogger) Debug ¶
func (m *MockLogger) Debug(ctx context.Context, msg string, args ...interface{})
Debug mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Error ¶
func (m *MockLogger) Error(ctx context.Context, err error)
Error mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Critical ¶
func (mr *MockLoggerMockRecorder) Critical(ctx, err interface{}) *gomock.Call
Critical indicates an expected call of Critical.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(ctx, msg interface{}, args ...interface{}) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(ctx, err interface{}) *gomock.Call
Error indicates an expected call of Error.
func (*MockLoggerMockRecorder) Info ¶
func (mr *MockLoggerMockRecorder) Info(ctx, msg interface{}, args ...interface{}) *gomock.Call
Info indicates an expected call of Info.
func (*MockLoggerMockRecorder) Warning ¶
func (mr *MockLoggerMockRecorder) Warning(ctx, msg interface{}, args ...interface{}) *gomock.Call
Warning indicates an expected call of Warning.