mocks

package
v0.0.0-...-7ae29b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForType

func ForType(t component.Type) interface{}

ForType returns an implementation of the given type that supports mocking.

func Mock

func Mock(v interface{}) *mock.Mock

Mock returns the Mock field for the given interface. The interface value should be one of the mocks in this package. This will panic if an incorrect value is given, error checking is not done.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is an autogenerated mock type for the Authenticator type

func NewAuthenticator

func NewAuthenticator(t mockConstructorTestingTNewAuthenticator) *Authenticator

NewAuthenticator creates a new instance of Authenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Authenticator) AuthFunc

func (_m *Authenticator) AuthFunc() interface{}

AuthFunc provides a mock function with given fields:

func (*Authenticator) ValidateAuthFunc

func (_m *Authenticator) ValidateAuthFunc() interface{}

ValidateAuthFunc provides a mock function with given fields:

type CapabilityHost

type CapabilityHost struct {
	mock.Mock
}

CapabilityHost is an autogenerated mock type for the CapabilityHost type

func (*CapabilityHost) CapabilityFunc

func (_m *CapabilityHost) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*CapabilityHost) HasCapabilityFunc

func (_m *CapabilityHost) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

func (*CapabilityHost) ParentsFunc

func (_m *CapabilityHost) ParentsFunc() interface{}

ParentsFunc provides a mock function with given fields:

type CapabilityPlatform

type CapabilityPlatform struct {
	mock.Mock
}

CapabilityPlatform is an autogenerated mock type for the CapabilityPlatform type

func NewCapabilityPlatform

func NewCapabilityPlatform(t mockConstructorTestingTNewCapabilityPlatform) *CapabilityPlatform

NewCapabilityPlatform creates a new instance of CapabilityPlatform. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CapabilityPlatform) CapabilityFunc

func (_m *CapabilityPlatform) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*CapabilityPlatform) HasCapabilityFunc

func (_m *CapabilityPlatform) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t mockConstructorTestingTNewCommand) *Command

NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Command) CommandInfoFunc

func (_m *Command) CommandInfoFunc() interface{}

CommandInfoFunc provides a mock function with given fields:

func (*Command) ExecuteFunc

func (_m *Command) ExecuteFunc(_a0 []string) interface{}

ExecuteFunc provides a mock function with given fields: _a0

type Communicator

type Communicator struct {
	mock.Mock
}

Communicator is an autogenerated mock type for the Communicator type

func NewCommunicator

func NewCommunicator(t mockConstructorTestingTNewCommunicator) *Communicator

NewCommunicator creates a new instance of Communicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Communicator) DownloadFunc

func (_m *Communicator) DownloadFunc() interface{}

DownloadFunc provides a mock function with given fields:

func (*Communicator) ExecuteFunc

func (_m *Communicator) ExecuteFunc() interface{}

ExecuteFunc provides a mock function with given fields:

func (*Communicator) InitFunc

func (_m *Communicator) InitFunc() interface{}

InitFunc provides a mock function with given fields:

func (*Communicator) MatchFunc

func (_m *Communicator) MatchFunc() interface{}

MatchFunc provides a mock function with given fields:

func (*Communicator) PrivilegedExecuteFunc

func (_m *Communicator) PrivilegedExecuteFunc() interface{}

PrivilegedExecuteFunc provides a mock function with given fields:

func (*Communicator) ReadyFunc

func (_m *Communicator) ReadyFunc() interface{}

ReadyFunc provides a mock function with given fields:

func (*Communicator) ResetFunc

func (_m *Communicator) ResetFunc() interface{}

ResetFunc provides a mock function with given fields:

func (*Communicator) TestFunc

func (_m *Communicator) TestFunc() interface{}

TestFunc provides a mock function with given fields:

func (*Communicator) UploadFunc

func (_m *Communicator) UploadFunc() interface{}

UploadFunc provides a mock function with given fields:

func (*Communicator) WaitForReadyFunc

func (_m *Communicator) WaitForReadyFunc() interface{}

WaitForReadyFunc provides a mock function with given fields:

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func NewConfig

func NewConfig(t mockConstructorTestingTNewConfig) *Config

NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Config) FinalizeFunc

func (_m *Config) FinalizeFunc() interface{}

FinalizeFunc provides a mock function with given fields:

func (*Config) MergeFunc

func (_m *Config) MergeFunc() interface{}

MergeFunc provides a mock function with given fields:

func (*Config) Register

func (_m *Config) Register() (*component.ConfigRegistration, error)

Register provides a mock function with given fields:

func (*Config) StructFunc

func (_m *Config) StructFunc() interface{}

StructFunc provides a mock function with given fields:

type Configurable

type Configurable struct {
	mock.Mock
}

Configurable is an autogenerated mock type for the Configurable type

func NewConfigurable

func NewConfigurable(t mockConstructorTestingTNewConfigurable) *Configurable

