mocks

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClienter

type MockClienter struct {
	mock.Mock
}

MockClienter is an autogenerated mock type for the Clienter type

func NewMockClienter

func NewMockClienter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClienter

NewMockClienter creates a new instance of MockClienter. 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 (*MockClienter) EXPECT

func (_m *MockClienter) EXPECT() *MockClienter_Expecter

type MockClienter_Expecter

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

type MockClusterDeployerer

type MockClusterDeployerer struct {
	mock.Mock
}

MockClusterDeployerer is an autogenerated mock type for the ClusterDeployerer type

func NewMockClusterDeployerer

func NewMockClusterDeployerer(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClusterDeployerer

NewMockClusterDeployerer creates a new instance of MockClusterDeployerer. 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 (*MockClusterDeployerer) ApplyBacalhauConfigs

func (_m *MockClusterDeployerer) ApplyBacalhauConfigs(ctx context.Context, sshConfig sshutils.SSHConfiger) error

ApplyBacalhauConfigs provides a mock function with given fields: ctx, sshConfig

func (*MockClusterDeployerer) EXPECT

func (*MockClusterDeployerer) ExecuteCustomScript

func (_m *MockClusterDeployerer) ExecuteCustomScript(ctx context.Context, sshConfig sshutils.SSHConfiger, machine models.Machiner) error

ExecuteCustomScript provides a mock function with given fields: ctx, sshConfig, machine

func (*MockClusterDeployerer) ProvisionBacalhauCluster

func (_m *MockClusterDeployerer) ProvisionBacalhauCluster(ctx context.Context) error

ProvisionBacalhauCluster provides a mock function with given fields: ctx

func (*MockClusterDeployerer) ProvisionOrchestrator

func (_m *MockClusterDeployerer) ProvisionOrchestrator(ctx context.Context, machineName string) error

ProvisionOrchestrator provides a mock function with given fields: ctx, machineName

func (*MockClusterDeployerer) ProvisionPackagesOnMachine

func (_m *MockClusterDeployerer) ProvisionPackagesOnMachine(ctx context.Context, machineName string) error

ProvisionPackagesOnMachine provides a mock function with given fields: ctx, machineName

func (*MockClusterDeployerer) ProvisionWorker

func (_m *MockClusterDeployerer) ProvisionWorker(ctx context.Context, machineName string) error

ProvisionWorker provides a mock function with given fields: ctx, machineName

func (*MockClusterDeployerer) WaitForAllMachinesToReachState

func (_m *MockClusterDeployerer) WaitForAllMachinesToReachState(ctx context.Context, resourceType string, state models.MachineResourceState) error

WaitForAllMachinesToReachState provides a mock function with given fields: ctx, resourceType, state

type MockClusterDeployerer_ApplyBacalhauConfigs_Call

type MockClusterDeployerer_ApplyBacalhauConfigs_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ApplyBacalhauConfigs_Call) Return

func (*MockClusterDeployerer_ApplyBacalhauConfigs_Call) Run

func (*MockClusterDeployerer_ApplyBacalhauConfigs_Call) RunAndReturn

type MockClusterDeployerer_ExecuteCustomScript_Call

type MockClusterDeployerer_ExecuteCustomScript_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ExecuteCustomScript_Call) Return

func (*MockClusterDeployerer_ExecuteCustomScript_Call) Run

type MockClusterDeployerer_Expecter

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

func (*MockClusterDeployerer_Expecter) ApplyBacalhauConfigs

func (_e *MockClusterDeployerer_Expecter) ApplyBacalhauConfigs(ctx interface{}, sshConfig interface{}) *MockClusterDeployerer_ApplyBacalhauConfigs_Call

ApplyBacalhauConfigs is a helper method to define mock.On call

  • ctx context.Context
  • sshConfig sshutils.SSHConfiger

func (*MockClusterDeployerer_Expecter) ExecuteCustomScript

func (_e *MockClusterDeployerer_Expecter) ExecuteCustomScript(ctx interface{}, sshConfig interface{}, machine interface{}) *MockClusterDeployerer_ExecuteCustomScript_Call

ExecuteCustomScript is a helper method to define mock.On call

  • ctx context.Context
  • sshConfig sshutils.SSHConfiger
  • machine models.Machiner

func (*MockClusterDeployerer_Expecter) ProvisionBacalhauCluster

func (_e *MockClusterDeployerer_Expecter) ProvisionBacalhauCluster(ctx interface{}) *MockClusterDeployerer_ProvisionBacalhauCluster_Call

ProvisionBacalhauCluster is a helper method to define mock.On call

  • ctx context.Context

func (*MockClusterDeployerer_Expecter) ProvisionOrchestrator

func (_e *MockClusterDeployerer_Expecter) ProvisionOrchestrator(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionOrchestrator_Call

ProvisionOrchestrator is a helper method to define mock.On call

  • ctx context.Context
  • machineName string

func (*MockClusterDeployerer_Expecter) ProvisionPackagesOnMachine

func (_e *MockClusterDeployerer_Expecter) ProvisionPackagesOnMachine(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call

ProvisionPackagesOnMachine is a helper method to define mock.On call

  • ctx context.Context
  • machineName string

func (*MockClusterDeployerer_Expecter) ProvisionWorker

func (_e *MockClusterDeployerer_Expecter) ProvisionWorker(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionWorker_Call

ProvisionWorker is a helper method to define mock.On call

  • ctx context.Context
  • machineName string

func (*MockClusterDeployerer_Expecter) WaitForAllMachinesToReachState

func (_e *MockClusterDeployerer_Expecter) WaitForAllMachinesToReachState(ctx interface{}, resourceType interface{}, state interface{}) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call

WaitForAllMachinesToReachState is a helper method to define mock.On call

  • ctx context.Context
  • resourceType string
  • state models.MachineResourceState

type MockClusterDeployerer_ProvisionBacalhauCluster_Call

type MockClusterDeployerer_ProvisionBacalhauCluster_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ProvisionBacalhauCluster_Call) Return

func (*MockClusterDeployerer_ProvisionBacalhauCluster_Call) Run

func (*MockClusterDeployerer_ProvisionBacalhauCluster_Call) RunAndReturn

type MockClusterDeployerer_ProvisionOrchestrator_Call

type MockClusterDeployerer_ProvisionOrchestrator_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ProvisionOrchestrator_Call) Return

func (*MockClusterDeployerer_ProvisionOrchestrator_Call) Run

func (*MockClusterDeployerer_ProvisionOrchestrator_Call) RunAndReturn

type MockClusterDeployerer_ProvisionPackagesOnMachine_Call

type MockClusterDeployerer_ProvisionPackagesOnMachine_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Return

func (*MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Run

func (*MockClusterDeployerer_ProvisionPackagesOnMachine_Call) RunAndReturn

type MockClusterDeployerer_ProvisionWorker_Call

type MockClusterDeployerer_ProvisionWorker_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_ProvisionWorker_Call) Return

func (*MockClusterDeployerer_ProvisionWorker_Call) Run

func (*MockClusterDeployerer_ProvisionWorker_Call) RunAndReturn

type MockClusterDeployerer_WaitForAllMachinesToReachState_Call

type MockClusterDeployerer_WaitForAllMachinesToReachState_Call struct {
	*mock.Call
}

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

func (*MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Return

func (*MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Run

Jump to

Keyboard shortcuts

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