mock_acl

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mock_acl is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAclService

type MockAclService struct {
	// contains filtered or unexported fields
}

MockAclService is a mock of AclService interface.

func NewMockAclService

func NewMockAclService(ctrl *gomock.Controller) *MockAclService

NewMockAclService creates a new mock instance.

func (*MockAclService) AddRecord

AddRecord mocks base method.

func (*MockAclService) Close

func (m *MockAclService) Close(ctx context.Context) error

Close mocks base method.

func (*MockAclService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAclService) HasRecord added in v0.4.0

func (m *MockAclService) HasRecord(ctx context.Context, spaceId, recordId string) (bool, error)

HasRecord mocks base method.

func (*MockAclService) Init

func (m *MockAclService) Init(a *app.App) error

Init mocks base method.

func (*MockAclService) Name

func (m *MockAclService) Name() string

Name mocks base method.

func (*MockAclService) OwnerPubKey

func (m *MockAclService) OwnerPubKey(ctx context.Context, spaceId string) (crypto.PubKey, error)

OwnerPubKey mocks base method.

func (*MockAclService) Permissions

func (m *MockAclService) Permissions(ctx context.Context, identity crypto.PubKey, spaceId string) (list.AclPermissions, error)

Permissions mocks base method.

func (*MockAclService) ReadState added in v0.4.0

func (m *MockAclService) ReadState(ctx context.Context, spaceId string, f func(*list.AclState) error) error

ReadState mocks base method.

func (*MockAclService) RecordsAfter

func (m *MockAclService) RecordsAfter(ctx context.Context, spaceId, aclHead string) ([]*consensusproto.RawRecordWithId, error)

RecordsAfter mocks base method.

func (*MockAclService) Run

func (m *MockAclService) Run(ctx context.Context) error

Run mocks base method.

type MockAclServiceMockRecorder

type MockAclServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockAclServiceMockRecorder is the mock recorder for MockAclService.

func (*MockAclServiceMockRecorder) AddRecord

func (mr *MockAclServiceMockRecorder) AddRecord(ctx, spaceId, rec, limits any) *gomock.Call

AddRecord indicates an expected call of AddRecord.

func (*MockAclServiceMockRecorder) Close

func (mr *MockAclServiceMockRecorder) Close(ctx any) *gomock.Call

Close indicates an expected call of Close.

func (*MockAclServiceMockRecorder) HasRecord added in v0.4.0

func (mr *MockAclServiceMockRecorder) HasRecord(ctx, spaceId, recordId any) *gomock.Call

HasRecord indicates an expected call of HasRecord.

func (*MockAclServiceMockRecorder) Init

Init indicates an expected call of Init.

func (*MockAclServiceMockRecorder) Name

Name indicates an expected call of Name.

func (*MockAclServiceMockRecorder) OwnerPubKey

func (mr *MockAclServiceMockRecorder) OwnerPubKey(ctx, spaceId any) *gomock.Call

OwnerPubKey indicates an expected call of OwnerPubKey.

func (*MockAclServiceMockRecorder) Permissions

func (mr *MockAclServiceMockRecorder) Permissions(ctx, identity, spaceId any) *gomock.Call

Permissions indicates an expected call of Permissions.

func (*MockAclServiceMockRecorder) ReadState added in v0.4.0

func (mr *MockAclServiceMockRecorder) ReadState(ctx, spaceId, f any) *gomock.Call

ReadState indicates an expected call of ReadState.

func (*MockAclServiceMockRecorder) RecordsAfter

func (mr *MockAclServiceMockRecorder) RecordsAfter(ctx, spaceId, aclHead any) *gomock.Call

RecordsAfter indicates an expected call of RecordsAfter.

func (*MockAclServiceMockRecorder) Run

func (mr *MockAclServiceMockRecorder) Run(ctx any) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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