NewConfigurable creates a new instance of Configurable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Configurable) Config

func (_m *Configurable) Config() (interface{}, error)

Config provides a mock function with given fields:

func (*Configurable) Finalize

func (_m *Configurable) Finalize() (interface{}, error)

Finalize provides a mock function with given fields:

func (*Configurable) Merge

func (_m *Configurable) Merge() (interface{}, error)

Merge provides a mock function with given fields:

func (*Configurable) Reconfig

func (_m *Configurable) Reconfig() (interface{}, error)

Reconfig provides a mock function with given fields:

func (*Configurable) Register

func (_m *Configurable) Register() (*component.ConfigRegistration, error)

Register provides a mock function with given fields:

type ConfigurableNotify

type ConfigurableNotify struct {
	mock.Mock
}

ConfigurableNotify is an autogenerated mock type for the ConfigurableNotify type

func NewConfigurableNotify

func NewConfigurableNotify(t mockConstructorTestingTNewConfigurableNotify) *ConfigurableNotify

NewConfigurableNotify creates a new instance of ConfigurableNotify. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigurableNotify) Config

func (_m *ConfigurableNotify) Config() (interface{}, error)

Config provides a mock function with given fields:

func (*ConfigurableNotify) ConfigSet

func (_m *ConfigurableNotify) ConfigSet(_a0 interface{}) error

ConfigSet provides a mock function with given fields: _a0

func (*ConfigurableNotify) Finalize

func (_m *ConfigurableNotify) Finalize() (interface{}, error)

Finalize provides a mock function with given fields:

func (*ConfigurableNotify) Merge

func (_m *ConfigurableNotify) Merge() (interface{}, error)

Merge provides a mock function with given fields:

func (*ConfigurableNotify) Reconfig

func (_m *ConfigurableNotify) Reconfig() (interface{}, error)

Reconfig provides a mock function with given fields:

func (*ConfigurableNotify) Register

Register provides a mock function with given fields:

type Documented

type Documented struct {
	mock.Mock
}

Documented is an autogenerated mock type for the Documented type

func NewDocumented

func NewDocumented(t mockConstructorTestingTNewDocumented) *Documented

NewDocumented creates a new instance of Documented. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Documented) Documentation

func (_m *Documented) Documentation() (*docs.Documentation, error)

Documentation provides a mock function with given fields:

type Downloader

type Downloader struct {
	mock.Mock
}

Downloader is an autogenerated mock type for the Downloader type

func NewDownloader

func NewDownloader(t mockConstructorTestingTNewDownloader) *Downloader

NewDownloader creates a new instance of Downloader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Downloader) DownloadFunc

func (_m *Downloader) DownloadFunc() interface{}

DownloadFunc provides a mock function with given fields:

type Guest

type Guest struct {
	mock.Mock
}

Guest is an autogenerated mock type for the Guest type

func NewGuest

func NewGuest(t mockConstructorTestingTNewGuest) *Guest

NewGuest creates a new instance of Guest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Guest) CapabilityFunc

func (_m *Guest) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*Guest) GuestDetectFunc

func (_m *Guest) GuestDetectFunc() interface{}

GuestDetectFunc provides a mock function with given fields:

func (*Guest) HasCapabilityFunc

func (_m *Guest) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

func (*Guest) ParentFunc

func (_m *Guest) ParentFunc() interface{}

ParentFunc provides a mock function with given fields:

type Host

type Host struct {
	mock.Mock
}

Host is an autogenerated mock type for the Host type

func NewHost

func NewHost(t mockConstructorTestingTNewHost) *Host

NewHost creates a new instance of Host. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Host) CapabilityFunc

func (_m *Host) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*Host) HasCapabilityFunc

func (_m *Host) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

func (*Host) HostDetectFunc

func (_m *Host) HostDetectFunc() interface{}

HostDetectFunc provides a mock function with given fields:

func (*Host) ParentFunc

func (_m *Host) ParentFunc() interface{}

ParentFunc provides a mock function with given fields:

type LogPlatform

type LogPlatform struct {
	mock.Mock
}

LogPlatform is an autogenerated mock type for the LogPlatform type

func NewLogPlatform

func NewLogPlatform(t mockConstructorTestingTNewLogPlatform) *LogPlatform

NewLogPlatform creates a new instance of LogPlatform. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LogPlatform) LogsFunc

func (_m *LogPlatform) LogsFunc() interface{}

LogsFunc provides a mock function with given fields:

type LogViewer

type LogViewer struct {
	mock.Mock
}

LogViewer is an autogenerated mock type for the LogViewer type

func NewLogViewer

func NewLogViewer(t mockConstructorTestingTNewLogViewer) *LogViewer

NewLogViewer creates a new instance of LogViewer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LogViewer) NextLogBatch

func (_m *LogViewer) NextLogBatch(ctx context.Context) ([]component.LogEvent, error)

