Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: account.go
Generated by this command:
mockgen -source account.go -package mock -destination mock/account.go Account
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: accounts.go
Generated by this command:
mockgen -source accounts.go -package mock -destination mock/accounts.go Accounts
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: device.go
Generated by this command:
mockgen -source device.go -package mock -destination mock/device.go Device
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: devices.go
Generated by this command:
mockgen -source devices.go -package mock -destination mock/devices.go Devices
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: health.go
Generated by this command:
mockgen -source health.go -package mock -destination mock/health.go Health
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: metadata.go
Generated by this command:
mockgen -source metadata.go -package mock -destination mock/metadata.go MetadataProvider
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: module.go
Generated by this command:
mockgen -source module.go -package mock -destination mock/module.go Module
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: modules.go
Generated by this command:
mockgen -source modules.go -package mock -destination mock/modules.go Modules
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: sharing.go
Generated by this command:
mockgen -source sharing.go -package mock -destination mock/sharing.go Sharing
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: username.go
Generated by this command:
mockgen -source username.go -package mock -destination mock/username.go UsernameGenerator
Package mock is a generated GoMock package.
Index ¶
- type MockAccount
- type MockAccountMockRecorder
- type MockAccounts
- type MockAccountsMockRecorder
- type MockDevice
- type MockDeviceMockRecorder
- type MockDevices
- func (m *MockDevices) AddDevice(ctx context.Context, account service.Account, id service.DeviceID, ...) (service.Device, error)
- func (m *MockDevices) DeleteDevice(ctx context.Context, account service.Account, id service.DeviceID) error
- func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
- func (m *MockDevices) GetDevice(ctx context.Context, account service.Account, id service.DeviceID) (service.Device, error)
- func (m *MockDevices) GetDevices(ctx context.Context, account service.Account) (map[service.DeviceID]service.Device, error)
- func (m *MockDevices) HealthCheck() service.HealthCheck
- type MockDevicesMockRecorder
- func (mr *MockDevicesMockRecorder) AddDevice(ctx, account, id, password any) *gomock.Call
- func (mr *MockDevicesMockRecorder) DeleteDevice(ctx, account, id any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetDevice(ctx, account, id any) *gomock.Call
- func (mr *MockDevicesMockRecorder) GetDevices(ctx, account any) *gomock.Call
- func (mr *MockDevicesMockRecorder) HealthCheck() *gomock.Call
- type MockHealth
- type MockHealthMockRecorder
- type MockMetadata
- type MockMetadataMockRecorder
- type MockMetadataProvider
- type MockMetadataProviderMockRecorder
- type MockModule
- type MockModuleMockRecorder
- type MockModules
- func (m *MockModules) DeleteByPattern(ctx context.Context, pattern string) error
- func (m *MockModules) EXPECT() *MockModulesMockRecorder
- func (m *MockModules) Get(ctx context.Context, name string) (service.Module, error)
- func (m *MockModules) HealthCheck() service.HealthCheck
- func (m *MockModules) Set(ctx context.Context, name string, module service.Module) error
- type MockModulesMockRecorder
- type MockSharing
- func (m *MockSharing) EXPECT() *MockSharingMockRecorder
- func (m *MockSharing) Revoke(ctx context.Context, shareCode service.ShareCode) error
- func (m *MockSharing) Share(ctx context.Context, account service.Account) (service.ShareCode, error)
- func (m *MockSharing) Shared(ctx context.Context, shareCode service.ShareCode) (service.Account, error)
- type MockSharingMockRecorder
- type MockUsernameGenerator
- type MockUsernameGeneratorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccount ¶
type MockAccount struct {
// contains filtered or unexported fields
}
MockAccount is a mock of Account interface.
func NewMockAccount ¶
func NewMockAccount(ctrl *gomock.Controller) *MockAccount
NewMockAccount creates a new mock instance.
func (*MockAccount) CreatedAt ¶ added in v0.2.1
func (m *MockAccount) CreatedAt() time.Time
CreatedAt mocks base method.
func (*MockAccount) EXPECT ¶
func (m *MockAccount) EXPECT() *MockAccountMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAccountMockRecorder ¶
type MockAccountMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountMockRecorder is the mock recorder for MockAccount.
func (*MockAccountMockRecorder) CreatedAt ¶ added in v0.2.1
func (mr *MockAccountMockRecorder) CreatedAt() *gomock.Call
CreatedAt indicates an expected call of CreatedAt.
func (*MockAccountMockRecorder) Username ¶
func (mr *MockAccountMockRecorder) Username() *gomock.Call
Username indicates an expected call of Username.
type MockAccounts ¶
type MockAccounts struct {
// contains filtered or unexported fields
}
MockAccounts is a mock of Accounts interface.
func NewMockAccounts ¶
func NewMockAccounts(ctrl *gomock.Controller) *MockAccounts
NewMockAccounts creates a new mock instance.
func (*MockAccounts) EXPECT ¶
func (m *MockAccounts) EXPECT() *MockAccountsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccounts) HealthCheck ¶
func (m *MockAccounts) HealthCheck() service.HealthCheck
HealthCheck mocks base method.
type MockAccountsMockRecorder ¶
type MockAccountsMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountsMockRecorder is the mock recorder for MockAccounts.
func (*MockAccountsMockRecorder) Create ¶ added in v0.2.1
func (mr *MockAccountsMockRecorder) Create(ctx, username any) *gomock.Call
Create indicates an expected call of Create.
func (*MockAccountsMockRecorder) Find ¶
func (mr *MockAccountsMockRecorder) Find(ctx, username any) *gomock.Call
Find indicates an expected call of Find.
func (*MockAccountsMockRecorder) HealthCheck ¶
func (mr *MockAccountsMockRecorder) HealthCheck() *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
type MockDevice ¶
type MockDevice struct {
// contains filtered or unexported fields
}
MockDevice is a mock of Device interface.
func NewMockDevice ¶
func NewMockDevice(ctrl *gomock.Controller) *MockDevice
NewMockDevice creates a new mock instance.
func (*MockDevice) EXPECT ¶
func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevice) HashedPass ¶ added in v0.2.1
func (m *MockDevice) HashedPass() string
HashedPass mocks base method.
func (*MockDevice) Verify ¶ added in v0.2.1
func (m *MockDevice) Verify(password string) bool
Verify mocks base method.
type MockDeviceMockRecorder ¶
type MockDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceMockRecorder is the mock recorder for MockDevice.
func (*MockDeviceMockRecorder) HashedPass ¶ added in v0.2.1
func (mr *MockDeviceMockRecorder) HashedPass() *gomock.Call
HashedPass indicates an expected call of HashedPass.
func (*MockDeviceMockRecorder) ID ¶
func (mr *MockDeviceMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
type MockDevices ¶
type MockDevices struct {
// contains filtered or unexported fields
}
MockDevices is a mock of Devices interface.
func NewMockDevices ¶
func NewMockDevices(ctrl *gomock.Controller) *MockDevices
NewMockDevices creates a new mock instance.
func (*MockDevices) AddDevice ¶ added in v0.2.1
func (m *MockDevices) AddDevice(ctx context.Context, account service.Account, id service.DeviceID, password string) (service.Device, error)
AddDevice mocks base method.
func (*MockDevices) DeleteDevice ¶ added in v0.2.1
func (m *MockDevices) DeleteDevice(ctx context.Context, account service.Account, id service.DeviceID) error
DeleteDevice mocks base method.
func (*MockDevices) EXPECT ¶
func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevices) GetDevice ¶ added in v0.2.1
func (m *MockDevices) GetDevice(ctx context.Context, account service.Account, id service.DeviceID) (service.Device, error)
GetDevice mocks base method.
func (*MockDevices) GetDevices ¶ added in v0.2.1
func (m *MockDevices) GetDevices(ctx context.Context, account service.Account) (map[service.DeviceID]service.Device, error)
GetDevices mocks base method.
func (*MockDevices) HealthCheck ¶
func (m *MockDevices) HealthCheck() service.HealthCheck
HealthCheck mocks base method.
type MockDevicesMockRecorder ¶
type MockDevicesMockRecorder struct {
// contains filtered or unexported fields
}
MockDevicesMockRecorder is the mock recorder for MockDevices.
func (*MockDevicesMockRecorder) AddDevice ¶ added in v0.2.1
func (mr *MockDevicesMockRecorder) AddDevice(ctx, account, id, password any) *gomock.Call
AddDevice indicates an expected call of AddDevice.
func (*MockDevicesMockRecorder) DeleteDevice ¶ added in v0.2.1
func (mr *MockDevicesMockRecorder) DeleteDevice(ctx, account, id any) *gomock.Call
DeleteDevice indicates an expected call of DeleteDevice.
func (*MockDevicesMockRecorder) GetDevice ¶ added in v0.2.1
func (mr *MockDevicesMockRecorder) GetDevice(ctx, account, id any) *gomock.Call
GetDevice indicates an expected call of GetDevice.
func (*MockDevicesMockRecorder) GetDevices ¶ added in v0.2.1
func (mr *MockDevicesMockRecorder) GetDevices(ctx, account any) *gomock.Call
GetDevices indicates an expected call of GetDevices.
func (*MockDevicesMockRecorder) HealthCheck ¶
func (mr *MockDevicesMockRecorder) HealthCheck() *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
type MockHealth ¶
type MockHealth struct {
// contains filtered or unexported fields
}
MockHealth is a mock of Health interface.
func NewMockHealth ¶
func NewMockHealth(ctrl *gomock.Controller) *MockHealth
NewMockHealth creates a new mock instance.
func (*MockHealth) Check ¶
func (m *MockHealth) Check(ctx context.Context) service.HealthAggregation
Check mocks base method.
func (*MockHealth) EXPECT ¶
func (m *MockHealth) EXPECT() *MockHealthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHealthMockRecorder ¶
type MockHealthMockRecorder struct {
// contains filtered or unexported fields
}
MockHealthMockRecorder is the mock recorder for MockHealth.
type MockMetadata ¶ added in v0.4.0
type MockMetadata struct {
// contains filtered or unexported fields
}
MockMetadata is a mock of Metadata interface.
func NewMockMetadata ¶ added in v0.4.0
func NewMockMetadata(ctrl *gomock.Controller) *MockMetadata
NewMockMetadata creates a new mock instance.
func (*MockMetadata) EXPECT ¶ added in v0.4.0
func (m *MockMetadata) EXPECT() *MockMetadataMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetadata) GetID ¶ added in v0.4.0
func (m *MockMetadata) GetID() service.MetadataID
GetID mocks base method.
func (*MockMetadata) GetModifiedAt ¶ added in v0.4.0
func (m *MockMetadata) GetModifiedAt() service.ModifiedAt
GetModifiedAt mocks base method.
type MockMetadataMockRecorder ¶ added in v0.4.0
type MockMetadataMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataMockRecorder is the mock recorder for MockMetadata.
func (*MockMetadataMockRecorder) GetID ¶ added in v0.4.0
func (mr *MockMetadataMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockMetadataMockRecorder) GetModifiedAt ¶ added in v0.4.0
func (mr *MockMetadataMockRecorder) GetModifiedAt() *gomock.Call
GetModifiedAt indicates an expected call of GetModifiedAt.
type MockMetadataProvider ¶ added in v0.4.0
type MockMetadataProvider struct {
// contains filtered or unexported fields
}
MockMetadataProvider is a mock of MetadataProvider interface.
func NewMockMetadataProvider ¶ added in v0.4.0
func NewMockMetadataProvider(ctrl *gomock.Controller) *MockMetadataProvider
NewMockMetadataProvider creates a new mock instance.
func (*MockMetadataProvider) EXPECT ¶ added in v0.4.0
func (m *MockMetadataProvider) EXPECT() *MockMetadataProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetadataProvider) Get ¶ added in v0.4.0
func (m *MockMetadataProvider) Get(ctx context.Context, id service.MetadataID) (service.Metadata, error)
Get mocks base method.
type MockMetadataProviderMockRecorder ¶ added in v0.4.0
type MockMetadataProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataProviderMockRecorder is the mock recorder for MockMetadataProvider.
type MockModule ¶
type MockModule struct {
// contains filtered or unexported fields
}
MockModule is a mock of Module interface.
func NewMockModule ¶
func NewMockModule(ctrl *gomock.Controller) *MockModule
NewMockModule creates a new mock instance.
func (*MockModule) EXPECT ¶
func (m *MockModule) EXPECT() *MockModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockModuleMockRecorder ¶
type MockModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockModuleMockRecorder is the mock recorder for MockModule.
func (*MockModuleMockRecorder) Raw ¶
func (mr *MockModuleMockRecorder) Raw() *gomock.Call
Raw indicates an expected call of Raw.
func (*MockModuleMockRecorder) Size ¶
func (mr *MockModuleMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
type MockModules ¶
type MockModules struct {
// contains filtered or unexported fields
}
MockModules is a mock of Modules interface.
func NewMockModules ¶
func NewMockModules(ctrl *gomock.Controller) *MockModules
NewMockModules creates a new mock instance.
func (*MockModules) DeleteByPattern ¶ added in v0.4.0
func (m *MockModules) DeleteByPattern(ctx context.Context, pattern string) error
DeleteByPattern mocks base method.
func (*MockModules) EXPECT ¶
func (m *MockModules) EXPECT() *MockModulesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModules) HealthCheck ¶
func (m *MockModules) HealthCheck() service.HealthCheck
HealthCheck mocks base method.
type MockModulesMockRecorder ¶
type MockModulesMockRecorder struct {
// contains filtered or unexported fields
}
MockModulesMockRecorder is the mock recorder for MockModules.
func (*MockModulesMockRecorder) DeleteByPattern ¶ added in v0.4.0
func (mr *MockModulesMockRecorder) DeleteByPattern(ctx, pattern any) *gomock.Call
DeleteByPattern indicates an expected call of DeleteByPattern.
func (*MockModulesMockRecorder) Get ¶
func (mr *MockModulesMockRecorder) Get(ctx, name any) *gomock.Call
Get indicates an expected call of Get.
func (*MockModulesMockRecorder) HealthCheck ¶
func (mr *MockModulesMockRecorder) HealthCheck() *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
type MockSharing ¶ added in v0.2.1
type MockSharing struct {
// contains filtered or unexported fields
}
MockSharing is a mock of Sharing interface.
func NewMockSharing ¶ added in v0.2.1
func NewMockSharing(ctrl *gomock.Controller) *MockSharing
NewMockSharing creates a new mock instance.
func (*MockSharing) EXPECT ¶ added in v0.2.1
func (m *MockSharing) EXPECT() *MockSharingMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSharingMockRecorder ¶ added in v0.2.1
type MockSharingMockRecorder struct {
// contains filtered or unexported fields
}
MockSharingMockRecorder is the mock recorder for MockSharing.
func (*MockSharingMockRecorder) Revoke ¶ added in v0.2.1
func (mr *MockSharingMockRecorder) Revoke(ctx, shareCode any) *gomock.Call
Revoke indicates an expected call of Revoke.
type MockUsernameGenerator ¶ added in v0.2.0
type MockUsernameGenerator struct {
// contains filtered or unexported fields
}
MockUsernameGenerator is a mock of UsernameGenerator interface.
func NewMockUsernameGenerator ¶ added in v0.2.0
func NewMockUsernameGenerator(ctrl *gomock.Controller) *MockUsernameGenerator
NewMockUsernameGenerator creates a new mock instance.
func (*MockUsernameGenerator) EXPECT ¶ added in v0.2.0
func (m *MockUsernameGenerator) EXPECT() *MockUsernameGeneratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsernameGenerator) Generate ¶ added in v0.2.0
func (m *MockUsernameGenerator) Generate() (string, error)
Generate mocks base method.
type MockUsernameGeneratorMockRecorder ¶ added in v0.2.0
type MockUsernameGeneratorMockRecorder struct {
// contains filtered or unexported fields
}
MockUsernameGeneratorMockRecorder is the mock recorder for MockUsernameGenerator.
func (*MockUsernameGeneratorMockRecorder) Generate ¶ added in v0.2.0
func (mr *MockUsernameGeneratorMockRecorder) Generate() *gomock.Call
Generate indicates an expected call of Generate.