mocks

package
v1.0.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 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 mockConstructorTestingTNewClient) *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.

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

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

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

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

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t mockConstructorTestingTNewFactory) *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.

func (*Factory) NewClient

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

NewClient provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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