Documentation ¶
Index ¶
- type MockMachineSetDeployer
- func (_m *MockMachineSetDeployer) Delete(machineSet *unstructured.Unstructured) error
- func (_m *MockMachineSetDeployer) DeleteByName(name string, namespace string) error
- func (_m *MockMachineSetDeployer) Deploy(machineSet *unstructured.Unstructured) error
- func (_m *MockMachineSetDeployer) EXPECT() *MockMachineSetDeployer_Expecter
- func (_m *MockMachineSetDeployer) GetWorkerNodeImage(machineSet *unstructured.Unstructured, infraID string) (string, error)
- func (_m *MockMachineSetDeployer) List() ([]unstructured.Unstructured, error)
- type MockMachineSetDeployer_DeleteByName_Call
- func (_c *MockMachineSetDeployer_DeleteByName_Call) Return(_a0 error) *MockMachineSetDeployer_DeleteByName_Call
- func (_c *MockMachineSetDeployer_DeleteByName_Call) Run(run func(name string, namespace string)) *MockMachineSetDeployer_DeleteByName_Call
- func (_c *MockMachineSetDeployer_DeleteByName_Call) RunAndReturn(run func(string, string) error) *MockMachineSetDeployer_DeleteByName_Call
- type MockMachineSetDeployer_Delete_Call
- func (_c *MockMachineSetDeployer_Delete_Call) Return(_a0 error) *MockMachineSetDeployer_Delete_Call
- func (_c *MockMachineSetDeployer_Delete_Call) Run(run func(machineSet *unstructured.Unstructured)) *MockMachineSetDeployer_Delete_Call
- func (_c *MockMachineSetDeployer_Delete_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *MockMachineSetDeployer_Delete_Call
- type MockMachineSetDeployer_Deploy_Call
- func (_c *MockMachineSetDeployer_Deploy_Call) Return(_a0 error) *MockMachineSetDeployer_Deploy_Call
- func (_c *MockMachineSetDeployer_Deploy_Call) Run(run func(machineSet *unstructured.Unstructured)) *MockMachineSetDeployer_Deploy_Call
- func (_c *MockMachineSetDeployer_Deploy_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *MockMachineSetDeployer_Deploy_Call
- type MockMachineSetDeployer_Expecter
- func (_e *MockMachineSetDeployer_Expecter) Delete(machineSet interface{}) *MockMachineSetDeployer_Delete_Call
- func (_e *MockMachineSetDeployer_Expecter) DeleteByName(name interface{}, namespace interface{}) *MockMachineSetDeployer_DeleteByName_Call
- func (_e *MockMachineSetDeployer_Expecter) Deploy(machineSet interface{}) *MockMachineSetDeployer_Deploy_Call
- func (_e *MockMachineSetDeployer_Expecter) GetWorkerNodeImage(machineSet interface{}, infraID interface{}) *MockMachineSetDeployer_GetWorkerNodeImage_Call
- func (_e *MockMachineSetDeployer_Expecter) List() *MockMachineSetDeployer_List_Call
- type MockMachineSetDeployer_GetWorkerNodeImage_Call
- func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) Return(_a0 string, _a1 error) *MockMachineSetDeployer_GetWorkerNodeImage_Call
- func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) Run(run func(machineSet *unstructured.Unstructured, infraID string)) *MockMachineSetDeployer_GetWorkerNodeImage_Call
- func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) RunAndReturn(run func(*unstructured.Unstructured, string) (string, error)) *MockMachineSetDeployer_GetWorkerNodeImage_Call
- type MockMachineSetDeployer_List_Call
- func (_c *MockMachineSetDeployer_List_Call) Return(_a0 []unstructured.Unstructured, _a1 error) *MockMachineSetDeployer_List_Call
- func (_c *MockMachineSetDeployer_List_Call) Run(run func()) *MockMachineSetDeployer_List_Call
- func (_c *MockMachineSetDeployer_List_Call) RunAndReturn(run func() ([]unstructured.Unstructured, error)) *MockMachineSetDeployer_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMachineSetDeployer ¶
MockMachineSetDeployer is an autogenerated mock type for the MachineSetDeployer type
func NewMockMachineSetDeployer ¶
func NewMockMachineSetDeployer(t interface { mock.TestingT Cleanup(func()) }) *MockMachineSetDeployer
NewMockMachineSetDeployer creates a new instance of MockMachineSetDeployer. 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 (*MockMachineSetDeployer) Delete ¶
func (_m *MockMachineSetDeployer) Delete(machineSet *unstructured.Unstructured) error
Delete provides a mock function with given fields: machineSet
func (*MockMachineSetDeployer) DeleteByName ¶ added in v0.13.4
func (_m *MockMachineSetDeployer) DeleteByName(name string, namespace string) error
DeleteByName provides a mock function with given fields: name, namespace
func (*MockMachineSetDeployer) Deploy ¶
func (_m *MockMachineSetDeployer) Deploy(machineSet *unstructured.Unstructured) error
Deploy provides a mock function with given fields: machineSet
func (*MockMachineSetDeployer) EXPECT ¶
func (_m *MockMachineSetDeployer) EXPECT() *MockMachineSetDeployer_Expecter
func (*MockMachineSetDeployer) GetWorkerNodeImage ¶
func (_m *MockMachineSetDeployer) GetWorkerNodeImage(machineSet *unstructured.Unstructured, infraID string) (string, error)
GetWorkerNodeImage provides a mock function with given fields: machineSet, infraID
func (*MockMachineSetDeployer) List ¶ added in v0.13.4
func (_m *MockMachineSetDeployer) List() ([]unstructured.Unstructured, error)
List provides a mock function with given fields:
type MockMachineSetDeployer_DeleteByName_Call ¶ added in v0.19.0
MockMachineSetDeployer_DeleteByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByName'
func (*MockMachineSetDeployer_DeleteByName_Call) Return ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_DeleteByName_Call) Return(_a0 error) *MockMachineSetDeployer_DeleteByName_Call
func (*MockMachineSetDeployer_DeleteByName_Call) Run ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_DeleteByName_Call) Run(run func(name string, namespace string)) *MockMachineSetDeployer_DeleteByName_Call
func (*MockMachineSetDeployer_DeleteByName_Call) RunAndReturn ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_DeleteByName_Call) RunAndReturn(run func(string, string) error) *MockMachineSetDeployer_DeleteByName_Call
type MockMachineSetDeployer_Delete_Call ¶ added in v0.19.0
MockMachineSetDeployer_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockMachineSetDeployer_Delete_Call) Return ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Delete_Call) Return(_a0 error) *MockMachineSetDeployer_Delete_Call
func (*MockMachineSetDeployer_Delete_Call) Run ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Delete_Call) Run(run func(machineSet *unstructured.Unstructured)) *MockMachineSetDeployer_Delete_Call
func (*MockMachineSetDeployer_Delete_Call) RunAndReturn ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Delete_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *MockMachineSetDeployer_Delete_Call
type MockMachineSetDeployer_Deploy_Call ¶ added in v0.19.0
MockMachineSetDeployer_Deploy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deploy'
func (*MockMachineSetDeployer_Deploy_Call) Return ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Deploy_Call) Return(_a0 error) *MockMachineSetDeployer_Deploy_Call
func (*MockMachineSetDeployer_Deploy_Call) Run ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Deploy_Call) Run(run func(machineSet *unstructured.Unstructured)) *MockMachineSetDeployer_Deploy_Call
func (*MockMachineSetDeployer_Deploy_Call) RunAndReturn ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_Deploy_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *MockMachineSetDeployer_Deploy_Call
type MockMachineSetDeployer_Expecter ¶ added in v0.19.0
type MockMachineSetDeployer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMachineSetDeployer_Expecter) Delete ¶ added in v0.19.0
func (_e *MockMachineSetDeployer_Expecter) Delete(machineSet interface{}) *MockMachineSetDeployer_Delete_Call
Delete is a helper method to define mock.On call
- machineSet *unstructured.Unstructured
func (*MockMachineSetDeployer_Expecter) DeleteByName ¶ added in v0.19.0
func (_e *MockMachineSetDeployer_Expecter) DeleteByName(name interface{}, namespace interface{}) *MockMachineSetDeployer_DeleteByName_Call
DeleteByName is a helper method to define mock.On call
- name string
- namespace string
func (*MockMachineSetDeployer_Expecter) Deploy ¶ added in v0.19.0
func (_e *MockMachineSetDeployer_Expecter) Deploy(machineSet interface{}) *MockMachineSetDeployer_Deploy_Call
Deploy is a helper method to define mock.On call
- machineSet *unstructured.Unstructured
func (*MockMachineSetDeployer_Expecter) GetWorkerNodeImage ¶ added in v0.19.0
func (_e *MockMachineSetDeployer_Expecter) GetWorkerNodeImage(machineSet interface{}, infraID interface{}) *MockMachineSetDeployer_GetWorkerNodeImage_Call
GetWorkerNodeImage is a helper method to define mock.On call
- machineSet *unstructured.Unstructured
- infraID string
func (*MockMachineSetDeployer_Expecter) List ¶ added in v0.19.0
func (_e *MockMachineSetDeployer_Expecter) List() *MockMachineSetDeployer_List_Call
List is a helper method to define mock.On call
type MockMachineSetDeployer_GetWorkerNodeImage_Call ¶ added in v0.19.0
MockMachineSetDeployer_GetWorkerNodeImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkerNodeImage'
func (*MockMachineSetDeployer_GetWorkerNodeImage_Call) Return ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) Return(_a0 string, _a1 error) *MockMachineSetDeployer_GetWorkerNodeImage_Call
func (*MockMachineSetDeployer_GetWorkerNodeImage_Call) Run ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) Run(run func(machineSet *unstructured.Unstructured, infraID string)) *MockMachineSetDeployer_GetWorkerNodeImage_Call
func (*MockMachineSetDeployer_GetWorkerNodeImage_Call) RunAndReturn ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_GetWorkerNodeImage_Call) RunAndReturn(run func(*unstructured.Unstructured, string) (string, error)) *MockMachineSetDeployer_GetWorkerNodeImage_Call
type MockMachineSetDeployer_List_Call ¶ added in v0.19.0
MockMachineSetDeployer_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockMachineSetDeployer_List_Call) Return ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_List_Call) Return(_a0 []unstructured.Unstructured, _a1 error) *MockMachineSetDeployer_List_Call
func (*MockMachineSetDeployer_List_Call) Run ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_List_Call) Run(run func()) *MockMachineSetDeployer_List_Call
func (*MockMachineSetDeployer_List_Call) RunAndReturn ¶ added in v0.19.0
func (_c *MockMachineSetDeployer_List_Call) RunAndReturn(run func() ([]unstructured.Unstructured, error)) *MockMachineSetDeployer_List_Call