mocks

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

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.

func (*MockLogger) Info

func (m *MockLogger) Info(ctx context.Context, msg string, args ...interface{})

Info mocks base method.

func (*MockLogger) Warning

func (m *MockLogger) Warning(ctx context.Context, msg string, args ...interface{})

Warning 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL