Documentation
¶
Index ¶
- type K8SClient
- type K8SClient_DeletePod_Call
- func (_c *K8SClient_DeletePod_Call) Return(_a0 error) *K8SClient_DeletePod_Call
- func (_c *K8SClient_DeletePod_Call) Run(run func(ctx context.Context, namespace string, name string)) *K8SClient_DeletePod_Call
- func (_c *K8SClient_DeletePod_Call) RunAndReturn(run func(context.Context, string, string) error) *K8SClient_DeletePod_Call
- type K8SClient_Disconnect_Call
- type K8SClient_Expecter
- func (_e *K8SClient_Expecter) DeletePod(ctx interface{}, namespace interface{}, name interface{}) *K8SClient_DeletePod_Call
- func (_e *K8SClient_Expecter) Disconnect() *K8SClient_Disconnect_Call
- func (_e *K8SClient_Expecter) GetPodsForLabelSelector(ctx interface{}, namespace interface{}, labelSelector interface{}) *K8SClient_GetPodsForLabelSelector_Call
- type K8SClient_GetPodsForLabelSelector_Call
- func (_c *K8SClient_GetPodsForLabelSelector_Call) Return(_a0 []v1.Pod, _a1 error) *K8SClient_GetPodsForLabelSelector_Call
- func (_c *K8SClient_GetPodsForLabelSelector_Call) Run(run func(ctx context.Context, namespace string, labelSelector string)) *K8SClient_GetPodsForLabelSelector_Call
- func (_c *K8SClient_GetPodsForLabelSelector_Call) RunAndReturn(run func(context.Context, string, string) ([]v1.Pod, error)) *K8SClient_GetPodsForLabelSelector_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8SClient ¶
K8SClient is an autogenerated mock type for the K8SClient type
func NewK8SClient ¶
NewK8SClient creates a new instance of K8SClient. 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 (*K8SClient) DeletePod ¶
DeletePod provides a mock function with given fields: ctx, namespace, name
func (*K8SClient) Disconnect ¶
func (_m *K8SClient) Disconnect()
Disconnect provides a mock function with no fields
func (*K8SClient) EXPECT ¶
func (_m *K8SClient) EXPECT() *K8SClient_Expecter
type K8SClient_DeletePod_Call ¶
K8SClient_DeletePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePod'
func (*K8SClient_DeletePod_Call) Return ¶
func (_c *K8SClient_DeletePod_Call) Return(_a0 error) *K8SClient_DeletePod_Call
func (*K8SClient_DeletePod_Call) Run ¶
func (_c *K8SClient_DeletePod_Call) Run(run func(ctx context.Context, namespace string, name string)) *K8SClient_DeletePod_Call
func (*K8SClient_DeletePod_Call) RunAndReturn ¶
func (_c *K8SClient_DeletePod_Call) RunAndReturn(run func(context.Context, string, string) error) *K8SClient_DeletePod_Call
type K8SClient_Disconnect_Call ¶
K8SClient_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'
func (*K8SClient_Disconnect_Call) Return ¶
func (_c *K8SClient_Disconnect_Call) Return() *K8SClient_Disconnect_Call
func (*K8SClient_Disconnect_Call) Run ¶
func (_c *K8SClient_Disconnect_Call) Run(run func()) *K8SClient_Disconnect_Call
func (*K8SClient_Disconnect_Call) RunAndReturn ¶
func (_c *K8SClient_Disconnect_Call) RunAndReturn(run func()) *K8SClient_Disconnect_Call
type K8SClient_Expecter ¶
type K8SClient_Expecter struct {
// contains filtered or unexported fields
}
func (*K8SClient_Expecter) DeletePod ¶
func (_e *K8SClient_Expecter) DeletePod(ctx interface{}, namespace interface{}, name interface{}) *K8SClient_DeletePod_Call
DeletePod is a helper method to define mock.On call
- ctx context.Context
- namespace string
- name string
func (*K8SClient_Expecter) Disconnect ¶
func (_e *K8SClient_Expecter) Disconnect() *K8SClient_Disconnect_Call
Disconnect is a helper method to define mock.On call
func (*K8SClient_Expecter) GetPodsForLabelSelector ¶
func (_e *K8SClient_Expecter) GetPodsForLabelSelector(ctx interface{}, namespace interface{}, labelSelector interface{}) *K8SClient_GetPodsForLabelSelector_Call
GetPodsForLabelSelector is a helper method to define mock.On call
- ctx context.Context
- namespace string
- labelSelector string
type K8SClient_GetPodsForLabelSelector_Call ¶
K8SClient_GetPodsForLabelSelector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodsForLabelSelector'
func (*K8SClient_GetPodsForLabelSelector_Call) Return ¶
func (_c *K8SClient_GetPodsForLabelSelector_Call) Return(_a0 []v1.Pod, _a1 error) *K8SClient_GetPodsForLabelSelector_Call
func (*K8SClient_GetPodsForLabelSelector_Call) Run ¶
func (_c *K8SClient_GetPodsForLabelSelector_Call) Run(run func(ctx context.Context, namespace string, labelSelector string)) *K8SClient_GetPodsForLabelSelector_Call
func (*K8SClient_GetPodsForLabelSelector_Call) RunAndReturn ¶
func (_c *K8SClient_GetPodsForLabelSelector_Call) RunAndReturn(run func(context.Context, string, string) ([]v1.Pod, error)) *K8SClient_GetPodsForLabelSelector_Call