Documentation ¶
Overview ¶
Package mock_acl is a generated GoMock package.
Index ¶
- type MockAclService
- func (m *MockAclService) AddRecord(ctx context.Context, spaceId string, rec *consensusproto.RawRecord, ...) (*consensusproto.RawRecordWithId, error)
- func (m *MockAclService) Close(ctx context.Context) error
- func (m *MockAclService) EXPECT() *MockAclServiceMockRecorder
- func (m *MockAclService) HasRecord(ctx context.Context, spaceId, recordId string) (bool, error)
- func (m *MockAclService) Init(a *app.App) error
- func (m *MockAclService) Name() string
- func (m *MockAclService) OwnerPubKey(ctx context.Context, spaceId string) (crypto.PubKey, error)
- func (m *MockAclService) Permissions(ctx context.Context, identity crypto.PubKey, spaceId string) (list.AclPermissions, error)
- func (m *MockAclService) ReadState(ctx context.Context, spaceId string, f func(*list.AclState) error) error
- func (m *MockAclService) RecordsAfter(ctx context.Context, spaceId, aclHead string) ([]*consensusproto.RawRecordWithId, error)
- func (m *MockAclService) Run(ctx context.Context) error
- type MockAclServiceMockRecorder
- func (mr *MockAclServiceMockRecorder) AddRecord(ctx, spaceId, rec, limits any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Close(ctx any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) HasRecord(ctx, spaceId, recordId any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Init(a any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Name() *gomock.Call
- func (mr *MockAclServiceMockRecorder) OwnerPubKey(ctx, spaceId any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Permissions(ctx, identity, spaceId any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) ReadState(ctx, spaceId, f any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) RecordsAfter(ctx, spaceId, aclHead any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Run(ctx any) *gomock.Call
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 ¶
func (m *MockAclService) AddRecord(ctx context.Context, spaceId string, rec *consensusproto.RawRecord, limits acl.Limits) (*consensusproto.RawRecordWithId, error)
AddRecord mocks base method.
func (*MockAclService) Close ¶
func (m *MockAclService) Close(ctx context.Context) error
Close mocks base method.
func (*MockAclService) EXPECT ¶
func (m *MockAclService) EXPECT() *MockAclServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAclService) Init ¶
func (m *MockAclService) Init(a *app.App) error
Init mocks base method.
func (*MockAclService) OwnerPubKey ¶
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.
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 ¶
func (mr *MockAclServiceMockRecorder) Init(a any) *gomock.Call
Init indicates an expected call of Init.
func (*MockAclServiceMockRecorder) Name ¶
func (mr *MockAclServiceMockRecorder) Name() *gomock.Call
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.