mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) CheckCloudInitLogsForSigTerm

func (_m *Client) CheckCloudInitLogsForSigTerm() sshclient.Output

CheckCloudInitLogsForSigTerm provides a mock function with given fields:

func (*Client) CheckDisk

func (_m *Client) CheckDisk(ctx context.Context, sliceOfWwns []string) (string, error)

CheckDisk provides a mock function with given fields: ctx, sliceOfWwns

func (*Client) CleanCloudInitInstances

func (_m *Client) CleanCloudInitInstances() sshclient.Output

CleanCloudInitInstances provides a mock function with given fields:

func (*Client) CleanCloudInitLogs

func (_m *Client) CleanCloudInitLogs() sshclient.Output

CleanCloudInitLogs provides a mock function with given fields:

func (*Client) CloudInitStatus

func (_m *Client) CloudInitStatus() sshclient.Output

CloudInitStatus provides a mock function with given fields:

func (*Client) CreateAutoSetup

func (_m *Client) CreateAutoSetup(data string) sshclient.Output

CreateAutoSetup provides a mock function with given fields: data

func (*Client) CreatePostInstallScript

func (_m *Client) CreatePostInstallScript(data string) sshclient.Output

CreatePostInstallScript provides a mock function with given fields: data

func (*Client) DetectLinuxOnAnotherDisk

func (_m *Client) DetectLinuxOnAnotherDisk(sliceOfWwns []string) sshclient.Output

DetectLinuxOnAnotherDisk provides a mock function with given fields: sliceOfWwns

func (*Client) DownloadImage

func (_m *Client) DownloadImage(path string, url string) sshclient.Output

DownloadImage provides a mock function with given fields: path, url

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) ExecuteInstallImage

func (_m *Client) ExecuteInstallImage(hasPostInstallScript bool) sshclient.Output

ExecuteInstallImage provides a mock function with given fields: hasPostInstallScript

func (*Client) GetCloudInitOutput

func (_m *Client) GetCloudInitOutput() sshclient.Output

GetCloudInitOutput provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUArch

func (_m *Client) GetHardwareDetailsCPUArch() sshclient.Output

GetHardwareDetailsCPUArch provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUClockGigahertz

func (_m *Client) GetHardwareDetailsCPUClockGigahertz() sshclient.Output

GetHardwareDetailsCPUClockGigahertz provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUCores

func (_m *Client) GetHardwareDetailsCPUCores() sshclient.Output

GetHardwareDetailsCPUCores provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUFlags

func (_m *Client) GetHardwareDetailsCPUFlags() sshclient.Output

GetHardwareDetailsCPUFlags provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUModel

func (_m *Client) GetHardwareDetailsCPUModel() sshclient.Output

GetHardwareDetailsCPUModel provides a mock function with given fields:

func (*Client) GetHardwareDetailsCPUThreads

func (_m *Client) GetHardwareDetailsCPUThreads() sshclient.Output

GetHardwareDetailsCPUThreads provides a mock function with given fields:

func (*Client) GetHardwareDetailsDebug

func (_m *Client) GetHardwareDetailsDebug() sshclient.Output

GetHardwareDetailsDebug provides a mock function with given fields:

func (*Client) GetHardwareDetailsNics

func (_m *Client) GetHardwareDetailsNics() sshclient.Output

GetHardwareDetailsNics provides a mock function with given fields:

func (*Client) GetHardwareDetailsRAM

func (_m *Client) GetHardwareDetailsRAM() sshclient.Output

GetHardwareDetailsRAM provides a mock function with given fields:

func (*Client) GetHardwareDetailsStorage

func (_m *Client) GetHardwareDetailsStorage() sshclient.Output

GetHardwareDetailsStorage provides a mock function with given fields:

func (*Client) GetHostName

func (_m *Client) GetHostName() sshclient.Output

GetHostName provides a mock function with given fields:

func (*Client) GetInstallImageState

