clients

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigMapClient

type MockConfigMapClient struct {
	mock.Mock
}

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

type MockConfigMapClient_Create_Call

type MockConfigMapClient_Create_Call struct {
	*mock.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 (*MockConfigMapClient_Create_Call) Run

func (*MockConfigMapClient_Create_Call) RunAndReturn

type MockConfigMapClient_Delete_Call

type MockConfigMapClient_Delete_Call struct {
	*mock.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 (*MockConfigMapClient_Delete_Call) Run

func (*MockConfigMapClient_Delete_Call) RunAndReturn

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

type MockDeploymentClient struct {
	mock.Mock
}

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 (*MockDeploymentClient) Watch

Watch provides a mock function with given fields: ctx, opts

type MockDeploymentClient_Create_Call

type MockDeploymentClient_Create_Call struct {
	*mock.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 (*MockDeploymentClient_Create_Call) Run

func (*MockDeploymentClient_Create_Call) RunAndReturn

type MockDeploymentClient_Delete_Call

type MockDeploymentClient_Delete_Call struct {
	*mock.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 (*MockDeploymentClient_Delete_Call) Run

func (*MockDeploymentClient_Delete_Call) RunAndReturn

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

type MockDeploymentClient_Watch_Call struct {
	*mock.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 (*MockDeploymentClient_Watch_Call) Run

func (*MockDeploymentClient_Watch_Call) RunAndReturn

type MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

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

func (_m *MockMaker) MakePodClient(config *types.KubernetesEnvironment) (clients.PodClient, error)

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

type MockMaker_MakeConfigMapClient_Call struct {
	*mock.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 (*MockMaker_MakeConfigMapClient_Call) Run

func (*MockMaker_MakeConfigMapClient_Call) RunAndReturn

type MockMaker_MakeDeploymentClient_Call

type MockMaker_MakeDeploymentClient_Call struct {
	*mock.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 (*MockMaker_MakeDeploymentClient_Call) Run

func (*MockMaker_MakeDeploymentClient_Call) RunAndReturn

type MockMaker_MakePodClient_Call

type MockMaker_MakePodClient_Call struct {
	*mock.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 (*MockMaker_MakePodClient_Call) Run

func (*MockMaker_MakePodClient_Call) RunAndReturn

type MockMaker_MakeServiceClient_Call

type MockMaker_MakeServiceClient_Call struct {
	*mock.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 (*MockMaker_MakeServiceClient_Call) Run

func (*MockMaker_MakeServiceClient_Call) RunAndReturn

type MockPodClient

type MockPodClient struct {
	mock.Mock
}

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

type MockPodClient_List_Call struct {
	*mock.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 (*MockPodClient_List_Call) Run

func (*MockPodClient_List_Call) RunAndReturn

type MockPodClient_StreamLogs_Call

type MockPodClient_StreamLogs_Call struct {
	*mock.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 (*MockPodClient_StreamLogs_Call) Run

func (*MockPodClient_StreamLogs_Call) RunAndReturn

type MockServiceClient

type MockServiceClient struct {
	mock.Mock
}

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 (*MockServiceClient) Watch

Watch provides a mock function with given fields: ctx, opts

type MockServiceClient_Create_Call

type MockServiceClient_Create_Call struct {
	*mock.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 (*MockServiceClient_Create_Call) Run

func (*MockServiceClient_Create_Call) RunAndReturn

type MockServiceClient_Delete_Call

type MockServiceClient_Delete_Call struct {
	*mock.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 (*MockServiceClient_Delete_Call) Run

func (*MockServiceClient_Delete_Call) RunAndReturn

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

type MockServiceClient_Watch_Call struct {
	*mock.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 (*MockServiceClient_Watch_Call) Run

func (*MockServiceClient_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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