mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
349 lines
13 KiB
Go
349 lines
13 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/anyproto/any-sync/commonspace/acl/aclclient (interfaces: AclJoiningClient,AclSpaceClient)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination mock_aclclient/mock_aclclient.go github.com/anyproto/any-sync/commonspace/acl/aclclient AclJoiningClient,AclSpaceClient
|
|
//
|
|
// Package mock_aclclient is a generated GoMock package.
|
|
package mock_aclclient
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
app "github.com/anyproto/any-sync/app"
|
|
list "github.com/anyproto/any-sync/commonspace/object/acl/list"
|
|
consensusproto "github.com/anyproto/any-sync/consensus/consensusproto"
|
|
crypto "github.com/anyproto/any-sync/util/crypto"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockAclJoiningClient is a mock of AclJoiningClient interface.
|
|
type MockAclJoiningClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAclJoiningClientMockRecorder
|
|
}
|
|
|
|
// MockAclJoiningClientMockRecorder is the mock recorder for MockAclJoiningClient.
|
|
type MockAclJoiningClientMockRecorder struct {
|
|
mock *MockAclJoiningClient
|
|
}
|
|
|
|
// NewMockAclJoiningClient creates a new mock instance.
|
|
func NewMockAclJoiningClient(ctrl *gomock.Controller) *MockAclJoiningClient {
|
|
mock := &MockAclJoiningClient{ctrl: ctrl}
|
|
mock.recorder = &MockAclJoiningClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAclJoiningClient) EXPECT() *MockAclJoiningClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AclGetRecords mocks base method.
|
|
func (m *MockAclJoiningClient) AclGetRecords(arg0 context.Context, arg1, arg2 string) ([]*consensusproto.RawRecordWithId, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AclGetRecords", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].([]*consensusproto.RawRecordWithId)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// AclGetRecords indicates an expected call of AclGetRecords.
|
|
func (mr *MockAclJoiningClientMockRecorder) AclGetRecords(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AclGetRecords", reflect.TypeOf((*MockAclJoiningClient)(nil).AclGetRecords), arg0, arg1, arg2)
|
|
}
|
|
|
|
// CancelJoin mocks base method.
|
|
func (m *MockAclJoiningClient) CancelJoin(arg0 context.Context, arg1 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CancelJoin", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// CancelJoin indicates an expected call of CancelJoin.
|
|
func (mr *MockAclJoiningClientMockRecorder) CancelJoin(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelJoin", reflect.TypeOf((*MockAclJoiningClient)(nil).CancelJoin), arg0, arg1)
|
|
}
|
|
|
|
// CancelRemoveSelf mocks base method.
|
|
func (m *MockAclJoiningClient) CancelRemoveSelf(arg0 context.Context, arg1 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CancelRemoveSelf", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// CancelRemoveSelf indicates an expected call of CancelRemoveSelf.
|
|
func (mr *MockAclJoiningClientMockRecorder) CancelRemoveSelf(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRemoveSelf", reflect.TypeOf((*MockAclJoiningClient)(nil).CancelRemoveSelf), arg0, arg1)
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockAclJoiningClient) Init(arg0 *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockAclJoiningClientMockRecorder) Init(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAclJoiningClient)(nil).Init), arg0)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockAclJoiningClient) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockAclJoiningClientMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAclJoiningClient)(nil).Name))
|
|
}
|
|
|
|
// RequestJoin mocks base method.
|
|
func (m *MockAclJoiningClient) RequestJoin(arg0 context.Context, arg1 string, arg2 list.RequestJoinPayload) (string, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RequestJoin", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(string)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// RequestJoin indicates an expected call of RequestJoin.
|
|
func (mr *MockAclJoiningClientMockRecorder) RequestJoin(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestJoin", reflect.TypeOf((*MockAclJoiningClient)(nil).RequestJoin), arg0, arg1, arg2)
|
|
}
|
|
|
|
// MockAclSpaceClient is a mock of AclSpaceClient interface.
|
|
type MockAclSpaceClient struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockAclSpaceClientMockRecorder
|
|
}
|
|
|
|
// MockAclSpaceClientMockRecorder is the mock recorder for MockAclSpaceClient.
|
|
type MockAclSpaceClientMockRecorder struct {
|
|
mock *MockAclSpaceClient
|
|
}
|
|
|
|
// NewMockAclSpaceClient creates a new mock instance.
|
|
func NewMockAclSpaceClient(ctrl *gomock.Controller) *MockAclSpaceClient {
|
|
mock := &MockAclSpaceClient{ctrl: ctrl}
|
|
mock.recorder = &MockAclSpaceClientMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockAclSpaceClient) EXPECT() *MockAclSpaceClientMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// AcceptRequest mocks base method.
|
|
func (m *MockAclSpaceClient) AcceptRequest(arg0 context.Context, arg1 list.RequestAcceptPayload) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AcceptRequest", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AcceptRequest indicates an expected call of AcceptRequest.
|
|
func (mr *MockAclSpaceClientMockRecorder) AcceptRequest(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AcceptRequest", reflect.TypeOf((*MockAclSpaceClient)(nil).AcceptRequest), arg0, arg1)
|
|
}
|
|
|
|
// AddAccounts mocks base method.
|
|
func (m *MockAclSpaceClient) AddAccounts(arg0 context.Context, arg1 list.AccountsAddPayload) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddAccounts", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddAccounts indicates an expected call of AddAccounts.
|
|
func (mr *MockAclSpaceClientMockRecorder) AddAccounts(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddAccounts", reflect.TypeOf((*MockAclSpaceClient)(nil).AddAccounts), arg0, arg1)
|
|
}
|
|
|
|
// AddRecord mocks base method.
|
|
func (m *MockAclSpaceClient) AddRecord(arg0 context.Context, arg1 *consensusproto.RawRecord) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "AddRecord", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// AddRecord indicates an expected call of AddRecord.
|
|
func (mr *MockAclSpaceClientMockRecorder) AddRecord(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRecord", reflect.TypeOf((*MockAclSpaceClient)(nil).AddRecord), arg0, arg1)
|
|
}
|
|
|
|
// CancelRequest mocks base method.
|
|
func (m *MockAclSpaceClient) CancelRequest(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "CancelRequest", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// CancelRequest indicates an expected call of CancelRequest.
|
|
func (mr *MockAclSpaceClientMockRecorder) CancelRequest(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelRequest", reflect.TypeOf((*MockAclSpaceClient)(nil).CancelRequest), arg0)
|
|
}
|
|
|
|
// ChangePermissions mocks base method.
|
|
func (m *MockAclSpaceClient) ChangePermissions(arg0 context.Context, arg1 list.PermissionChangesPayload) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "ChangePermissions", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// ChangePermissions indicates an expected call of ChangePermissions.
|
|
func (mr *MockAclSpaceClientMockRecorder) ChangePermissions(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangePermissions", reflect.TypeOf((*MockAclSpaceClient)(nil).ChangePermissions), arg0, arg1)
|
|
}
|
|
|
|
// DeclineRequest mocks base method.
|
|
func (m *MockAclSpaceClient) DeclineRequest(arg0 context.Context, arg1 crypto.PubKey) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "DeclineRequest", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// DeclineRequest indicates an expected call of DeclineRequest.
|
|
func (mr *MockAclSpaceClientMockRecorder) DeclineRequest(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeclineRequest", reflect.TypeOf((*MockAclSpaceClient)(nil).DeclineRequest), arg0, arg1)
|
|
}
|
|
|
|
// GenerateInvite mocks base method.
|
|
func (m *MockAclSpaceClient) GenerateInvite() (list.InviteResult, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GenerateInvite")
|
|
ret0, _ := ret[0].(list.InviteResult)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GenerateInvite indicates an expected call of GenerateInvite.
|
|
func (mr *MockAclSpaceClientMockRecorder) GenerateInvite() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateInvite", reflect.TypeOf((*MockAclSpaceClient)(nil).GenerateInvite))
|
|
}
|
|
|
|
// Init mocks base method.
|
|
func (m *MockAclSpaceClient) Init(arg0 *app.App) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Init", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Init indicates an expected call of Init.
|
|
func (mr *MockAclSpaceClientMockRecorder) Init(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAclSpaceClient)(nil).Init), arg0)
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockAclSpaceClient) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockAclSpaceClientMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAclSpaceClient)(nil).Name))
|
|
}
|
|
|
|
// RemoveAccounts mocks base method.
|
|
func (m *MockAclSpaceClient) RemoveAccounts(arg0 context.Context, arg1 list.AccountRemovePayload) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RemoveAccounts", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RemoveAccounts indicates an expected call of RemoveAccounts.
|
|
func (mr *MockAclSpaceClientMockRecorder) RemoveAccounts(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAccounts", reflect.TypeOf((*MockAclSpaceClient)(nil).RemoveAccounts), arg0, arg1)
|
|
}
|
|
|
|
// RequestSelfRemove mocks base method.
|
|
func (m *MockAclSpaceClient) RequestSelfRemove(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RequestSelfRemove", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RequestSelfRemove indicates an expected call of RequestSelfRemove.
|
|
func (mr *MockAclSpaceClientMockRecorder) RequestSelfRemove(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RequestSelfRemove", reflect.TypeOf((*MockAclSpaceClient)(nil).RequestSelfRemove), arg0)
|
|
}
|
|
|
|
// RevokeAllInvites mocks base method.
|
|
func (m *MockAclSpaceClient) RevokeAllInvites(arg0 context.Context) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RevokeAllInvites", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RevokeAllInvites indicates an expected call of RevokeAllInvites.
|
|
func (mr *MockAclSpaceClientMockRecorder) RevokeAllInvites(arg0 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeAllInvites", reflect.TypeOf((*MockAclSpaceClient)(nil).RevokeAllInvites), arg0)
|
|
}
|
|
|
|
// RevokeInvite mocks base method.
|
|
func (m *MockAclSpaceClient) RevokeInvite(arg0 context.Context, arg1 string) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "RevokeInvite", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// RevokeInvite indicates an expected call of RevokeInvite.
|
|
func (mr *MockAclSpaceClientMockRecorder) RevokeInvite(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevokeInvite", reflect.TypeOf((*MockAclSpaceClient)(nil).RevokeInvite), arg0, arg1)
|
|
}
|
|
|
|
// StopSharing mocks base method.
|
|
func (m *MockAclSpaceClient) StopSharing(arg0 context.Context, arg1 list.ReadKeyChangePayload) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "StopSharing", arg0, arg1)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// StopSharing indicates an expected call of StopSharing.
|
|
func (mr *MockAclSpaceClientMockRecorder) StopSharing(arg0, arg1 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopSharing", reflect.TypeOf((*MockAclSpaceClient)(nil).StopSharing), arg0, arg1)
|
|
}
|