Documentation ¶
Index ¶
- type MockClienter
- type MockClienter_Expecter
- type MockClusterDeployerer
- func (_m *MockClusterDeployerer) ApplyBacalhauConfigs(ctx context.Context, sshConfig sshutils.SSHConfiger) error
- func (_m *MockClusterDeployerer) EXPECT() *MockClusterDeployerer_Expecter
- func (_m *MockClusterDeployerer) ExecuteCustomScript(ctx context.Context, sshConfig sshutils.SSHConfiger, machine models.Machiner) error
- func (_m *MockClusterDeployerer) ProvisionBacalhauCluster(ctx context.Context) error
- func (_m *MockClusterDeployerer) ProvisionOrchestrator(ctx context.Context, machineName string) error
- func (_m *MockClusterDeployerer) ProvisionPackagesOnMachine(ctx context.Context, machineName string) error
- func (_m *MockClusterDeployerer) ProvisionWorker(ctx context.Context, machineName string) error
- func (_m *MockClusterDeployerer) WaitForAllMachinesToReachState(ctx context.Context, resourceType string, state models.MachineResourceState) error
- type MockClusterDeployerer_ApplyBacalhauConfigs_Call
- func (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) Return(_a0 error) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
- func (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) Run(run func(ctx context.Context, sshConfig sshutils.SSHConfiger)) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
- func (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) RunAndReturn(run func(context.Context, sshutils.SSHConfiger) error) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
- type MockClusterDeployerer_ExecuteCustomScript_Call
- func (_c *MockClusterDeployerer_ExecuteCustomScript_Call) Return(_a0 error) *MockClusterDeployerer_ExecuteCustomScript_Call
- func (_c *MockClusterDeployerer_ExecuteCustomScript_Call) Run(...) *MockClusterDeployerer_ExecuteCustomScript_Call
- func (_c *MockClusterDeployerer_ExecuteCustomScript_Call) RunAndReturn(run func(context.Context, sshutils.SSHConfiger, models.Machiner) error) *MockClusterDeployerer_ExecuteCustomScript_Call
- type MockClusterDeployerer_Expecter
- func (_e *MockClusterDeployerer_Expecter) ApplyBacalhauConfigs(ctx interface{}, sshConfig interface{}) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
- func (_e *MockClusterDeployerer_Expecter) ExecuteCustomScript(ctx interface{}, sshConfig interface{}, machine interface{}) *MockClusterDeployerer_ExecuteCustomScript_Call
- func (_e *MockClusterDeployerer_Expecter) ProvisionBacalhauCluster(ctx interface{}) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
- func (_e *MockClusterDeployerer_Expecter) ProvisionOrchestrator(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionOrchestrator_Call
- func (_e *MockClusterDeployerer_Expecter) ProvisionPackagesOnMachine(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
- func (_e *MockClusterDeployerer_Expecter) ProvisionWorker(ctx interface{}, machineName interface{}) *MockClusterDeployerer_ProvisionWorker_Call
- func (_e *MockClusterDeployerer_Expecter) WaitForAllMachinesToReachState(ctx interface{}, resourceType interface{}, state interface{}) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call
- type MockClusterDeployerer_ProvisionBacalhauCluster_Call
- func (_c *MockClusterDeployerer_ProvisionBacalhauCluster_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
- func (_c *MockClusterDeployerer_ProvisionBacalhauCluster_Call) Run(run func(ctx context.Context)) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
- func (_c *MockClusterDeployerer_ProvisionBacalhauCluster_Call) RunAndReturn(run func(context.Context) error) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
- type MockClusterDeployerer_ProvisionOrchestrator_Call
- func (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionOrchestrator_Call
- func (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionOrchestrator_Call
- func (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionOrchestrator_Call
- type MockClusterDeployerer_ProvisionPackagesOnMachine_Call
- func (_c *MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
- func (_c *MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
- func (_c *MockClusterDeployerer_ProvisionPackagesOnMachine_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
- type MockClusterDeployerer_ProvisionWorker_Call
- func (_c *MockClusterDeployerer_ProvisionWorker_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionWorker_Call
- func (_c *MockClusterDeployerer_ProvisionWorker_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionWorker_Call
- func (_c *MockClusterDeployerer_ProvisionWorker_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionWorker_Call
- type MockClusterDeployerer_WaitForAllMachinesToReachState_Call
- func (_c *MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Return(_a0 error) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call
- func (_c *MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Run(...) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call
- func (_c *MockClusterDeployerer_WaitForAllMachinesToReachState_Call) RunAndReturn(run func(context.Context, string, models.MachineResourceState) error) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClienter ¶
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 ¶
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 (_m *MockClusterDeployerer) EXPECT() *MockClusterDeployerer_Expecter
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 ¶
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 (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) Return(_a0 error) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
func (*MockClusterDeployerer_ApplyBacalhauConfigs_Call) Run ¶
func (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) Run(run func(ctx context.Context, sshConfig sshutils.SSHConfiger)) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
func (*MockClusterDeployerer_ApplyBacalhauConfigs_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ApplyBacalhauConfigs_Call) RunAndReturn(run func(context.Context, sshutils.SSHConfiger) error) *MockClusterDeployerer_ApplyBacalhauConfigs_Call
type MockClusterDeployerer_ExecuteCustomScript_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 (_c *MockClusterDeployerer_ExecuteCustomScript_Call) Return(_a0 error) *MockClusterDeployerer_ExecuteCustomScript_Call
func (*MockClusterDeployerer_ExecuteCustomScript_Call) Run ¶
func (_c *MockClusterDeployerer_ExecuteCustomScript_Call) Run(run func(ctx context.Context, sshConfig sshutils.SSHConfiger, machine models.Machiner)) *MockClusterDeployerer_ExecuteCustomScript_Call
func (*MockClusterDeployerer_ExecuteCustomScript_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ExecuteCustomScript_Call) RunAndReturn(run func(context.Context, sshutils.SSHConfiger, models.Machiner) error) *MockClusterDeployerer_ExecuteCustomScript_Call
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 ¶
MockClusterDeployerer_ProvisionBacalhauCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProvisionBacalhauCluster'
func (*MockClusterDeployerer_ProvisionBacalhauCluster_Call) Run ¶
func (_c *MockClusterDeployerer_ProvisionBacalhauCluster_Call) Run(run func(ctx context.Context)) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
func (*MockClusterDeployerer_ProvisionBacalhauCluster_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ProvisionBacalhauCluster_Call) RunAndReturn(run func(context.Context) error) *MockClusterDeployerer_ProvisionBacalhauCluster_Call
type MockClusterDeployerer_ProvisionOrchestrator_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 (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionOrchestrator_Call
func (*MockClusterDeployerer_ProvisionOrchestrator_Call) Run ¶
func (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionOrchestrator_Call
func (*MockClusterDeployerer_ProvisionOrchestrator_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ProvisionOrchestrator_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionOrchestrator_Call
type MockClusterDeployerer_ProvisionPackagesOnMachine_Call ¶
MockClusterDeployerer_ProvisionPackagesOnMachine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProvisionPackagesOnMachine'
func (*MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Run ¶
func (_c *MockClusterDeployerer_ProvisionPackagesOnMachine_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
func (*MockClusterDeployerer_ProvisionPackagesOnMachine_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ProvisionPackagesOnMachine_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionPackagesOnMachine_Call
type MockClusterDeployerer_ProvisionWorker_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 (_c *MockClusterDeployerer_ProvisionWorker_Call) Return(_a0 error) *MockClusterDeployerer_ProvisionWorker_Call
func (*MockClusterDeployerer_ProvisionWorker_Call) Run ¶
func (_c *MockClusterDeployerer_ProvisionWorker_Call) Run(run func(ctx context.Context, machineName string)) *MockClusterDeployerer_ProvisionWorker_Call
func (*MockClusterDeployerer_ProvisionWorker_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_ProvisionWorker_Call) RunAndReturn(run func(context.Context, string) error) *MockClusterDeployerer_ProvisionWorker_Call
type MockClusterDeployerer_WaitForAllMachinesToReachState_Call ¶
MockClusterDeployerer_WaitForAllMachinesToReachState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitForAllMachinesToReachState'
func (*MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Run ¶
func (_c *MockClusterDeployerer_WaitForAllMachinesToReachState_Call) Run(run func(ctx context.Context, resourceType string, state models.MachineResourceState)) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call
func (*MockClusterDeployerer_WaitForAllMachinesToReachState_Call) RunAndReturn ¶
func (_c *MockClusterDeployerer_WaitForAllMachinesToReachState_Call) RunAndReturn(run func(context.Context, string, models.MachineResourceState) error) *MockClusterDeployerer_WaitForAllMachinesToReachState_Call