Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync/acl (interfaces: AclService)
Generated by this command:
mockgen -destination mock_acl/mock_acl.go github.com/anyproto/any-sync/acl AclService
Package mock_acl is a generated GoMock package.
Index ¶
- type MockAclService
- func (m *MockAclService) AddRecord(arg0 context.Context, arg1 string, arg2 *consensusproto.RawRecord, ...) (*consensusproto.RawRecordWithId, error)
- func (m *MockAclService) Close(arg0 context.Context) error
- func (m *MockAclService) EXPECT() *MockAclServiceMockRecorder
- func (m *MockAclService) Init(arg0 *app.App) error
- func (m *MockAclService) Name() string
- func (m *MockAclService) OwnerPubKey(arg0 context.Context, arg1 string) (crypto.PubKey, error)
- func (m *MockAclService) Permissions(arg0 context.Context, arg1 crypto.PubKey, arg2 string) (list.AclPermissions, error)
- func (m *MockAclService) RecordsAfter(arg0 context.Context, arg1, arg2 string) ([]*consensusproto.RawRecordWithId, error)
- func (m *MockAclService) Run(arg0 context.Context) error
- type MockAclServiceMockRecorder
- func (mr *MockAclServiceMockRecorder) AddRecord(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Name() *gomock.Call
- func (mr *MockAclServiceMockRecorder) OwnerPubKey(arg0, arg1 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Permissions(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) RecordsAfter(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockAclServiceMockRecorder) Run(arg0 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(arg0 context.Context, arg1 string, arg2 *consensusproto.RawRecord, arg3 acl.Limits) (*consensusproto.RawRecordWithId, error)
AddRecord mocks base method.
func (*MockAclService) Close ¶
func (m *MockAclService) Close(arg0 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(arg0 *app.App) error
Init mocks base method.
func (*MockAclService) OwnerPubKey ¶
OwnerPubKey mocks base method.
func (*MockAclService) Permissions ¶
func (m *MockAclService) Permissions(arg0 context.Context, arg1 crypto.PubKey, arg2 string) (list.AclPermissions, error)
Permissions mocks base method.
func (*MockAclService) RecordsAfter ¶
func (m *MockAclService) RecordsAfter(arg0 context.Context, arg1, arg2 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(arg0, arg1, arg2, arg3 any) *gomock.Call
AddRecord indicates an expected call of AddRecord.
func (*MockAclServiceMockRecorder) Close ¶
func (mr *MockAclServiceMockRecorder) Close(arg0 any) *gomock.Call
Close indicates an expected call of Close.
func (*MockAclServiceMockRecorder) Init ¶
func (mr *MockAclServiceMockRecorder) Init(arg0 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(arg0, arg1 any) *gomock.Call
OwnerPubKey indicates an expected call of OwnerPubKey.
func (*MockAclServiceMockRecorder) Permissions ¶
func (mr *MockAclServiceMockRecorder) Permissions(arg0, arg1, arg2 any) *gomock.Call
Permissions indicates an expected call of Permissions.
func (*MockAclServiceMockRecorder) RecordsAfter ¶
func (mr *MockAclServiceMockRecorder) RecordsAfter(arg0, arg1, arg2 any) *gomock.Call
RecordsAfter indicates an expected call of RecordsAfter.