mocks

package
v0.0.2501 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 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 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) Close

func (m *MockIBackend) Close()

Close mocks base method.

func (*MockIBackend) EXPECT

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.

func (*MockIBackend) GetName

func (m *MockIBackend) GetName() string

GetName mocks base method.

func (*MockIBackend) Init

func (m *MockIBackend) Init(v *viper.Viper) error

Init mocks base method.

func (*MockIBackend) Validate

func (m *MockIBackend) Validate(ctx context.Context, policy string) error

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

Jump to

Keyboard shortcuts

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