func (_m *Client) GetInstallImageState() (sshclient.InstallImageState, error)

GetInstallImageState provides a mock function with given fields:

func (*Client) GetResultOfInstallImage

func (_m *Client) GetResultOfInstallImage() (string, error)

GetResultOfInstallImage provides a mock function with given fields:

func (*Client) Reboot

func (_m *Client) Reboot() sshclient.Output

Reboot provides a mock function with given fields:

func (*Client) ResetKubeadm

func (_m *Client) ResetKubeadm() sshclient.Output

ResetKubeadm provides a mock function with given fields:

func (*Client) UntarTGZ

func (_m *Client) UntarTGZ() sshclient.Output

UntarTGZ provides a mock function with given fields:

func (*Client) WipeDisk

func (_m *Client) WipeDisk(ctx context.Context, sliceOfWwns []string) (string, error)

WipeDisk provides a mock function with given fields: ctx, sliceOfWwns

type Client_CheckCloudInitLogsForSigTerm_Call

type Client_CheckCloudInitLogsForSigTerm_Call struct {
	*mock.Call
}

Client_CheckCloudInitLogsForSigTerm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckCloudInitLogsForSigTerm'

func (*Client_CheckCloudInitLogsForSigTerm_Call) Return

func (*Client_CheckCloudInitLogsForSigTerm_Call) Run

func (*Client_CheckCloudInitLogsForSigTerm_Call) RunAndReturn

type Client_CheckDisk_Call

type Client_CheckDisk_Call struct {
	*mock.Call
}

Client_CheckDisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckDisk'

func (*Client_CheckDisk_Call) Return

func (*Client_CheckDisk_Call) Run

func (_c *Client_CheckDisk_Call) Run(run func(ctx context.Context, sliceOfWwns []string)) *Client_CheckDisk_Call

func (*Client_CheckDisk_Call) RunAndReturn

func (_c *Client_CheckDisk_Call) RunAndReturn(run func(context.Context, []string) (string, error)) *Client_CheckDisk_Call

type Client_CleanCloudInitInstances_Call

type Client_CleanCloudInitInstances_Call struct {
	*mock.Call
}

Client_CleanCloudInitInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanCloudInitInstances'

func (*Client_CleanCloudInitInstances_Call) Return

func (*Client_CleanCloudInitInstances_Call) Run

func (*Client_CleanCloudInitInstances_Call) RunAndReturn

type Client_CleanCloudInitLogs_Call

type Client_CleanCloudInitLogs_Call struct {
	*mock.Call
}

Client_CleanCloudInitLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanCloudInitLogs'

func (*Client_CleanCloudInitLogs_Call) Return

func (*Client_CleanCloudInitLogs_Call) Run

func (*Client_CleanCloudInitLogs_Call) RunAndReturn

type Client_CloudInitStatus_Call

type Client_CloudInitStatus_Call struct {
	*mock.Call
}

Client_CloudInitStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloudInitStatus'

func (*Client_CloudInitStatus_Call) Return

func (*Client_CloudInitStatus_Call) Run

func (*Client_CloudInitStatus_Call) RunAndReturn

type Client_CreateAutoSetup_Call

type Client_CreateAutoSetup_Call struct {
	*mock.Call
}

Client_CreateAutoSetup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAutoSetup'

func (*Client_CreateAutoSetup_Call) Return

func (*Client_CreateAutoSetup_Call) Run

func (*Client_CreateAutoSetup_Call) RunAndReturn

type Client_CreatePostInstallScript_Call

type Client_CreatePostInstallScript_Call struct {
	*mock.Call
}

Client_CreatePostInstallScript_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePostInstallScript'

func (*Client_CreatePostInstallScript_Call) Return

func (*Client_CreatePostInstallScript_Call) Run

func (*Client_CreatePostInstallScript_Call) RunAndReturn

type Client_DetectLinuxOnAnotherDisk_Call

type Client_DetectLinuxOnAnotherDisk_Call struct {
	*mock.Call
}

Client_DetectLinuxOnAnotherDisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetectLinuxOnAnotherDisk'

func (*Client_DetectLinuxOnAnotherDisk_Call) Return

func (*Client_DetectLinuxOnAnotherDisk_Call) Run

func (*Client_DetectLinuxOnAnotherDisk_Call) RunAndReturn

type Client_DownloadImage_Call

type Client_DownloadImage_Call struct {
	*mock.Call
}

Client_DownloadImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DownloadImage'

func (*Client_DownloadImage_Call) Return

func (*Client_DownloadImage_Call) Run

func (_c *Client_DownloadImage_Call) Run(run func(path string, url string)) *Client_DownloadImage_Call

func (*Client_DownloadImage_Call) RunAndReturn

type Client_ExecuteInstallImage_Call

type Client_ExecuteInstallImage_Call struct {
	*mock.Call
}

Client_ExecuteInstallImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteInstallImage'

func (*Client_ExecuteInstallImage_Call) Return

func (*Client_ExecuteInstallImage_Call) Run

func (_c *Client_ExecuteInstallImage_Call) Run(run func(hasPostInstallScript bool)) *Client_ExecuteInstallImage_Call

func (*Client_ExecuteInstallImage_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CheckCloudInitLogsForSigTerm

func (_e *Client_Expecter) CheckCloudInitLogsForSigTerm() *Client_CheckCloudInitLogsForSigTerm_Call

CheckCloudInitLogsForSigTerm is a helper method to define mock.On call

func (*Client_Expecter) CheckDisk

func (_e *Client_Expecter) CheckDisk(ctx interface{}, sliceOfWwns interface{}) *Client_CheckDisk_Call

CheckDisk is a helper method to define mock.On call

  • ctx context.Context
  • sliceOfWwns []string

func (*Client_Expecter) CleanCloudInitInstances

func (_e *Client_Expecter) CleanCloudInitInstances() *Client_CleanCloudInitInstances_Call

CleanCloudInitInstances is a helper method to define mock.On call

func (*Client_Expecter) CleanCloudInitLogs

func (_e *Client_Expecter) CleanCloudInitLogs() *Client_CleanCloudInitLogs_Call

CleanCloudInitLogs is a helper method to define mock.On call

func (*Client_Expecter) CloudInitStatus

func (_e *Client_Expecter) CloudInitStatus() *Client_CloudInitStatus_Call

CloudInitStatus is a helper method to define mock.On call

func (*Client_Expecter) CreateAutoSetup

func (_e *Client_Expecter) CreateAutoSetup(data interface{}) *Client_CreateAutoSetup_Call

CreateAutoSetup is a helper method to define mock.On call

  • data string

func (*Client_Expecter) CreatePostInstallScript

func (_e *Client_Expecter) CreatePostInstallScript(data interface{}) *Client_CreatePostInstallScript_Call

CreatePostInstallScript is a helper method to define mock.On call

  • data string

func (*Client_Expecter) DetectLinuxOnAnotherDisk

func (_e *Client_Expecter) DetectLinuxOnAnotherDisk(sliceOfWwns interface{}) *Client_DetectLinuxOnAnotherDisk_Call

DetectLinuxOnAnotherDisk is a helper method to define mock.On call

  • sliceOfWwns []string

func (*Client_Expecter) DownloadImage

func (_e *Client_Expecter) DownloadImage(path interface{}, url interface{}) *Client_DownloadImage_Call

DownloadImage is a helper method to define mock.On call

  • path string
  • url string

func (*Client_Expecter) ExecuteInstallImage

func (_e *Client_Expecter) ExecuteInstallImage(hasPostInstallScript interface{}) *Client_ExecuteInstallImage_Call

ExecuteInstallImage is a helper method to define mock.On call

  • hasPostInstallScript bool

func (*Client_Expecter) GetCloudInitOutput

func (_e *Client_Expecter) GetCloudInitOutput() *Client_GetCloudInitOutput_Call

GetCloudInitOutput is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUArch

func (_e *Client_Expecter) GetHardwareDetailsCPUArch() *Client_GetHardwareDetailsCPUArch_Call

GetHardwareDetailsCPUArch is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUClockGigahertz

func (_e *Client_Expecter) GetHardwareDetailsCPUClockGigahertz() *Client_GetHardwareDetailsCPUClockGigahertz_Call

GetHardwareDetailsCPUClockGigahertz is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUCores

func (_e *Client_Expecter) GetHardwareDetailsCPUCores() *Client_GetHardwareDetailsCPUCores_Call

GetHardwareDetailsCPUCores is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUFlags

func (_e *Client_Expecter) GetHardwareDetailsCPUFlags() *Client_GetHardwareDetailsCPUFlags_Call

GetHardwareDetailsCPUFlags is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUModel

func (_e *Client_Expecter) GetHardwareDetailsCPUModel() *Client_GetHardwareDetailsCPUModel_Call

GetHardwareDetailsCPUModel is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsCPUThreads

func (_e *Client_Expecter) GetHardwareDetailsCPUThreads() *Client_GetHardwareDetailsCPUThreads_Call

GetHardwareDetailsCPUThreads is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsDebug

func (_e *Client_Expecter) GetHardwareDetailsDebug() *Client_GetHardwareDetailsDebug_Call

GetHardwareDetailsDebug is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsNics

func (_e *Client_Expecter) GetHardwareDetailsNics() *Client_GetHardwareDetailsNics_Call

GetHardwareDetailsNics is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsRAM

func (_e *Client_Expecter) GetHardwareDetailsRAM() *Client_GetHardwareDetailsRAM_Call

GetHardwareDetailsRAM is a helper method to define mock.On call

func (*Client_Expecter) GetHardwareDetailsStorage

func (_e *Client_Expecter) GetHardwareDetailsStorage() *Client_GetHardwareDetailsStorage_Call

GetHardwareDetailsStorage is a helper method to define mock.On call

func (*Client_Expecter) GetHostName

func (_e *Client_Expecter) GetHostName() *Client_GetHostName_Call

GetHostName is a helper method to define mock.On call

func (*Client_Expecter) GetInstallImageState

func (_e *Client_Expecter) GetInstallImageState() *Client_GetInstallImageState_Call

GetInstallImageState is a helper method to define mock.On call

func (*Client_Expecter) GetResultOfInstallImage

func (_e *Client_Expecter) GetResultOfInstallImage() *Client_GetResultOfInstallImage_Call

GetResultOfInstallImage is a helper method to define mock.On call

func (*Client_Expecter) Reboot

func (_e *Client_Expecter) Reboot() *Client_Reboot_Call

Reboot is a helper method to define mock.On call

func (*Client_Expecter) ResetKubeadm

func (_e *Client_Expecter) ResetKubeadm() *Client_ResetKubeadm_Call

ResetKubeadm is a helper method to define mock.On call

func (*Client_Expecter) UntarTGZ

func (_e *Client_Expecter) UntarTGZ() *Client_UntarTGZ_Call

UntarTGZ is a helper method to define mock.On call

func (*Client_Expecter) WipeDisk

func (_e *Client_Expecter) WipeDisk(ctx interface{}, sliceOfWwns interface{}) *Client_WipeDisk_Call

WipeDisk is a helper method to define mock.On call

  • ctx context.Context
  • sliceOfWwns []string

type Client_GetCloudInitOutput_Call

type Client_GetCloudInitOutput_Call struct {
	*mock.Call
}

Client_GetCloudInitOutput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCloudInitOutput'

func (*Client_GetCloudInitOutput_Call) Return

func (*Client_GetCloudInitOutput_Call) Run

func (*Client_GetCloudInitOutput_Call) RunAndReturn

type Client_GetHardwareDetailsCPUArch_Call

type Client_GetHardwareDetailsCPUArch_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUArch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUArch'

func (*Client_GetHardwareDetailsCPUArch_Call) Return

func (*Client_GetHardwareDetailsCPUArch_Call) Run

func (*Client_GetHardwareDetailsCPUArch_Call) RunAndReturn

type Client_GetHardwareDetailsCPUClockGigahertz_Call

type Client_GetHardwareDetailsCPUClockGigahertz_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUClockGigahertz_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUClockGigahertz'

func (*Client_GetHardwareDetailsCPUClockGigahertz_Call) Return

func (*Client_GetHardwareDetailsCPUClockGigahertz_Call) Run

func (*Client_GetHardwareDetailsCPUClockGigahertz_Call) RunAndReturn

type Client_GetHardwareDetailsCPUCores_Call

type Client_GetHardwareDetailsCPUCores_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUCores_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUCores'

func (*Client_GetHardwareDetailsCPUCores_Call) Return

func (*Client_GetHardwareDetailsCPUCores_Call) Run

func (*Client_GetHardwareDetailsCPUCores_Call) RunAndReturn

type Client_GetHardwareDetailsCPUFlags_Call

type Client_GetHardwareDetailsCPUFlags_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUFlags'

func (*Client_GetHardwareDetailsCPUFlags_Call) Return

func (*Client_GetHardwareDetailsCPUFlags_Call) Run

func (*Client_GetHardwareDetailsCPUFlags_Call) RunAndReturn

type Client_GetHardwareDetailsCPUModel_Call

type Client_GetHardwareDetailsCPUModel_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUModel'

func (*Client_GetHardwareDetailsCPUModel_Call) Return

func (*Client_GetHardwareDetailsCPUModel_Call) Run

func (*Client_GetHardwareDetailsCPUModel_Call) RunAndReturn

type Client_GetHardwareDetailsCPUThreads_Call

type Client_GetHardwareDetailsCPUThreads_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsCPUThreads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsCPUThreads'

func (*Client_GetHardwareDetailsCPUThreads_Call) Return

func (*Client_GetHardwareDetailsCPUThreads_Call) Run

func (*Client_GetHardwareDetailsCPUThreads_Call) RunAndReturn

type Client_GetHardwareDetailsDebug_Call

type Client_GetHardwareDetailsDebug_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsDebug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsDebug'

func (*Client_GetHardwareDetailsDebug_Call) Return

func (*Client_GetHardwareDetailsDebug_Call) Run

func (*Client_GetHardwareDetailsDebug_Call) RunAndReturn

type Client_GetHardwareDetailsNics_Call

type Client_GetHardwareDetailsNics_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsNics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsNics'

func (*Client_GetHardwareDetailsNics_Call) Return

func (*Client_GetHardwareDetailsNics_Call) Run

func (*Client_GetHardwareDetailsNics_Call) RunAndReturn

type Client_GetHardwareDetailsRAM_Call

type Client_GetHardwareDetailsRAM_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsRAM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsRAM'

func (*Client_GetHardwareDetailsRAM_Call) Return

func (*Client_GetHardwareDetailsRAM_Call) Run

func (*Client_GetHardwareDetailsRAM_Call) RunAndReturn

type Client_GetHardwareDetailsStorage_Call

type Client_GetHardwareDetailsStorage_Call struct {
	*mock.Call
}

Client_GetHardwareDetailsStorage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHardwareDetailsStorage'

func (*Client_GetHardwareDetailsStorage_Call) Return

func (*Client_GetHardwareDetailsStorage_Call) Run

func (*Client_GetHardwareDetailsStorage_Call) RunAndReturn

type Client_GetHostName_Call

type Client_GetHostName_Call struct {
	*mock.Call
}

Client_GetHostName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHostName'

func (*Client_GetHostName_Call) Return

func (*Client_GetHostName_Call) Run

func (_c *Client_GetHostName_Call) Run(run func()) *Client_GetHostName_Call

func (*Client_GetHostName_Call) RunAndReturn

func (_c *Client_GetHostName_Call) RunAndReturn(run func() sshclient.Output) *Client_GetHostName_Call

type Client_GetInstallImageState_Call

type Client_GetInstallImageState_Call struct {
	*mock.Call
}

Client_GetInstallImageState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstallImageState'

func (*Client_GetInstallImageState_Call) Return

func (*Client_GetInstallImageState_Call) Run

func (*Client_GetInstallImageState_Call) RunAndReturn

type Client_GetResultOfInstallImage_Call

type Client_GetResultOfInstallImage_Call struct {
	*mock.Call
}

Client_GetResultOfInstallImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResultOfInstallImage'

func (*Client_GetResultOfInstallImage_Call) Return

func (*Client_GetResultOfInstallImage_Call) Run

func (*Client_GetResultOfInstallImage_Call) RunAndReturn

type Client_Reboot_Call

type Client_Reboot_Call struct {
	*mock.Call
}

Client_Reboot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reboot'

func (*Client_Reboot_Call) Return

func (*Client_Reboot_Call) Run

func (_c *Client_Reboot_Call) Run(run func()) *Client_Reboot_Call

func (*Client_Reboot_Call) RunAndReturn

func (_c *Client_Reboot_Call) RunAndReturn(run func() sshclient.Output) *Client_Reboot_Call

type Client_ResetKubeadm_Call

type Client_ResetKubeadm_Call struct {
	*mock.Call
}

Client_ResetKubeadm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResetKubeadm'

func (*Client_ResetKubeadm_Call) Return

func (*Client_ResetKubeadm_Call) Run

func (*Client_ResetKubeadm_Call) RunAndReturn

func (_c *Client_ResetKubeadm_Call) RunAndReturn(run func() sshclient.Output) *Client_ResetKubeadm_Call

type Client_UntarTGZ_Call

type Client_UntarTGZ_Call struct {
	*mock.Call
}

Client_UntarTGZ_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UntarTGZ'

func (*Client_UntarTGZ_Call) Return

func (*Client_UntarTGZ_Call) Run

func (_c *Client_UntarTGZ_Call) Run(run func()) *Client_UntarTGZ_Call

func (*Client_UntarTGZ_Call) RunAndReturn

func (_c *Client_UntarTGZ_Call) RunAndReturn(run func() sshclient.Output) *Client_UntarTGZ_Call

type Client_WipeDisk_Call

type Client_WipeDisk_Call struct {
	*mock.Call
}

Client_WipeDisk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WipeDisk'

func (*Client_WipeDisk_Call) Return

func (_c *Client_WipeDisk_Call) Return(_a0 string, _a1 error) *Client_WipeDisk_Call

func (*Client_WipeDisk_Call) Run

func (_c *Client_WipeDisk_Call) Run(run func(ctx context.Context, sliceOfWwns []string)) *Client_WipeDisk_Call

func (*Client_WipeDisk_Call) RunAndReturn

func (_c *Client_WipeDisk_Call) RunAndReturn(run func(context.Context, []string) (string, error)) *Client_WipeDisk_Call

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Factory) EXPECT

func (_m *Factory) EXPECT() *Factory_Expecter

func (*Factory) NewClient

func (_m *Factory) NewClient(_a0 sshclient.Input) sshclient.Client

NewClient provides a mock function with given fields: _a0

type Factory_Expecter

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

func (*Factory_Expecter) NewClient

func (_e *Factory_Expecter) NewClient(_a0 interface{}) *Factory_NewClient_Call

NewClient is a helper method to define mock.On call

  • _a0 sshclient.Input

type Factory_NewClient_Call

type Factory_NewClient_Call struct {
	*mock.Call
}

Factory_NewClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewClient'

func (*Factory_NewClient_Call) Return

func (*Factory_NewClient_Call) Run

func (*Factory_NewClient_Call) RunAndReturn

Jump to

Keyboard shortcuts

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