Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAccount
- type MockAccountMockRecorder
- type MockAccounts
- func (m *MockAccounts) ActiveShares(ctx context.Context, username string) ([]string, error)
- func (m *MockAccounts) EXPECT() *MockAccountsMockRecorder
- func (m *MockAccounts) Find(ctx context.Context, username string) (service.Account, error)
- func (m *MockAccounts) HealthCheck() service.HealthCheck
- func (m *MockAccounts) IsShared(ctx context.Context, username, share string) (bool, error)
- func (m *MockAccounts) Register(ctx context.Context, username string) (service.Account, string, error)
- func (m *MockAccounts) Revoke(ctx context.Context, username, shareCode string) error
- func (m *MockAccounts) Share(ctx context.Context, username string) (string, error)
- type MockAccountsMockRecorder
- func (mr *MockAccountsMockRecorder) ActiveShares(ctx, username interface{}) *gomock.Call
- func (mr *MockAccountsMockRecorder) Find(ctx, username interface{}) *gomock.Call
- func (mr *MockAccountsMockRecorder) HealthCheck() *gomock.Call
- func (mr *MockAccountsMockRecorder) IsShared(ctx, username, share interface{}) *gomock.Call
- func (mr *MockAccountsMockRecorder) Register(ctx, username interface{}) *gomock.Call
- func (mr *MockAccountsMockRecorder) Revoke(ctx, username, shareCode interface{}) *gomock.Call
- func (mr *MockAccountsMockRecorder) Share(ctx, username interface{}) *gomock.Call
- type MockDevice
- type MockDeviceMockRecorder
- type MockDevices
- func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
- func (m *MockDevices) FindByAccount(ctx context.Context, acc service.Account) ([]service.Device, error)
- func (m *MockDevices) FindByDeviceID(ctx context.Context, acc service.Account, deviceId service.DeviceID) (service.Device, error)
- func (m *MockDevices) HealthCheck() service.HealthCheck
- func (m *MockDevices) Register(ctx context.Context, acc service.Account, deviceId service.DeviceID) (service.Device, error)
- type MockDevicesMockRecorder
- func (mr *MockDevicesMockRecorder) FindByAccount(ctx, acc interface{}) *gomock.Call
- func (mr *MockDevicesMockRecorder) FindByDeviceID(ctx, acc, deviceId interface{}) *gomock.Call
- func (mr *MockDevicesMockRecorder) HealthCheck() *gomock.Call
- func (mr *MockDevicesMockRecorder) Register(ctx, acc, deviceId interface{}) *gomock.Call
- type MockHealth
- type MockHealthMockRecorder
- type MockModule
- type MockModuleMockRecorder
- type MockModules
- type MockModulesMockRecorder
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) EXPECT ¶
func (m *MockAccount) EXPECT() *MockAccountMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccount) HashedPass ¶
func (m *MockAccount) HashedPass() string
HashedPass mocks base method.
type MockAccountMockRecorder ¶
type MockAccountMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountMockRecorder is the mock recorder for MockAccount.
func (*MockAccountMockRecorder) HashedPass ¶
func (mr *MockAccountMockRecorder) HashedPass() *gomock.Call
HashedPass indicates an expected call of HashedPass.
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) ActiveShares ¶
ActiveShares mocks base method.
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.
func (*MockAccounts) Register ¶
func (m *MockAccounts) Register(ctx context.Context, username string) (service.Account, string, error)
Register mocks base method.
type MockAccountsMockRecorder ¶
type MockAccountsMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountsMockRecorder is the mock recorder for MockAccounts.
func (*MockAccountsMockRecorder) ActiveShares ¶
func (mr *MockAccountsMockRecorder) ActiveShares(ctx, username interface{}) *gomock.Call
ActiveShares indicates an expected call of ActiveShares.
func (*MockAccountsMockRecorder) Find ¶
func (mr *MockAccountsMockRecorder) Find(ctx, username interface{}) *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.
func (*MockAccountsMockRecorder) IsShared ¶
func (mr *MockAccountsMockRecorder) IsShared(ctx, username, share interface{}) *gomock.Call
IsShared indicates an expected call of IsShared.
func (*MockAccountsMockRecorder) Register ¶
func (mr *MockAccountsMockRecorder) Register(ctx, username interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockAccountsMockRecorder) Revoke ¶
func (mr *MockAccountsMockRecorder) Revoke(ctx, username, shareCode interface{}) *gomock.Call
Revoke indicates an expected call of Revoke.
func (*MockAccountsMockRecorder) Share ¶
func (mr *MockAccountsMockRecorder) Share(ctx, username interface{}) *gomock.Call
Share indicates an expected call of Share.
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.
type MockDeviceMockRecorder ¶
type MockDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceMockRecorder is the mock recorder for MockDevice.
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) EXPECT ¶
func (m *MockDevices) EXPECT() *MockDevicesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevices) FindByAccount ¶
func (m *MockDevices) FindByAccount(ctx context.Context, acc service.Account) ([]service.Device, error)
FindByAccount mocks base method.
func (*MockDevices) FindByDeviceID ¶
func (m *MockDevices) FindByDeviceID(ctx context.Context, acc service.Account, deviceId service.DeviceID) (service.Device, error)
FindByDeviceID 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) FindByAccount ¶
func (mr *MockDevicesMockRecorder) FindByAccount(ctx, acc interface{}) *gomock.Call
FindByAccount indicates an expected call of FindByAccount.
func (*MockDevicesMockRecorder) FindByDeviceID ¶
func (mr *MockDevicesMockRecorder) FindByDeviceID(ctx, acc, deviceId interface{}) *gomock.Call
FindByDeviceID indicates an expected call of FindByDeviceID.
func (*MockDevicesMockRecorder) HealthCheck ¶
func (mr *MockDevicesMockRecorder) HealthCheck() *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockDevicesMockRecorder) Register ¶
func (mr *MockDevicesMockRecorder) Register(ctx, acc, deviceId interface{}) *gomock.Call
Register indicates an expected call of Register.
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.
func (*MockHealthMockRecorder) Check ¶
func (mr *MockHealthMockRecorder) Check(ctx interface{}) *gomock.Call
Check indicates an expected call of Check.
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) 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) Get ¶
func (mr *MockModulesMockRecorder) Get(ctx, name interface{}) *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.
func (*MockModulesMockRecorder) Set ¶
func (mr *MockModulesMockRecorder) Set(ctx, name, module interface{}) *gomock.Call
Set indicates an expected call of Set.