mocks

package
v1.0.0-beta.37 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 2 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) 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) CreateMetaData

func (_m *Client) CreateMetaData(hostName string) sshclient.Output

CreateMetaData provides a mock function with given fields: hostName

func (*Client) CreateNoCloudDirectory

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

CreateNoCloudDirectory provides a mock function with given fields:

func (*Client) CreatePostInstallScript

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

CreatePostInstallScript provides a mock function with given fields: data

func (*Client) CreateUserData

func (_m *Client) CreateUserData(userData string) sshclient.Output

CreateUserData provides a mock function with given fields: userData

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

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

EnsureCloudInit provides a mock function with given fields:

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

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

GetRunningInstallImageProcesses 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:

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_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_CreateMetaData_Call

type Client_CreateMetaData_Call struct {
	*mock.Call
}

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

func (*Client_CreateMetaData_Call) Return

func (*Client_CreateMetaData_Call) Run

func (_c *Client_CreateMetaData_Call) Run(run func(hostName string)) *Client_CreateMetaData_Call

func (*Client_CreateMetaData_Call) RunAndReturn

type Client_CreateNoCloudDirectory_Call

type Client_CreateNoCloudDirectory_Call struct {
	*mock.Call
}

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

func (*Client_CreateNoCloudDirectory_Call) Return

func (*Client_CreateNoCloudDirectory_Call) Run

func (*Client_CreateNoCloudDirectory_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_CreateUserData_Call

type Client_CreateUserData_Call struct {
	*mock.Call
}

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

func (*Client_CreateUserData_Call) Return

func (*Client_CreateUserData_Call) Run

func (_c *Client_CreateUserData_Call) Run(run func(userData string)) *Client_CreateUserData_Call

func (*Client_CreateUserData_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_EnsureCloudInit_Call

type Client_EnsureCloudInit_Call struct {
	*mock.Call
}

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

func (*Client_EnsureCloudInit_Call) Return

func (*Client_EnsureCloudInit_Call) Run

func (*Client_EnsureCloudInit_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) 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) CreateMetaData

func (_e *Client_Expecter) CreateMetaData(hostName interface{}) *Client_CreateMetaData_Call

CreateMetaData is a helper method to define mock.On call

  • hostName string

func (*Client_Expecter) CreateNoCloudDirectory

func (_e *Client_Expecter) CreateNoCloudDirectory() *Client_CreateNoCloudDirectory_Call

CreateNoCloudDirectory is a helper method to define mock.On call

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

func (_e *Client_Expecter) CreateUserData(userData interface{}) *Client_CreateUserData_Call

CreateUserData is a helper method to define mock.On call

  • userData 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) EnsureCloudInit

func (_e *Client_Expecter) EnsureCloudInit() *Client_EnsureCloudInit_Call

EnsureCloudInit is a helper method to define mock.On call

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

func (_e *Client_Expecter) GetRunningInstallImageProcesses() *Client_GetRunningInstallImageProcesses_Call

GetRunningInstallImageProcesses 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

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_GetRunningInstallImageProcesses_Call

type Client_GetRunningInstallImageProcesses_Call struct {
	*mock.Call
}

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

func (*Client_GetRunningInstallImageProcesses_Call) Return

func (*Client_GetRunningInstallImageProcesses_Call) Run

func (*Client_GetRunningInstallImageProcesses_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 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