sshutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 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 MockSSHKeyParser added in v0.1.8

type MockSSHKeyParser struct {
	mock.Mock
}

MockSSHKeyParser is an autogenerated mock type for the SSHKeyParser type

func NewMockSSHKeyParser added in v0.1.8

func NewMockSSHKeyParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSSHKeyParser

NewMockSSHKeyParser creates a new instance of MockSSHKeyParser. 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 (*MockSSHKeyParser) EXPECT added in v0.1.8

func (*MockSSHKeyParser) Parse added in v0.1.8

func (_m *MockSSHKeyParser) Parse(keyPath string) ssh.Signer

Parse provides a mock function with given fields: keyPath

type MockSSHKeyParser_Expecter added in v0.1.8

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

func (*MockSSHKeyParser_Expecter) Parse added in v0.1.8

func (_e *MockSSHKeyParser_Expecter) Parse(keyPath interface{}) *MockSSHKeyParser_Parse_Call

Parse is a helper method to define mock.On call

  • keyPath string

type MockSSHKeyParser_Parse_Call added in v0.1.8

type MockSSHKeyParser_Parse_Call struct {
	*mock.Call
}

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

func (*MockSSHKeyParser_Parse_Call) Return added in v0.1.8

func (*MockSSHKeyParser_Parse_Call) Run added in v0.1.8

func (*MockSSHKeyParser_Parse_Call) RunAndReturn added in v0.1.8

type MockSshManager

type MockSshManager struct {
	mock.Mock
}

MockSshManager is an autogenerated mock type for the SshManager type

func NewMockSshManager

func NewMockSshManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSshManager

NewMockSshManager creates a new instance of MockSshManager. 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 (*MockSshManager) DeregisterOS added in v0.1.8

func (_m *MockSshManager) DeregisterOS() error

DeregisterOS provides a mock function with no fields

func (*MockSshManager) EXPECT

func (*MockSshManager) ExecuteScript

func (_m *MockSshManager) ExecuteScript(scriptPath string, scriptContent string, postRemove bool, runWithSudo bool) error

ExecuteScript provides a mock function with given fields: scriptPath, scriptContent, postRemove, runWithSudo

func (*MockSshManager) HostPublicKeyIsValid added in v1.0.0

func (_m *MockSshManager) HostPublicKeyIsValid(maxAttempts int) error

HostPublicKeyIsValid provides a mock function with given fields: maxAttempts

func (*MockSshManager) IsReady added in v1.0.0

func (_m *MockSshManager) IsReady() bool

IsReady provides a mock function with no fields

func (*MockSshManager) RebootCloudInit

func (_m *MockSshManager) RebootCloudInit() error

RebootCloudInit provides a mock function with no fields

func (*MockSshManager) WriteFileOnRemoteMachine

func (_m *MockSshManager) WriteFileOnRemoteMachine(path string, fileContent string, fileMode fs.FileMode) error

WriteFileOnRemoteMachine provides a mock function with given fields: path, fileContent, fileMode

type MockSshManager_DeregisterOS_Call added in v0.1.8

type MockSshManager_DeregisterOS_Call struct {
	*mock.Call
}

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

func (*MockSshManager_DeregisterOS_Call) Return added in v0.1.8

func (*MockSshManager_DeregisterOS_Call) Run added in v0.1.8

func (*MockSshManager_DeregisterOS_Call) RunAndReturn added in v0.1.8

type MockSshManager_ExecuteScript_Call

type MockSshManager_ExecuteScript_Call struct {
	*mock.Call
}

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

func (*MockSshManager_ExecuteScript_Call) Return

func (*MockSshManager_ExecuteScript_Call) Run

func (_c *MockSshManager_ExecuteScript_Call) Run(run func(scriptPath string, scriptContent string, postRemove bool, runWithSudo bool)) *MockSshManager_ExecuteScript_Call

func (*MockSshManager_ExecuteScript_Call) RunAndReturn

type MockSshManager_Expecter

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

func (*MockSshManager_Expecter) DeregisterOS added in v0.1.8

DeregisterOS is a helper method to define mock.On call

func (*MockSshManager_Expecter) ExecuteScript

func (_e *MockSshManager_Expecter) ExecuteScript(scriptPath interface{}, scriptContent interface{}, postRemove interface{}, runWithSudo interface{}) *MockSshManager_ExecuteScript_Call

ExecuteScript is a helper method to define mock.On call

  • scriptPath string
  • scriptContent string
  • postRemove bool
  • runWithSudo bool

func (*MockSshManager_Expecter) HostPublicKeyIsValid added in v1.0.0

func (_e *MockSshManager_Expecter) HostPublicKeyIsValid(maxAttempts interface{}) *MockSshManager_HostPublicKeyIsValid_Call

HostPublicKeyIsValid is a helper method to define mock.On call

  • maxAttempts int

func (*MockSshManager_Expecter) IsReady added in v1.0.0

IsReady is a helper method to define mock.On call

func (*MockSshManager_Expecter) RebootCloudInit

RebootCloudInit is a helper method to define mock.On call

func (*MockSshManager_Expecter) WriteFileOnRemoteMachine

func (_e *MockSshManager_Expecter) WriteFileOnRemoteMachine(path interface{}, fileContent interface{}, fileMode interface{}) *MockSshManager_WriteFileOnRemoteMachine_Call

WriteFileOnRemoteMachine is a helper method to define mock.On call

  • path string
  • fileContent string
  • fileMode fs.FileMode

type MockSshManager_HostPublicKeyIsValid_Call added in v1.0.0

type MockSshManager_HostPublicKeyIsValid_Call struct {
	*mock.Call
}

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

func (*MockSshManager_HostPublicKeyIsValid_Call) Return added in v1.0.0

func (*MockSshManager_HostPublicKeyIsValid_Call) Run added in v1.0.0

func (*MockSshManager_HostPublicKeyIsValid_Call) RunAndReturn added in v1.0.0

type MockSshManager_IsReady_Call added in v1.0.0

type MockSshManager_IsReady_Call struct {
	*mock.Call
}

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

func (*MockSshManager_IsReady_Call) Return added in v1.0.0

func (*MockSshManager_IsReady_Call) Run added in v1.0.0

func (*MockSshManager_IsReady_Call) RunAndReturn added in v1.0.0

func (_c *MockSshManager_IsReady_Call) RunAndReturn(run func() bool) *MockSshManager_IsReady_Call

type MockSshManager_RebootCloudInit_Call

type MockSshManager_RebootCloudInit_Call struct {
	*mock.Call
}

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

func (*MockSshManager_RebootCloudInit_Call) Return

func (*MockSshManager_RebootCloudInit_Call) Run

func (*MockSshManager_RebootCloudInit_Call) RunAndReturn

type MockSshManager_WriteFileOnRemoteMachine_Call

type MockSshManager_WriteFileOnRemoteMachine_Call struct {
	*mock.Call
}

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

func (*MockSshManager_WriteFileOnRemoteMachine_Call) Return

func (*MockSshManager_WriteFileOnRemoteMachine_Call) Run

func (*MockSshManager_WriteFileOnRemoteMachine_Call) RunAndReturn

Jump to

Keyboard shortcuts

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