mock

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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.

func (*MockAccount) Username

func (m *MockAccount) Username() string

Username 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

func (m *MockAccounts) ActiveShares(ctx context.Context, username string) ([]string, error)

ActiveShares mocks base method.

func (*MockAccounts) EXPECT

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

func (*MockAccounts) Find

func (m *MockAccounts) Find(ctx context.Context, username string) (service.Account, error)

Find mocks base method.

func (*MockAccounts) HealthCheck

func (m *MockAccounts) HealthCheck() service.HealthCheck

HealthCheck mocks base method.

func (*MockAccounts) IsShared

func (m *MockAccounts) IsShared(ctx context.Context, username, share string) (bool, error)

IsShared mocks base method.

func (*MockAccounts) Register

func (m *MockAccounts) Register(ctx context.Context, username string) (service.Account, string, error)

Register mocks base method.

func (*MockAccounts) Revoke

func (m *MockAccounts) Revoke(ctx context.Context, username, shareCode string) error

Revoke mocks base method.

func (*MockAccounts) Share

func (m *MockAccounts) Share(ctx context.Context, username string) (string, error)

Share 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.

func (*MockDevice) ID

func (m *MockDevice) ID() service.DeviceID

ID mocks base method.

type MockDeviceMockRecorder

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

MockDeviceMockRecorder is the mock recorder for MockDevice.

func (*MockDeviceMockRecorder) ID

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.

func (*MockDevices) Register

func (m *MockDevices) Register(ctx context.Context, acc service.Account, deviceId service.DeviceID) (service.Device, error)

Register 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

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.

func (*MockModule) Raw

func (m *MockModule) Raw() io.Reader

Raw mocks base method.

func (*MockModule) Size

func (m *MockModule) Size() int

Size mocks base method.

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) Get

func (m *MockModules) Get(ctx context.Context, name string) (service.Module, error)

Get mocks base method.

func (*MockModules) HealthCheck

func (m *MockModules) HealthCheck() service.HealthCheck

HealthCheck mocks base method.

func (*MockModules) Set

func (m *MockModules) Set(ctx context.Context, name string, module service.Module) error

Set 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.

Jump to

Keyboard shortcuts

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