Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockIBackend
- func (m *MockIBackend) Close()
- func (m *MockIBackend) EXPECT() *MockIBackendMockRecorder
- func (m *MockIBackend) Evaluate(ctx context.Context, sessionContext map[string]interface{}, ...) (map[string]interface{}, error)
- func (m *MockIBackend) GetName() string
- func (m *MockIBackend) Init(v *viper.Viper) error
- func (m *MockIBackend) Validate(ctx context.Context, policy string) error
- type MockIBackendMockRecorder
- func (mr *MockIBackendMockRecorder) Close() *gomock.Call
- func (mr *MockIBackendMockRecorder) Evaluate(...) *gomock.Call
- func (mr *MockIBackendMockRecorder) GetName() *gomock.Call
- func (mr *MockIBackendMockRecorder) Init(v interface{}) *gomock.Call
- func (mr *MockIBackendMockRecorder) Validate(ctx, policy interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIBackend ¶
type MockIBackend struct {
// contains filtered or unexported fields
}
MockIBackend is a mock of IBackend interface.
func NewMockIBackend ¶
func NewMockIBackend(ctrl *gomock.Controller) *MockIBackend
NewMockIBackend creates a new mock instance.
func (*MockIBackend) EXPECT ¶
func (m *MockIBackend) EXPECT() *MockIBackendMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIBackend) Evaluate ¶
func (m *MockIBackend) Evaluate(ctx context.Context, sessionContext map[string]interface{}, scheme, policy string, result, evidence map[string]interface{}, endorsements []string) (map[string]interface{}, error)
Evaluate mocks base method.
type MockIBackendMockRecorder ¶
type MockIBackendMockRecorder struct {
// contains filtered or unexported fields
}
MockIBackendMockRecorder is the mock recorder for MockIBackend.
func (*MockIBackendMockRecorder) Close ¶
func (mr *MockIBackendMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIBackendMockRecorder) Evaluate ¶
func (mr *MockIBackendMockRecorder) Evaluate(ctx, sessionContext, scheme, policy, result, evidence, endorsements interface{}) *gomock.Call
Evaluate indicates an expected call of Evaluate.
func (*MockIBackendMockRecorder) GetName ¶
func (mr *MockIBackendMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIBackendMockRecorder) Init ¶
func (mr *MockIBackendMockRecorder) Init(v interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockIBackendMockRecorder) Validate ¶
func (mr *MockIBackendMockRecorder) Validate(ctx, policy interface{}) *gomock.Call
Validate indicates an expected call of Validate.
Click to show internal directories.
Click to hide internal directories.