mock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

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.

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) 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) Create added in v0.2.1

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

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

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

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

ID 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

ID indicates an expected call of ID.

func (*MockDeviceMockRecorder) Verify added in v0.2.1

func (mr *MockDeviceMockRecorder) Verify(password any) *gomock.Call

Verify indicates an expected call of Verify.

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

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 any) *gomock.Call

Check indicates an expected call of Check.

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

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

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

func (*MockMetadataProvider) Get added in v0.4.0

Get mocks base method.

func (*MockMetadataProvider) Set added in v0.4.0

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

func (*MockMetadataProviderMockRecorder) Get added in v0.4.0

func (mr *MockMetadataProviderMockRecorder) Get(ctx, id any) *gomock.Call

Get indicates an expected call of Get.

func (*MockMetadataProviderMockRecorder) Set added in v0.4.0

func (mr *MockMetadataProviderMockRecorder) Set(ctx, meta any) *gomock.Call

Set indicates an expected call of Set.

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

func (*MockModulesMockRecorder) Set

func (mr *MockModulesMockRecorder) Set(ctx, name, module any) *gomock.Call

Set indicates an expected call of Set.

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.

func (*MockSharing) Revoke added in v0.2.1

func (m *MockSharing) Revoke(ctx context.Context, shareCode service.ShareCode) error

Revoke mocks base method.

func (*MockSharing) Share added in v0.2.1

func (m *MockSharing) Share(ctx context.Context, account service.Account) (service.ShareCode, error)

Share mocks base method.

func (*MockSharing) Shared added in v0.2.4

func (m *MockSharing) Shared(ctx context.Context, shareCode service.ShareCode) (service.Account, error)

Shared mocks base method.

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.

func (*MockSharingMockRecorder) Share added in v0.2.1

func (mr *MockSharingMockRecorder) Share(ctx, account any) *gomock.Call

Share indicates an expected call of Share.

func (*MockSharingMockRecorder) Shared added in v0.2.4

func (mr *MockSharingMockRecorder) Shared(ctx, shareCode any) *gomock.Call

Shared indicates an expected call of Shared.

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

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

Generate indicates an expected call of Generate.

Jump to

Keyboard shortcuts

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