Documentation
¶
Overview ¶
Package labelsyncmapping is a generated GoMock package.
Index ¶
- type DeviceMapping
- type DeviceMappingsSnapshot
- type MappingScanRecord
- type MockStore
- func (m *MockStore) CompleteMappingScan(arg0 context.Context, arg1 uuid.UUID, arg2 []MappingScanRecord) (map[uuid.UUID]bool, error)
- func (m *MockStore) Create(arg0 context.Context, arg1 uuid.UUID, arg2 *domain.LabelSyncMapping) (*domain.LabelSyncMapping, error)
- func (m *MockStore) Delete(arg0 context.Context, arg1 uuid.UUID, arg2 string) (bool, error)
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) FinalizeDelete(arg0 context.Context, arg1 uuid.UUID, arg2 string) (bool, error)
- func (m *MockStore) Get(arg0 context.Context, arg1 uuid.UUID, arg2 string) (*domain.LabelSyncMapping, error)
- func (m *MockStore) GetDeviceMappingsSnapshot(arg0 context.Context, arg1 uuid.UUID) (DeviceMappingsSnapshot, error)
- func (m *MockStore) InitialMigration(arg0 context.Context) error
- func (m *MockStore) List(arg0 context.Context, arg1 uuid.UUID, arg2 store.ListParams) (*domain.LabelSyncMappingList, error)
- func (m *MockStore) ListMappingScanTargets(arg0 context.Context, arg1 uuid.UUID) ([]MappingScanRecord, error)
- func (m *MockStore) RecordMappingScanFailure(arg0 context.Context, arg1 uuid.UUID, arg2 MappingScanRecord, arg3 string) (MappingScanRecord, bool, error)
- func (m *MockStore) Update(arg0 context.Context, arg1 uuid.UUID, arg2 *domain.LabelSyncMapping) (*domain.LabelSyncMapping, *domain.LabelSyncMapping, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) CompleteMappingScan(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) FinalizeDelete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetDeviceMappingsSnapshot(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) InitialMigration(arg0 any) *gomock.Call
- func (mr *MockStoreMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListMappingScanTargets(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) RecordMappingScanFailure(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStoreMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceMapping ¶
type DeviceMapping struct {
ID uuid.UUID
Mapping domain.LabelSyncMapping
}
DeviceMapping pairs a persisted mapping with its stable ownership identifier.
type DeviceMappingsSnapshot ¶
type DeviceMappingsSnapshot struct {
Mappings []DeviceMapping
Revision int64
}
DeviceMappingsSnapshot contains the current Device mappings and their revision.
type MappingScanRecord ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) CompleteMappingScan ¶
func (m *MockStore) CompleteMappingScan(arg0 context.Context, arg1 uuid.UUID, arg2 []MappingScanRecord) (map[uuid.UUID]bool, error)
CompleteMappingScan mocks base method.
func (*MockStore) Create ¶
func (m *MockStore) Create(arg0 context.Context, arg1 uuid.UUID, arg2 *domain.LabelSyncMapping) (*domain.LabelSyncMapping, error)
Create mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) FinalizeDelete ¶
FinalizeDelete mocks base method.
func (*MockStore) Get ¶
func (m *MockStore) Get(arg0 context.Context, arg1 uuid.UUID, arg2 string) (*domain.LabelSyncMapping, error)
Get mocks base method.
func (*MockStore) GetDeviceMappingsSnapshot ¶
func (m *MockStore) GetDeviceMappingsSnapshot(arg0 context.Context, arg1 uuid.UUID) (DeviceMappingsSnapshot, error)
GetDeviceMappingsSnapshot mocks base method.
func (*MockStore) InitialMigration ¶
InitialMigration mocks base method.
func (*MockStore) List ¶
func (m *MockStore) List(arg0 context.Context, arg1 uuid.UUID, arg2 store.ListParams) (*domain.LabelSyncMappingList, error)
List mocks base method.
func (*MockStore) ListMappingScanTargets ¶
func (m *MockStore) ListMappingScanTargets(arg0 context.Context, arg1 uuid.UUID) ([]MappingScanRecord, error)
ListMappingScanTargets mocks base method.
func (*MockStore) RecordMappingScanFailure ¶
func (m *MockStore) RecordMappingScanFailure(arg0 context.Context, arg1 uuid.UUID, arg2 MappingScanRecord, arg3 string) (MappingScanRecord, bool, error)
RecordMappingScanFailure mocks base method.
func (*MockStore) Update ¶
func (m *MockStore) Update(arg0 context.Context, arg1 uuid.UUID, arg2 *domain.LabelSyncMapping) (*domain.LabelSyncMapping, *domain.LabelSyncMapping, error)
Update mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) CompleteMappingScan ¶
func (mr *MockStoreMockRecorder) CompleteMappingScan(arg0, arg1, arg2 any) *gomock.Call
CompleteMappingScan indicates an expected call of CompleteMappingScan.
func (*MockStoreMockRecorder) Create ¶
func (mr *MockStoreMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockStoreMockRecorder) Delete ¶
func (mr *MockStoreMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStoreMockRecorder) FinalizeDelete ¶
func (mr *MockStoreMockRecorder) FinalizeDelete(arg0, arg1, arg2 any) *gomock.Call
FinalizeDelete indicates an expected call of FinalizeDelete.
func (*MockStoreMockRecorder) Get ¶
func (mr *MockStoreMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockStoreMockRecorder) GetDeviceMappingsSnapshot ¶
func (mr *MockStoreMockRecorder) GetDeviceMappingsSnapshot(arg0, arg1 any) *gomock.Call
GetDeviceMappingsSnapshot indicates an expected call of GetDeviceMappingsSnapshot.
func (*MockStoreMockRecorder) InitialMigration ¶
func (mr *MockStoreMockRecorder) InitialMigration(arg0 any) *gomock.Call
InitialMigration indicates an expected call of InitialMigration.
func (*MockStoreMockRecorder) List ¶
func (mr *MockStoreMockRecorder) List(arg0, arg1, arg2 any) *gomock.Call
List indicates an expected call of List.
func (*MockStoreMockRecorder) ListMappingScanTargets ¶
func (mr *MockStoreMockRecorder) ListMappingScanTargets(arg0, arg1 any) *gomock.Call
ListMappingScanTargets indicates an expected call of ListMappingScanTargets.
func (*MockStoreMockRecorder) RecordMappingScanFailure ¶
func (mr *MockStoreMockRecorder) RecordMappingScanFailure(arg0, arg1, arg2, arg3 any) *gomock.Call
RecordMappingScanFailure indicates an expected call of RecordMappingScanFailure.
type Store ¶
type Store interface {
InitialMigration(context.Context) error
Create(context.Context, uuid.UUID, *domain.LabelSyncMapping) (*domain.LabelSyncMapping, error)
Update(context.Context, uuid.UUID, *domain.LabelSyncMapping) (*domain.LabelSyncMapping, *domain.LabelSyncMapping, error)
Get(context.Context, uuid.UUID, string) (*domain.LabelSyncMapping, error)
List(context.Context, uuid.UUID, store.ListParams) (*domain.LabelSyncMappingList, error)
Delete(context.Context, uuid.UUID, string) (bool, error)
FinalizeDelete(context.Context, uuid.UUID, string) (bool, error)
GetDeviceMappingsSnapshot(context.Context, uuid.UUID) (DeviceMappingsSnapshot, error)
ListMappingScanTargets(context.Context, uuid.UUID) ([]MappingScanRecord, error)
RecordMappingScanFailure(context.Context, uuid.UUID, MappingScanRecord, string) (MappingScanRecord, bool, error)
CompleteMappingScan(context.Context, uuid.UUID, []MappingScanRecord) (map[uuid.UUID]bool, error)
}