Documentation ¶
Index ¶
- type MockConfigMapClient
- func (_m *MockConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
- func (_m *MockConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (_m *MockConfigMapClient) EXPECT() *MockConfigMapClient_Expecter
- type MockConfigMapClient_Create_Call
- type MockConfigMapClient_Delete_Call
- func (_c *MockConfigMapClient_Delete_Call) Return(_a0 error) *MockConfigMapClient_Delete_Call
- func (_c *MockConfigMapClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockConfigMapClient_Delete_Call
- func (_c *MockConfigMapClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockConfigMapClient_Delete_Call
- type MockConfigMapClient_Expecter
- type MockDeploymentClient
- func (_m *MockDeploymentClient) Create(ctx context.Context, deployment *v1.Deployment, opts metav1.CreateOptions) (*v1.Deployment, error)
- func (_m *MockDeploymentClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (_m *MockDeploymentClient) EXPECT() *MockDeploymentClient_Expecter
- func (_m *MockDeploymentClient) Watch(ctx context.Context, opts metav1.ListOptions) (clients.WatchResult, error)
- type MockDeploymentClient_Create_Call
- type MockDeploymentClient_Delete_Call
- func (_c *MockDeploymentClient_Delete_Call) Return(_a0 error) *MockDeploymentClient_Delete_Call
- func (_c *MockDeploymentClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockDeploymentClient_Delete_Call
- func (_c *MockDeploymentClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockDeploymentClient_Delete_Call
- type MockDeploymentClient_Expecter
- func (_e *MockDeploymentClient_Expecter) Create(ctx interface{}, deployment interface{}, opts interface{}) *MockDeploymentClient_Create_Call
- func (_e *MockDeploymentClient_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *MockDeploymentClient_Delete_Call
- func (_e *MockDeploymentClient_Expecter) Watch(ctx interface{}, opts interface{}) *MockDeploymentClient_Watch_Call
- type MockDeploymentClient_Watch_Call
- func (_c *MockDeploymentClient_Watch_Call) Return(_a0 clients.WatchResult, _a1 error) *MockDeploymentClient_Watch_Call
- func (_c *MockDeploymentClient_Watch_Call) Run(run func(ctx context.Context, opts metav1.ListOptions)) *MockDeploymentClient_Watch_Call
- func (_c *MockDeploymentClient_Watch_Call) RunAndReturn(run func(context.Context, metav1.ListOptions) (clients.WatchResult, error)) *MockDeploymentClient_Watch_Call
- type MockMaker
- func (_m *MockMaker) EXPECT() *MockMaker_Expecter
- func (_m *MockMaker) MakeConfigMapClient(config *types.KubernetesEnvironment) (clients.ConfigMapClient, error)
- func (_m *MockMaker) MakeDeploymentClient(config *types.KubernetesEnvironment) (clients.DeploymentClient, error)
- func (_m *MockMaker) MakePodClient(config *types.KubernetesEnvironment) (clients.PodClient, error)
- func (_m *MockMaker) MakeServiceClient(config *types.KubernetesEnvironment) (clients.ServiceClient, error)
- type MockMaker_Expecter
- func (_e *MockMaker_Expecter) MakeConfigMapClient(config interface{}) *MockMaker_MakeConfigMapClient_Call
- func (_e *MockMaker_Expecter) MakeDeploymentClient(config interface{}) *MockMaker_MakeDeploymentClient_Call
- func (_e *MockMaker_Expecter) MakePodClient(config interface{}) *MockMaker_MakePodClient_Call
- func (_e *MockMaker_Expecter) MakeServiceClient(config interface{}) *MockMaker_MakeServiceClient_Call
- type MockMaker_MakeConfigMapClient_Call
- func (_c *MockMaker_MakeConfigMapClient_Call) Return(_a0 clients.ConfigMapClient, _a1 error) *MockMaker_MakeConfigMapClient_Call
- func (_c *MockMaker_MakeConfigMapClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeConfigMapClient_Call
- func (_c *MockMaker_MakeConfigMapClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.ConfigMapClient, error)) *MockMaker_MakeConfigMapClient_Call
- type MockMaker_MakeDeploymentClient_Call
- func (_c *MockMaker_MakeDeploymentClient_Call) Return(_a0 clients.DeploymentClient, _a1 error) *MockMaker_MakeDeploymentClient_Call
- func (_c *MockMaker_MakeDeploymentClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeDeploymentClient_Call
- func (_c *MockMaker_MakeDeploymentClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.DeploymentClient, error)) *MockMaker_MakeDeploymentClient_Call
- type MockMaker_MakePodClient_Call
- func (_c *MockMaker_MakePodClient_Call) Return(_a0 clients.PodClient, _a1 error) *MockMaker_MakePodClient_Call
- func (_c *MockMaker_MakePodClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakePodClient_Call
- func (_c *MockMaker_MakePodClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.PodClient, error)) *MockMaker_MakePodClient_Call
- type MockMaker_MakeServiceClient_Call
- func (_c *MockMaker_MakeServiceClient_Call) Return(_a0 clients.ServiceClient, _a1 error) *MockMaker_MakeServiceClient_Call
- func (_c *MockMaker_MakeServiceClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeServiceClient_Call
- func (_c *MockMaker_MakeServiceClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.ServiceClient, error)) *MockMaker_MakeServiceClient_Call
- type MockPodClient
- type MockPodClient_Expecter
- type MockPodClient_List_Call
- func (_c *MockPodClient_List_Call) Return(_a0 *corev1.PodList, _a1 error) *MockPodClient_List_Call
- func (_c *MockPodClient_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockPodClient_List_Call
- func (_c *MockPodClient_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*corev1.PodList, error)) *MockPodClient_List_Call
- type MockPodClient_StreamLogs_Call
- func (_c *MockPodClient_StreamLogs_Call) Return(_a0 io.ReadCloser, _a1 error) *MockPodClient_StreamLogs_Call
- func (_c *MockPodClient_StreamLogs_Call) Run(run func(ctx context.Context, name string, opts *corev1.PodLogOptions)) *MockPodClient_StreamLogs_Call
- func (_c *MockPodClient_StreamLogs_Call) RunAndReturn(...) *MockPodClient_StreamLogs_Call
- type MockServiceClient
- func (_m *MockServiceClient) Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (*v1.Service, error)
- func (_m *MockServiceClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (_m *MockServiceClient) EXPECT() *MockServiceClient_Expecter
- func (_m *MockServiceClient) Watch(ctx context.Context, opts metav1.ListOptions) (clients.WatchResult, error)
- type MockServiceClient_Create_Call
- func (_c *MockServiceClient_Create_Call) Return(_a0 *v1.Service, _a1 error) *MockServiceClient_Create_Call
- func (_c *MockServiceClient_Create_Call) Run(run func(ctx context.Context, service *v1.Service, opts metav1.CreateOptions)) *MockServiceClient_Create_Call
- func (_c *MockServiceClient_Create_Call) RunAndReturn(...) *MockServiceClient_Create_Call
- type MockServiceClient_Delete_Call
- func (_c *MockServiceClient_Delete_Call) Return(_a0 error) *MockServiceClient_Delete_Call
- func (_c *MockServiceClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockServiceClient_Delete_Call
- func (_c *MockServiceClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockServiceClient_Delete_Call
- type MockServiceClient_Expecter
- func (_e *MockServiceClient_Expecter) Create(ctx interface{}, service interface{}, opts interface{}) *MockServiceClient_Create_Call
- func (_e *MockServiceClient_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *MockServiceClient_Delete_Call
- func (_e *MockServiceClient_Expecter) Watch(ctx interface{}, opts interface{}) *MockServiceClient_Watch_Call
- type MockServiceClient_Watch_Call
- func (_c *MockServiceClient_Watch_Call) Return(_a0 clients.WatchResult, _a1 error) *MockServiceClient_Watch_Call
- func (_c *MockServiceClient_Watch_Call) Run(run func(ctx context.Context, opts metav1.ListOptions)) *MockServiceClient_Watch_Call
- func (_c *MockServiceClient_Watch_Call) RunAndReturn(run func(context.Context, metav1.ListOptions) (clients.WatchResult, error)) *MockServiceClient_Watch_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfigMapClient ¶
MockConfigMapClient is an autogenerated mock type for the ConfigMapClient type
func NewMockConfigMapClient ¶
func NewMockConfigMapClient(t interface { mock.TestingT Cleanup(func()) }) *MockConfigMapClient
NewMockConfigMapClient creates a new instance of MockConfigMapClient. 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 (*MockConfigMapClient) Create ¶
func (_m *MockConfigMapClient) Create(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions) (*v1.ConfigMap, error)
Create provides a mock function with given fields: ctx, configMap, opts
func (*MockConfigMapClient) Delete ¶
func (_m *MockConfigMapClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*MockConfigMapClient) EXPECT ¶
func (_m *MockConfigMapClient) EXPECT() *MockConfigMapClient_Expecter
type MockConfigMapClient_Create_Call ¶
MockConfigMapClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockConfigMapClient_Create_Call) Return ¶
func (_c *MockConfigMapClient_Create_Call) Return(_a0 *v1.ConfigMap, _a1 error) *MockConfigMapClient_Create_Call
func (*MockConfigMapClient_Create_Call) Run ¶
func (_c *MockConfigMapClient_Create_Call) Run(run func(ctx context.Context, configMap *v1.ConfigMap, opts metav1.CreateOptions)) *MockConfigMapClient_Create_Call
func (*MockConfigMapClient_Create_Call) RunAndReturn ¶
func (_c *MockConfigMapClient_Create_Call) RunAndReturn(run func(context.Context, *v1.ConfigMap, metav1.CreateOptions) (*v1.ConfigMap, error)) *MockConfigMapClient_Create_Call
type MockConfigMapClient_Delete_Call ¶
MockConfigMapClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockConfigMapClient_Delete_Call) Return ¶
func (_c *MockConfigMapClient_Delete_Call) Return(_a0 error) *MockConfigMapClient_Delete_Call
func (*MockConfigMapClient_Delete_Call) Run ¶
func (_c *MockConfigMapClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockConfigMapClient_Delete_Call
func (*MockConfigMapClient_Delete_Call) RunAndReturn ¶
func (_c *MockConfigMapClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockConfigMapClient_Delete_Call
type MockConfigMapClient_Expecter ¶
type MockConfigMapClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConfigMapClient_Expecter) Create ¶
func (_e *MockConfigMapClient_Expecter) Create(ctx interface{}, configMap interface{}, opts interface{}) *MockConfigMapClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- configMap *v1.ConfigMap
- opts metav1.CreateOptions
func (*MockConfigMapClient_Expecter) Delete ¶
func (_e *MockConfigMapClient_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *MockConfigMapClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- opts metav1.DeleteOptions
type MockDeploymentClient ¶
MockDeploymentClient is an autogenerated mock type for the DeploymentClient type
func NewMockDeploymentClient ¶
func NewMockDeploymentClient(t interface { mock.TestingT Cleanup(func()) }) *MockDeploymentClient
NewMockDeploymentClient creates a new instance of MockDeploymentClient. 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 (*MockDeploymentClient) Create ¶
func (_m *MockDeploymentClient) Create(ctx context.Context, deployment *v1.Deployment, opts metav1.CreateOptions) (*v1.Deployment, error)
Create provides a mock function with given fields: ctx, deployment, opts
func (*MockDeploymentClient) Delete ¶
func (_m *MockDeploymentClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*MockDeploymentClient) EXPECT ¶
func (_m *MockDeploymentClient) EXPECT() *MockDeploymentClient_Expecter
func (*MockDeploymentClient) Watch ¶
func (_m *MockDeploymentClient) Watch(ctx context.Context, opts metav1.ListOptions) (clients.WatchResult, error)
Watch provides a mock function with given fields: ctx, opts
type MockDeploymentClient_Create_Call ¶
MockDeploymentClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockDeploymentClient_Create_Call) Return ¶
func (_c *MockDeploymentClient_Create_Call) Return(_a0 *v1.Deployment, _a1 error) *MockDeploymentClient_Create_Call
func (*MockDeploymentClient_Create_Call) Run ¶
func (_c *MockDeploymentClient_Create_Call) Run(run func(ctx context.Context, deployment *v1.Deployment, opts metav1.CreateOptions)) *MockDeploymentClient_Create_Call
func (*MockDeploymentClient_Create_Call) RunAndReturn ¶
func (_c *MockDeploymentClient_Create_Call) RunAndReturn(run func(context.Context, *v1.Deployment, metav1.CreateOptions) (*v1.Deployment, error)) *MockDeploymentClient_Create_Call
type MockDeploymentClient_Delete_Call ¶
MockDeploymentClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockDeploymentClient_Delete_Call) Return ¶
func (_c *MockDeploymentClient_Delete_Call) Return(_a0 error) *MockDeploymentClient_Delete_Call
func (*MockDeploymentClient_Delete_Call) Run ¶
func (_c *MockDeploymentClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockDeploymentClient_Delete_Call
func (*MockDeploymentClient_Delete_Call) RunAndReturn ¶
func (_c *MockDeploymentClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockDeploymentClient_Delete_Call
type MockDeploymentClient_Expecter ¶
type MockDeploymentClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDeploymentClient_Expecter) Create ¶
func (_e *MockDeploymentClient_Expecter) Create(ctx interface{}, deployment interface{}, opts interface{}) *MockDeploymentClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- deployment *v1.Deployment
- opts metav1.CreateOptions
func (*MockDeploymentClient_Expecter) Delete ¶
func (_e *MockDeploymentClient_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *MockDeploymentClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- opts metav1.DeleteOptions
func (*MockDeploymentClient_Expecter) Watch ¶
func (_e *MockDeploymentClient_Expecter) Watch(ctx interface{}, opts interface{}) *MockDeploymentClient_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts metav1.ListOptions
type MockDeploymentClient_Watch_Call ¶
MockDeploymentClient_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockDeploymentClient_Watch_Call) Return ¶
func (_c *MockDeploymentClient_Watch_Call) Return(_a0 clients.WatchResult, _a1 error) *MockDeploymentClient_Watch_Call
func (*MockDeploymentClient_Watch_Call) Run ¶
func (_c *MockDeploymentClient_Watch_Call) Run(run func(ctx context.Context, opts metav1.ListOptions)) *MockDeploymentClient_Watch_Call
func (*MockDeploymentClient_Watch_Call) RunAndReturn ¶
func (_c *MockDeploymentClient_Watch_Call) RunAndReturn(run func(context.Context, metav1.ListOptions) (clients.WatchResult, error)) *MockDeploymentClient_Watch_Call
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
func (*MockMaker) MakeConfigMapClient ¶
func (_m *MockMaker) MakeConfigMapClient(config *types.KubernetesEnvironment) (clients.ConfigMapClient, error)
MakeConfigMapClient provides a mock function with given fields: config
func (*MockMaker) MakeDeploymentClient ¶
func (_m *MockMaker) MakeDeploymentClient(config *types.KubernetesEnvironment) (clients.DeploymentClient, error)
MakeDeploymentClient provides a mock function with given fields: config
func (*MockMaker) MakePodClient ¶
MakePodClient provides a mock function with given fields: config
func (*MockMaker) MakeServiceClient ¶
func (_m *MockMaker) MakeServiceClient(config *types.KubernetesEnvironment) (clients.ServiceClient, error)
MakeServiceClient provides a mock function with given fields: config
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeConfigMapClient ¶
func (_e *MockMaker_Expecter) MakeConfigMapClient(config interface{}) *MockMaker_MakeConfigMapClient_Call
MakeConfigMapClient is a helper method to define mock.On call
- config *types.KubernetesEnvironment
func (*MockMaker_Expecter) MakeDeploymentClient ¶
func (_e *MockMaker_Expecter) MakeDeploymentClient(config interface{}) *MockMaker_MakeDeploymentClient_Call
MakeDeploymentClient is a helper method to define mock.On call
- config *types.KubernetesEnvironment
func (*MockMaker_Expecter) MakePodClient ¶
func (_e *MockMaker_Expecter) MakePodClient(config interface{}) *MockMaker_MakePodClient_Call
MakePodClient is a helper method to define mock.On call
- config *types.KubernetesEnvironment
func (*MockMaker_Expecter) MakeServiceClient ¶
func (_e *MockMaker_Expecter) MakeServiceClient(config interface{}) *MockMaker_MakeServiceClient_Call
MakeServiceClient is a helper method to define mock.On call
- config *types.KubernetesEnvironment
type MockMaker_MakeConfigMapClient_Call ¶
MockMaker_MakeConfigMapClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeConfigMapClient'
func (*MockMaker_MakeConfigMapClient_Call) Return ¶
func (_c *MockMaker_MakeConfigMapClient_Call) Return(_a0 clients.ConfigMapClient, _a1 error) *MockMaker_MakeConfigMapClient_Call
func (*MockMaker_MakeConfigMapClient_Call) Run ¶
func (_c *MockMaker_MakeConfigMapClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeConfigMapClient_Call
func (*MockMaker_MakeConfigMapClient_Call) RunAndReturn ¶
func (_c *MockMaker_MakeConfigMapClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.ConfigMapClient, error)) *MockMaker_MakeConfigMapClient_Call
type MockMaker_MakeDeploymentClient_Call ¶
MockMaker_MakeDeploymentClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeDeploymentClient'
func (*MockMaker_MakeDeploymentClient_Call) Return ¶
func (_c *MockMaker_MakeDeploymentClient_Call) Return(_a0 clients.DeploymentClient, _a1 error) *MockMaker_MakeDeploymentClient_Call
func (*MockMaker_MakeDeploymentClient_Call) Run ¶
func (_c *MockMaker_MakeDeploymentClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeDeploymentClient_Call
func (*MockMaker_MakeDeploymentClient_Call) RunAndReturn ¶
func (_c *MockMaker_MakeDeploymentClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.DeploymentClient, error)) *MockMaker_MakeDeploymentClient_Call
type MockMaker_MakePodClient_Call ¶
MockMaker_MakePodClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakePodClient'
func (*MockMaker_MakePodClient_Call) Return ¶
func (_c *MockMaker_MakePodClient_Call) Return(_a0 clients.PodClient, _a1 error) *MockMaker_MakePodClient_Call
func (*MockMaker_MakePodClient_Call) Run ¶
func (_c *MockMaker_MakePodClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakePodClient_Call
func (*MockMaker_MakePodClient_Call) RunAndReturn ¶
func (_c *MockMaker_MakePodClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.PodClient, error)) *MockMaker_MakePodClient_Call
type MockMaker_MakeServiceClient_Call ¶
MockMaker_MakeServiceClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeServiceClient'
func (*MockMaker_MakeServiceClient_Call) Return ¶
func (_c *MockMaker_MakeServiceClient_Call) Return(_a0 clients.ServiceClient, _a1 error) *MockMaker_MakeServiceClient_Call
func (*MockMaker_MakeServiceClient_Call) Run ¶
func (_c *MockMaker_MakeServiceClient_Call) Run(run func(config *types.KubernetesEnvironment)) *MockMaker_MakeServiceClient_Call
func (*MockMaker_MakeServiceClient_Call) RunAndReturn ¶
func (_c *MockMaker_MakeServiceClient_Call) RunAndReturn(run func(*types.KubernetesEnvironment) (clients.ServiceClient, error)) *MockMaker_MakeServiceClient_Call
type MockPodClient ¶
MockPodClient is an autogenerated mock type for the PodClient type
func NewMockPodClient ¶
func NewMockPodClient(t interface { mock.TestingT Cleanup(func()) }) *MockPodClient
NewMockPodClient creates a new instance of MockPodClient. 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 (*MockPodClient) EXPECT ¶
func (_m *MockPodClient) EXPECT() *MockPodClient_Expecter
func (*MockPodClient) List ¶
func (_m *MockPodClient) List(ctx context.Context, opts v1.ListOptions) (*corev1.PodList, error)
List provides a mock function with given fields: ctx, opts
func (*MockPodClient) StreamLogs ¶
func (_m *MockPodClient) StreamLogs(ctx context.Context, name string, opts *corev1.PodLogOptions) (io.ReadCloser, error)
StreamLogs provides a mock function with given fields: ctx, name, opts
type MockPodClient_Expecter ¶
type MockPodClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPodClient_Expecter) List ¶
func (_e *MockPodClient_Expecter) List(ctx interface{}, opts interface{}) *MockPodClient_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- opts v1.ListOptions
func (*MockPodClient_Expecter) StreamLogs ¶
func (_e *MockPodClient_Expecter) StreamLogs(ctx interface{}, name interface{}, opts interface{}) *MockPodClient_StreamLogs_Call
StreamLogs is a helper method to define mock.On call
- ctx context.Context
- name string
- opts *corev1.PodLogOptions
type MockPodClient_List_Call ¶
MockPodClient_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockPodClient_List_Call) Return ¶
func (_c *MockPodClient_List_Call) Return(_a0 *corev1.PodList, _a1 error) *MockPodClient_List_Call
func (*MockPodClient_List_Call) Run ¶
func (_c *MockPodClient_List_Call) Run(run func(ctx context.Context, opts v1.ListOptions)) *MockPodClient_List_Call
func (*MockPodClient_List_Call) RunAndReturn ¶
func (_c *MockPodClient_List_Call) RunAndReturn(run func(context.Context, v1.ListOptions) (*corev1.PodList, error)) *MockPodClient_List_Call
type MockPodClient_StreamLogs_Call ¶
MockPodClient_StreamLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamLogs'
func (*MockPodClient_StreamLogs_Call) Return ¶
func (_c *MockPodClient_StreamLogs_Call) Return(_a0 io.ReadCloser, _a1 error) *MockPodClient_StreamLogs_Call
func (*MockPodClient_StreamLogs_Call) Run ¶
func (_c *MockPodClient_StreamLogs_Call) Run(run func(ctx context.Context, name string, opts *corev1.PodLogOptions)) *MockPodClient_StreamLogs_Call
func (*MockPodClient_StreamLogs_Call) RunAndReturn ¶
func (_c *MockPodClient_StreamLogs_Call) RunAndReturn(run func(context.Context, string, *corev1.PodLogOptions) (io.ReadCloser, error)) *MockPodClient_StreamLogs_Call
type MockServiceClient ¶
MockServiceClient is an autogenerated mock type for the ServiceClient type
func NewMockServiceClient ¶
func NewMockServiceClient(t interface { mock.TestingT Cleanup(func()) }) *MockServiceClient
NewMockServiceClient creates a new instance of MockServiceClient. 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 (*MockServiceClient) Create ¶
func (_m *MockServiceClient) Create(ctx context.Context, service *v1.Service, opts metav1.CreateOptions) (*v1.Service, error)
Create provides a mock function with given fields: ctx, service, opts
func (*MockServiceClient) Delete ¶
func (_m *MockServiceClient) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*MockServiceClient) EXPECT ¶
func (_m *MockServiceClient) EXPECT() *MockServiceClient_Expecter
func (*MockServiceClient) Watch ¶
func (_m *MockServiceClient) Watch(ctx context.Context, opts metav1.ListOptions) (clients.WatchResult, error)
Watch provides a mock function with given fields: ctx, opts
type MockServiceClient_Create_Call ¶
MockServiceClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockServiceClient_Create_Call) Return ¶
func (_c *MockServiceClient_Create_Call) Return(_a0 *v1.Service, _a1 error) *MockServiceClient_Create_Call
func (*MockServiceClient_Create_Call) Run ¶
func (_c *MockServiceClient_Create_Call) Run(run func(ctx context.Context, service *v1.Service, opts metav1.CreateOptions)) *MockServiceClient_Create_Call
func (*MockServiceClient_Create_Call) RunAndReturn ¶
func (_c *MockServiceClient_Create_Call) RunAndReturn(run func(context.Context, *v1.Service, metav1.CreateOptions) (*v1.Service, error)) *MockServiceClient_Create_Call
type MockServiceClient_Delete_Call ¶
MockServiceClient_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockServiceClient_Delete_Call) Return ¶
func (_c *MockServiceClient_Delete_Call) Return(_a0 error) *MockServiceClient_Delete_Call
func (*MockServiceClient_Delete_Call) Run ¶
func (_c *MockServiceClient_Delete_Call) Run(run func(ctx context.Context, name string, opts metav1.DeleteOptions)) *MockServiceClient_Delete_Call
func (*MockServiceClient_Delete_Call) RunAndReturn ¶
func (_c *MockServiceClient_Delete_Call) RunAndReturn(run func(context.Context, string, metav1.DeleteOptions) error) *MockServiceClient_Delete_Call
type MockServiceClient_Expecter ¶
type MockServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServiceClient_Expecter) Create ¶
func (_e *MockServiceClient_Expecter) Create(ctx interface{}, service interface{}, opts interface{}) *MockServiceClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- service *v1.Service
- opts metav1.CreateOptions
func (*MockServiceClient_Expecter) Delete ¶
func (_e *MockServiceClient_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *MockServiceClient_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- name string
- opts metav1.DeleteOptions
func (*MockServiceClient_Expecter) Watch ¶
func (_e *MockServiceClient_Expecter) Watch(ctx interface{}, opts interface{}) *MockServiceClient_Watch_Call
Watch is a helper method to define mock.On call
- ctx context.Context
- opts metav1.ListOptions
type MockServiceClient_Watch_Call ¶
MockServiceClient_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'
func (*MockServiceClient_Watch_Call) Return ¶
func (_c *MockServiceClient_Watch_Call) Return(_a0 clients.WatchResult, _a1 error) *MockServiceClient_Watch_Call
func (*MockServiceClient_Watch_Call) Run ¶
func (_c *MockServiceClient_Watch_Call) Run(run func(ctx context.Context, opts metav1.ListOptions)) *MockServiceClient_Watch_Call
func (*MockServiceClient_Watch_Call) RunAndReturn ¶
func (_c *MockServiceClient_Watch_Call) RunAndReturn(run func(context.Context, metav1.ListOptions) (clients.WatchResult, error)) *MockServiceClient_Watch_Call