mock_syncacl

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock_syncacl is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAclSyncProtocol

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

MockAclSyncProtocol is a mock of AclSyncProtocol interface.

func NewMockAclSyncProtocol

func NewMockAclSyncProtocol(ctrl *gomock.Controller) *MockAclSyncProtocol

NewMockAclSyncProtocol creates a new mock instance.

func (*MockAclSyncProtocol) EXPECT

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

func (*MockAclSyncProtocol) FullSyncRequest

FullSyncRequest mocks base method.

func (*MockAclSyncProtocol) FullSyncResponse

func (m *MockAclSyncProtocol) FullSyncResponse(arg0 context.Context, arg1 string, arg2 *consensusproto.LogFullSyncResponse) error

FullSyncResponse mocks base method.

func (*MockAclSyncProtocol) HeadUpdate

HeadUpdate mocks base method.

type MockAclSyncProtocolMockRecorder

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

MockAclSyncProtocolMockRecorder is the mock recorder for MockAclSyncProtocol.

func (*MockAclSyncProtocolMockRecorder) FullSyncRequest

func (mr *MockAclSyncProtocolMockRecorder) FullSyncRequest(arg0, arg1, arg2 any) *gomock.Call

FullSyncRequest indicates an expected call of FullSyncRequest.

func (*MockAclSyncProtocolMockRecorder) FullSyncResponse

func (mr *MockAclSyncProtocolMockRecorder) FullSyncResponse(arg0, arg1, arg2 any) *gomock.Call

FullSyncResponse indicates an expected call of FullSyncResponse.

func (*MockAclSyncProtocolMockRecorder) HeadUpdate

func (mr *MockAclSyncProtocolMockRecorder) HeadUpdate(arg0, arg1, arg2 any) *gomock.Call

HeadUpdate indicates an expected call of HeadUpdate.

type MockRequestFactory

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

MockRequestFactory is a mock of RequestFactory interface.

func NewMockRequestFactory

func NewMockRequestFactory(ctrl *gomock.Controller) *MockRequestFactory

NewMockRequestFactory creates a new mock instance.

func (*MockRequestFactory) CreateFullSyncRequest

func (m *MockRequestFactory) CreateFullSyncRequest(arg0 list.AclList, arg1 string) (*consensusproto.LogSyncMessage, error)

CreateFullSyncRequest mocks base method.

func (*MockRequestFactory) CreateFullSyncResponse

func (m *MockRequestFactory) CreateFullSyncResponse(arg0 list.AclList, arg1 string) (*consensusproto.LogSyncMessage, error)

CreateFullSyncResponse mocks base method.

func (*MockRequestFactory) CreateHeadUpdate

CreateHeadUpdate mocks base method.

func (*MockRequestFactory) EXPECT

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

type MockRequestFactoryMockRecorder

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

MockRequestFactoryMockRecorder is the mock recorder for MockRequestFactory.

func (*MockRequestFactoryMockRecorder) CreateFullSyncRequest

func (mr *MockRequestFactoryMockRecorder) CreateFullSyncRequest(arg0, arg1 any) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockRequestFactoryMockRecorder) CreateFullSyncResponse

func (mr *MockRequestFactoryMockRecorder) CreateFullSyncResponse(arg0, arg1 any) *gomock.Call

CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.

func (*MockRequestFactoryMockRecorder) CreateHeadUpdate