NextLogBatch provides a mock function with given fields: ctx

type PluginInfo

type PluginInfo struct {
	mock.Mock
}

PluginInfo is an autogenerated mock type for the PluginInfo type

func NewPluginInfo

func NewPluginInfo(t mockConstructorTestingTNewPluginInfo) *PluginInfo

NewPluginInfo creates a new instance of PluginInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PluginInfo) ComponentOptions

func (_m *PluginInfo) ComponentOptions() map[component.Type]interface{}

ComponentOptions provides a mock function with given fields:

func (*PluginInfo) ComponentTypes

func (_m *PluginInfo) ComponentTypes() []component.Type

ComponentTypes provides a mock function with given fields:

func (*PluginInfo) Name

func (_m *PluginInfo) Name() string

Name provides a mock function with given fields:

type ProtoMarshaler

type ProtoMarshaler struct {
	mock.Mock
}

ProtoMarshaler is an autogenerated mock type for the ProtoMarshaler type

func NewProtoMarshaler

func NewProtoMarshaler(t mockConstructorTestingTNewProtoMarshaler) *ProtoMarshaler

NewProtoMarshaler creates a new instance of ProtoMarshaler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProtoMarshaler) Proto

Proto provides a mock function with given fields:

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provider) ActionFunc

func (_m *Provider) ActionFunc(actionName string) interface{}

ActionFunc provides a mock function with given fields: actionName

func (*Provider) CapabilityFunc

func (_m *Provider) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*Provider) HasCapabilityFunc

func (_m *Provider) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

func (*Provider) InstalledFunc

func (_m *Provider) InstalledFunc() interface{}

InstalledFunc provides a mock function with given fields:

func (*Provider) MachineIdChangedFunc

func (_m *Provider) MachineIdChangedFunc() interface{}

MachineIdChangedFunc provides a mock function with given fields:

func (*Provider) SshInfoFunc

func (_m *Provider) SshInfoFunc() interface{}

SshInfoFunc provides a mock function with given fields:

func (*Provider) StateFunc

func (_m *Provider) StateFunc() interface{}

StateFunc provides a mock function with given fields:

func (*Provider) UsableFunc

func (_m *Provider) UsableFunc() interface{}

UsableFunc provides a mock function with given fields:

type Provisioner

type Provisioner struct {
	mock.Mock
}

Provisioner is an autogenerated mock type for the Provisioner type

func NewProvisioner

func NewProvisioner(t mockConstructorTestingTNewProvisioner) *Provisioner

NewProvisioner creates a new instance of Provisioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provisioner) CleanupFunc

func (_m *Provisioner) CleanupFunc() interface{}

CleanupFunc provides a mock function with given fields:

func (*Provisioner) ConfigureFunc

func (_m *Provisioner) ConfigureFunc() interface{}

ConfigureFunc provides a mock function with given fields:

func (*Provisioner) ProvisionFunc

func (_m *Provisioner) ProvisionFunc() interface{}

ProvisionFunc provides a mock function with given fields:

type Push

type Push struct {
	mock.Mock
}

Push is an autogenerated mock type for the Push type

func NewPush

func NewPush(t mockConstructorTestingTNewPush) *Push

NewPush creates a new instance of Push. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Push) PushFunc

func (_m *Push) PushFunc() interface{}

PushFunc provides a mock function with given fields:

type SyncedFolder

type SyncedFolder struct {
	mock.Mock
}

SyncedFolder is an autogenerated mock type for the SyncedFolder type

func NewSyncedFolder

func NewSyncedFolder(t mockConstructorTestingTNewSyncedFolder) *SyncedFolder

NewSyncedFolder creates a new instance of SyncedFolder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SyncedFolder) CapabilityFunc

func (_m *SyncedFolder) CapabilityFunc(capName string) interface{}

CapabilityFunc provides a mock function with given fields: capName

func (*SyncedFolder) CleanupFunc

func (_m *SyncedFolder) CleanupFunc() interface{}

CleanupFunc provides a mock function with given fields:

func (*SyncedFolder) DisableFunc

func (_m *SyncedFolder) DisableFunc() interface{}

DisableFunc provides a mock function with given fields:

func (*SyncedFolder) EnableFunc

func (_m *SyncedFolder) EnableFunc() interface{}

EnableFunc provides a mock function with given fields:

func (*SyncedFolder) HasCapabilityFunc

func (_m *SyncedFolder) HasCapabilityFunc() interface{}

HasCapabilityFunc provides a mock function with given fields:

func (*SyncedFolder) PrepareFunc

func (_m *SyncedFolder) PrepareFunc() interface{}

PrepareFunc provides a mock function with given fields:

func (*SyncedFolder) UsableFunc

func (_m *SyncedFolder) UsableFunc() interface{}

UsableFunc provides a mock function with given fields:

Jump to

Keyboard shortcuts

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