func (mr *MockRequestFactoryMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

type MockSyncAcl

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

MockSyncAcl is a mock of SyncAcl interface.

func NewMockSyncAcl

func NewMockSyncAcl(ctrl *gomock.Controller) *MockSyncAcl

NewMockSyncAcl creates a new mock instance.

func (*MockSyncAcl) AclState

func (m *MockSyncAcl) AclState() *list.AclState

AclState mocks base method.

func (*MockSyncAcl) AddRawRecord

func (m *MockSyncAcl) AddRawRecord(arg0 *consensusproto.RawRecordWithId) error

AddRawRecord mocks base method.

func (*MockSyncAcl) AddRawRecords

func (m *MockSyncAcl) AddRawRecords(arg0 []*consensusproto.RawRecordWithId) error

AddRawRecords mocks base method.

func (*MockSyncAcl) Close

func (m *MockSyncAcl) Close(arg0 context.Context) error

Close mocks base method.

func (*MockSyncAcl) EXPECT

func (m *MockSyncAcl) EXPECT() *MockSyncAclMockRecorder

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

func (*MockSyncAcl) Get

func (m *MockSyncAcl) Get(arg0 string) (*list.AclRecord, error)

Get mocks base method.

func (*MockSyncAcl) GetIndex

func (m *MockSyncAcl) GetIndex(arg0 int) (*list.AclRecord, error)

GetIndex mocks base method.

func (*MockSyncAcl) HandleMessage

func (m *MockSyncAcl) HandleMessage(arg0 context.Context, arg1 string, arg2 *spacesyncproto.ObjectSyncMessage) error

HandleMessage mocks base method.

func (*MockSyncAcl) HandleRequest

HandleRequest mocks base method.

func (*MockSyncAcl) HasHead

func (m *MockSyncAcl) HasHead(arg0 string) bool

HasHead mocks base method.

func (*MockSyncAcl) Head

func (m *MockSyncAcl) Head() *list.AclRecord

Head mocks base method.

func (*MockSyncAcl) Id

func (m *MockSyncAcl) Id() string

Id mocks base method.

func (*MockSyncAcl) Init

func (m *MockSyncAcl) Init(arg0 *app.App) error

Init mocks base method.

func (*MockSyncAcl) IsAfter

func (m *MockSyncAcl) IsAfter(arg0, arg1 string) (bool, error)

IsAfter mocks base method.

func (*MockSyncAcl) Iterate

func (m *MockSyncAcl) Iterate(arg0 func(*list.AclRecord) bool)

Iterate mocks base method.

func (*MockSyncAcl) IterateFrom

func (m *MockSyncAcl) IterateFrom(arg0 string, arg1 func(*list.AclRecord) bool)

IterateFrom mocks base method.

func (*MockSyncAcl) KeyStorage

func (m *MockSyncAcl) KeyStorage() crypto.KeyStorage

KeyStorage mocks base method.

func (*MockSyncAcl) Lock

func (m *MockSyncAcl) Lock()

Lock mocks base method.

func (*MockSyncAcl) Name

func (m *MockSyncAcl) Name() string

Name mocks base method.

func (*MockSyncAcl) RLock

func (m *MockSyncAcl) RLock()

RLock mocks base method.

func (*MockSyncAcl) RUnlock

func (m *MockSyncAcl) RUnlock()

RUnlock mocks base method.

func (*MockSyncAcl) RecordBuilder

func (m *MockSyncAcl) RecordBuilder() list.AclRecordBuilder

RecordBuilder mocks base method.

func (*MockSyncAcl) Records

func (m *MockSyncAcl) Records() []*list.AclRecord

Records mocks base method.

func (*MockSyncAcl) RecordsAfter

func (m *MockSyncAcl) RecordsAfter(arg0 context.Context, arg1 string) ([]*consensusproto.RawRecordWithId, error)

RecordsAfter mocks base method.

func (*MockSyncAcl) RecordsBefore

func (m *MockSyncAcl) RecordsBefore(arg0 context.Context, arg1 string) ([]*consensusproto.RawRecordWithId, error)

RecordsBefore mocks base method.

func (*MockSyncAcl) Root

Root mocks base method.

func (*MockSyncAcl) Run

func (m *MockSyncAcl) Run(arg0 context.Context) error

Run mocks base method.

func (*MockSyncAcl) SetAclUpdater added in v0.3.0

func (m *MockSyncAcl) SetAclUpdater(arg0 headupdater.AclUpdater)

SetAclUpdater mocks base method.

func (*MockSyncAcl) SetHeadUpdater

func (m *MockSyncAcl) SetHeadUpdater(arg0 headupdater.HeadUpdater)

SetHeadUpdater mocks base method.

func (*MockSyncAcl) SyncWithPeer

func (m *MockSyncAcl) SyncWithPeer(arg0 context.Context, arg1 string) error

SyncWithPeer mocks base method.

func (*MockSyncAcl) Unlock

func (m *MockSyncAcl) Unlock()

Unlock mocks base method.

func (*MockSyncAcl) ValidateRawRecord

func (m *MockSyncAcl) ValidateRawRecord(arg0 *consensusproto.RawRecord, arg1 func(*list.AclState) error) error

ValidateRawRecord mocks base method.

type MockSyncAclMockRecorder

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

MockSyncAclMockRecorder is the mock recorder for MockSyncAcl.

func (*MockSyncAclMockRecorder) AclState

func (mr *MockSyncAclMockRecorder) AclState() *gomock.Call

AclState indicates an expected call of AclState.

func (*MockSyncAclMockRecorder) AddRawRecord

func (mr *MockSyncAclMockRecorder) AddRawRecord(arg0 any) *gomock.Call

AddRawRecord indicates an expected call of AddRawRecord.

func (*MockSyncAclMockRecorder) AddRawRecords

func (mr *MockSyncAclMockRecorder) AddRawRecords(arg0 any) *gomock.Call

AddRawRecords indicates an expected call of AddRawRecords.

func (*MockSyncAclMockRecorder) Close

func (mr *MockSyncAclMockRecorder) Close(arg0 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockSyncAclMockRecorder) Get

func (mr *MockSyncAclMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockSyncAclMockRecorder) GetIndex

func (mr *MockSyncAclMockRecorder) GetIndex(arg0 any) *gomock.Call

GetIndex indicates an expected call of GetIndex.

func (*MockSyncAclMockRecorder) HandleMessage

func (mr *MockSyncAclMockRecorder) HandleMessage(arg0, arg1, arg2 any) *gomock.Call

HandleMessage indicates an expected call of HandleMessage.

func (*MockSyncAclMockRecorder) HandleRequest

func (mr *MockSyncAclMockRecorder) HandleRequest(arg0, arg1, arg2 any) *gomock.Call

HandleRequest indicates an expected call of HandleRequest.

func (*MockSyncAclMockRecorder) HasHead

func (mr *MockSyncAclMockRecorder) HasHead(arg0 any) *gomock.Call

HasHead indicates an expected call of HasHead.

func (*MockSyncAclMockRecorder) Head

func (mr *MockSyncAclMockRecorder) Head() *gomock.Call

Head indicates an expected call of Head.

func (*MockSyncAclMockRecorder) Id

Id indicates an expected call of Id.

func (*MockSyncAclMockRecorder) Init

func (mr *MockSyncAclMockRecorder) Init(arg0 any) *gomock.Call

Init indicates an expected call of Init.

func (*MockSyncAclMockRecorder) IsAfter

func (mr *MockSyncAclMockRecorder) IsAfter(arg0, arg1 any) *gomock.Call

IsAfter indicates an expected call of IsAfter.

func (*MockSyncAclMockRecorder) Iterate

func (mr *MockSyncAclMockRecorder) Iterate(arg0 any) *gomock.Call

Iterate indicates an expected call of Iterate.

func (*MockSyncAclMockRecorder) IterateFrom

func (mr *MockSyncAclMockRecorder) IterateFrom(arg0, arg1 any) *gomock.Call

IterateFrom indicates an expected call of IterateFrom.

func (*MockSyncAclMockRecorder) KeyStorage

func (mr *MockSyncAclMockRecorder) KeyStorage() *gomock.Call

KeyStorage indicates an expected call of KeyStorage.

func (*MockSyncAclMockRecorder) Lock

func (mr *MockSyncAclMockRecorder) Lock() *gomock.Call

Lock indicates an expected call of Lock.

func (*MockSyncAclMockRecorder) Name

func (mr *MockSyncAclMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockSyncAclMockRecorder) RLock

func (mr *MockSyncAclMockRecorder) RLock() *gomock.Call

RLock indicates an expected call of RLock.

func (*MockSyncAclMockRecorder) RUnlock

func (mr *MockSyncAclMockRecorder) RUnlock() *gomock.Call

RUnlock indicates an expected call of RUnlock.

func (*MockSyncAclMockRecorder) RecordBuilder

func (mr *MockSyncAclMockRecorder) RecordBuilder() *gomock.Call

RecordBuilder indicates an expected call of RecordBuilder.

func (*MockSyncAclMockRecorder) Records

func (mr *MockSyncAclMockRecorder) Records() *gomock.Call

Records indicates an expected call of Records.

func (*MockSyncAclMockRecorder) RecordsAfter

func (mr *MockSyncAclMockRecorder) RecordsAfter(arg0, arg1 any) *gomock.Call

RecordsAfter indicates an expected call of RecordsAfter.

func (*MockSyncAclMockRecorder) RecordsBefore

func (mr *MockSyncAclMockRecorder) RecordsBefore(arg0, arg1 any) *gomock.Call

RecordsBefore indicates an expected call of RecordsBefore.

func (*MockSyncAclMockRecorder) Root

func (mr *MockSyncAclMockRecorder) Root() *gomock.Call

Root indicates an expected call of Root.

func (*MockSyncAclMockRecorder) Run

func (mr *MockSyncAclMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockSyncAclMockRecorder) SetAclUpdater added in v0.3.0

func (mr *MockSyncAclMockRecorder) SetAclUpdater(arg0 any) *gomock.Call

SetAclUpdater indicates an expected call of SetAclUpdater.

func (*MockSyncAclMockRecorder) SetHeadUpdater

func (mr *MockSyncAclMockRecorder) SetHeadUpdater(arg0 any) *gomock.Call

SetHeadUpdater indicates an expected call of SetHeadUpdater.

func (*MockSyncAclMockRecorder) SyncWithPeer

func (mr *MockSyncAclMockRecorder) SyncWithPeer(arg0, arg1 any) *gomock.Call

SyncWithPeer indicates an expected call of SyncWithPeer.

func (*MockSyncAclMockRecorder) Unlock

func (mr *MockSyncAclMockRecorder) Unlock() *gomock.Call

Unlock indicates an expected call of Unlock.

func (*MockSyncAclMockRecorder) ValidateRawRecord

func (mr *MockSyncAclMockRecorder) ValidateRawRecord(arg0, arg1 any) *gomock.Call

ValidateRawRecord indicates an expected call of ValidateRawRecord.

type MockSyncClient

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

MockSyncClient is a mock of SyncClient interface.

func NewMockSyncClient

func NewMockSyncClient(ctrl *gomock.Controller) *MockSyncClient

NewMockSyncClient creates a new mock instance.

func (*MockSyncClient) Broadcast

func (m *MockSyncClient) Broadcast(arg0 *consensusproto.LogSyncMessage)

Broadcast mocks base method.

func (*MockSyncClient) CreateFullSyncRequest

func (m *MockSyncClient) CreateFullSyncRequest(arg0 list.AclList, arg1 string) (*consensusproto.LogSyncMessage, error)

CreateFullSyncRequest mocks base method.

func (*MockSyncClient) CreateFullSyncResponse

func (m *MockSyncClient) CreateFullSyncResponse(arg0 list.AclList, arg1 string) (*consensusproto.LogSyncMessage, error)

CreateFullSyncResponse mocks base method.

func (*MockSyncClient) CreateHeadUpdate

CreateHeadUpdate mocks base method.

func (*MockSyncClient) EXPECT

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

func (*MockSyncClient) QueueRequest

func (m *MockSyncClient) QueueRequest(arg0 string, arg1 *consensusproto.LogSyncMessage) error

QueueRequest mocks base method.

func (*MockSyncClient) SendRequest

SendRequest mocks base method.

func (*MockSyncClient) SendUpdate

func (m *MockSyncClient) SendUpdate(arg0 string, arg1 *consensusproto.LogSyncMessage) error

SendUpdate mocks base method.

type MockSyncClientMockRecorder

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

MockSyncClientMockRecorder is the mock recorder for MockSyncClient.

func (*MockSyncClientMockRecorder) Broadcast

func (mr *MockSyncClientMockRecorder) Broadcast(arg0 any) *gomock.Call

Broadcast indicates an expected call of Broadcast.

func (*MockSyncClientMockRecorder) CreateFullSyncRequest

func (mr *MockSyncClientMockRecorder) CreateFullSyncRequest(arg0, arg1 any) *gomock.Call

CreateFullSyncRequest indicates an expected call of CreateFullSyncRequest.

func (*MockSyncClientMockRecorder) CreateFullSyncResponse

func (mr *MockSyncClientMockRecorder) CreateFullSyncResponse(arg0, arg1 any) *gomock.Call

CreateFullSyncResponse indicates an expected call of CreateFullSyncResponse.

func (*MockSyncClientMockRecorder) CreateHeadUpdate

func (mr *MockSyncClientMockRecorder) CreateHeadUpdate(arg0, arg1 any) *gomock.Call

CreateHeadUpdate indicates an expected call of CreateHeadUpdate.

func (*MockSyncClientMockRecorder) QueueRequest

func (mr *MockSyncClientMockRecorder) QueueRequest(arg0, arg1 any) *gomock.Call

QueueRequest indicates an expected call of QueueRequest.

func (*MockSyncClientMockRecorder) SendRequest

func (mr *MockSyncClientMockRecorder) SendRequest(arg0, arg1, arg2 any) *gomock.Call

SendRequest indicates an expected call of SendRequest.

func (*MockSyncClientMockRecorder) SendUpdate

func (mr *MockSyncClientMockRecorder) SendUpdate(arg0, arg1 any) *gomock.Call

SendUpdate indicates an expected call of SendUpdate.

Jump to

Keyboard shortcuts

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