mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodInterface

type PodInterface struct {
	mock.Mock
}

PodInterface is an autogenerated mock type for the PodInterface type

func NewPodInterface

func NewPodInterface(t mockConstructorTestingTNewPodInterface) *PodInterface

NewPodInterface creates a new instance of PodInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PodInterface) Apply

Apply provides a mock function with given fields: ctx, pod, opts

func (*PodInterface) ApplyStatus

func (_m *PodInterface) ApplyStatus(ctx context.Context, pod *v1.PodApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Pod, error)

ApplyStatus provides a mock function with given fields: ctx, pod, opts

func (*PodInterface) Bind

func (_m *PodInterface) Bind(ctx context.Context, binding *corev1.Binding, opts metav1.CreateOptions) error

Bind provides a mock function with given fields: ctx, binding, opts

func (*PodInterface) Create

func (_m *PodInterface) Create(ctx context.Context, pod *corev1.Pod, opts metav1.CreateOptions) (*corev1.Pod, error)

Create provides a mock function with given fields: ctx, pod, opts

func (*PodInterface) Delete

func (_m *PodInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete provides a mock function with given fields: ctx, name, opts

func (*PodInterface) DeleteCollection

func (_m *PodInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection provides a mock function with given fields: ctx, opts, listOpts

func (*PodInterface) EXPECT

func (_m *PodInterface) EXPECT() *PodInterface_Expecter

func (*PodInterface) Evict

func (_m *PodInterface) Evict(ctx context.Context, eviction *v1beta1.Eviction) error

Evict provides a mock function with given fields: ctx, eviction

func (*PodInterface) EvictV1

func (_m *PodInterface) EvictV1(ctx context.Context, eviction *policyv1.Eviction) error

EvictV1 provides a mock function with given fields: ctx, eviction

func (*PodInterface) EvictV1beta1

func (_m *PodInterface) EvictV1beta1(ctx context.Context, eviction *v1beta1.Eviction) error

EvictV1beta1 provides a mock function with given fields: ctx, eviction

func (*PodInterface) Get

func (_m *PodInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Pod, error)

Get provides a mock function with given fields: ctx, name, opts

func (*PodInterface) GetLogs

func (_m *PodInterface) GetLogs(name string, opts *corev1.PodLogOptions) *rest.Request

GetLogs provides a mock function with given fields: name, opts

func (*PodInterface) List

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

func (*PodInterface) Patch

func (_m *PodInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*corev1.Pod, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

func (*PodInterface) ProxyGet

func (_m *PodInterface) ProxyGet(scheme string, name string, port string, path string, params map[string]string) rest.ResponseWrapper

ProxyGet provides a mock function with given fields: scheme, name, port, path, params

func (*PodInterface) Update

func (_m *PodInterface) Update(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)

Update provides a mock function with given fields: ctx, pod, opts

func (*PodInterface) UpdateEphemeralContainers

func (_m *PodInterface) UpdateEphemeralContainers(ctx context.Context, podName string, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)

UpdateEphemeralContainers provides a mock function with given fields: ctx, podName, pod, opts

func (*PodInterface) UpdateStatus

func (_m *PodInterface) UpdateStatus(ctx context.Context, pod *corev1.Pod, opts metav1.UpdateOptions) (*corev1.Pod, error)

UpdateStatus provides a mock function with given fields: ctx, pod, opts

func (*PodInterface) Watch

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

type PodInterface_ApplyStatus_Call

type PodInterface_ApplyStatus_Call struct {
	*mock.Call
}

PodInterface_ApplyStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyStatus'

func (*PodInterface_ApplyStatus_Call) Return

func (*PodInterface_ApplyStatus_Call) Run

type PodInterface_Apply_Call

type PodInterface_Apply_Call struct {
	*mock.Call
}

PodInterface_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'

func (*PodInterface_Apply_Call) Return

func (*PodInterface_Apply_Call) Run

type PodInterface_Bind_Call

type PodInterface_Bind_Call struct {
	*mock.Call
}

PodInterface_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'

func (*PodInterface_Bind_Call) Return

func (*PodInterface_Bind_Call) Run

type PodInterface_Create_Call

type PodInterface_Create_Call struct {
	*mock.Call
}

PodInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*PodInterface_Create_Call) Return

func (*PodInterface_Create_Call) Run

type PodInterface_DeleteCollection_Call

type PodInterface_DeleteCollection_Call struct {
	*mock.Call
}

PodInterface_DeleteCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCollection'

func (*PodInterface_DeleteCollection_Call) Return

func (*PodInterface_DeleteCollection_Call) Run

type PodInterface_Delete_Call

type PodInterface_Delete_Call struct {
	*mock.Call
}

PodInterface_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*PodInterface_Delete_Call) Return

func (*PodInterface_Delete_Call) Run

type PodInterface_EvictV1_Call

type PodInterface_EvictV1_Call struct {
	*mock.Call
}

PodInterface_EvictV1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvictV1'

func (*PodInterface_EvictV1_Call) Return

func (*PodInterface_EvictV1_Call) Run

type PodInterface_EvictV1beta1_Call

type PodInterface_EvictV1beta1_Call struct {
	*mock.Call
}

PodInterface_EvictV1beta1_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvictV1beta1'

func (*PodInterface_EvictV1beta1_Call) Return

func (*PodInterface_EvictV1beta1_Call) Run

type PodInterface_Evict_Call

type PodInterface_Evict_Call struct {
	*mock.Call
}

PodInterface_Evict_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Evict'

func (*PodInterface_Evict_Call) Return

func (*PodInterface_Evict_Call) Run

type PodInterface_Expecter

type PodInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*PodInterface_Expecter) Apply

func (_e *PodInterface_Expecter) Apply(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • pod *v1.PodApplyConfiguration
  • opts metav1.ApplyOptions

func (*PodInterface_Expecter) ApplyStatus

func (_e *PodInterface_Expecter) ApplyStatus(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_ApplyStatus_Call

ApplyStatus is a helper method to define mock.On call

  • ctx context.Context
  • pod *v1.PodApplyConfiguration
  • opts metav1.ApplyOptions

func (*PodInterface_Expecter) Bind

func (_e *PodInterface_Expecter) Bind(ctx interface{}, binding interface{}, opts interface{}) *PodInterface_Bind_Call

Bind is a helper method to define mock.On call

  • ctx context.Context
  • binding *corev1.Binding
  • opts metav1.CreateOptions

func (*PodInterface_Expecter) Create

func (_e *PodInterface_Expecter) Create(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.CreateOptions

func (*PodInterface_Expecter) Delete

func (_e *PodInterface_Expecter) Delete(ctx interface{}, name interface{}, opts interface{}) *PodInterface_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts metav1.DeleteOptions

func (*PodInterface_Expecter) DeleteCollection

func (_e *PodInterface_Expecter) DeleteCollection(ctx interface{}, opts interface{}, listOpts interface{}) *PodInterface_DeleteCollection_Call

DeleteCollection is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.DeleteOptions
  • listOpts metav1.ListOptions

func (*PodInterface_Expecter) Evict

func (_e *PodInterface_Expecter) Evict(ctx interface{}, eviction interface{}) *PodInterface_Evict_Call

Evict is a helper method to define mock.On call

  • ctx context.Context
  • eviction *v1beta1.Eviction

func (*PodInterface_Expecter) EvictV1

func (_e *PodInterface_Expecter) EvictV1(ctx interface{}, eviction interface{}) *PodInterface_EvictV1_Call

EvictV1 is a helper method to define mock.On call

  • ctx context.Context
  • eviction *policyv1.Eviction

func (*PodInterface_Expecter) EvictV1beta1

func (_e *PodInterface_Expecter) EvictV1beta1(ctx interface{}, eviction interface{}) *PodInterface_EvictV1beta1_Call

EvictV1beta1 is a helper method to define mock.On call

  • ctx context.Context
  • eviction *v1beta1.Eviction

func (*PodInterface_Expecter) Get

func (_e *PodInterface_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *PodInterface_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts metav1.GetOptions

func (*PodInterface_Expecter) GetLogs

func (_e *PodInterface_Expecter) GetLogs(name interface{}, opts interface{}) *PodInterface_GetLogs_Call

GetLogs is a helper method to define mock.On call

  • name string
  • opts *corev1.PodLogOptions

func (*PodInterface_Expecter) List

func (_e *PodInterface_Expecter) List(ctx interface{}, opts interface{}) *PodInterface_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.ListOptions

func (*PodInterface_Expecter) Patch

func (_e *PodInterface_Expecter) Patch(ctx interface{}, name interface{}, pt interface{}, data interface{}, opts interface{}, subresources ...interface{}) *PodInterface_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • pt types.PatchType
  • data []byte
  • opts metav1.PatchOptions
  • subresources ...string

func (*PodInterface_Expecter) ProxyGet

func (_e *PodInterface_Expecter) ProxyGet(scheme interface{}, name interface{}, port interface{}, path interface{}, params interface{}) *PodInterface_ProxyGet_Call

ProxyGet is a helper method to define mock.On call

  • scheme string
  • name string
  • port string
  • path string
  • params map[string]string

func (*PodInterface_Expecter) Update

func (_e *PodInterface_Expecter) Update(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) UpdateEphemeralContainers

func (_e *PodInterface_Expecter) UpdateEphemeralContainers(ctx interface{}, podName interface{}, pod interface{}, opts interface{}) *PodInterface_UpdateEphemeralContainers_Call

UpdateEphemeralContainers is a helper method to define mock.On call

  • ctx context.Context
  • podName string
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) UpdateStatus

func (_e *PodInterface_Expecter) UpdateStatus(ctx interface{}, pod interface{}, opts interface{}) *PodInterface_UpdateStatus_Call

UpdateStatus is a helper method to define mock.On call

  • ctx context.Context
  • pod *corev1.Pod
  • opts metav1.UpdateOptions

func (*PodInterface_Expecter) Watch

func (_e *PodInterface_Expecter) Watch(ctx interface{}, opts interface{}) *PodInterface_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • opts metav1.ListOptions

type PodInterface_GetLogs_Call

type PodInterface_GetLogs_Call struct {
	*mock.Call
}

PodInterface_GetLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogs'

func (*PodInterface_GetLogs_Call) Return

func (*PodInterface_GetLogs_Call) Run

type PodInterface_Get_Call

type PodInterface_Get_Call struct {
	*mock.Call
}

PodInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*PodInterface_Get_Call) Return

func (*PodInterface_Get_Call) Run

type PodInterface_List_Call

type PodInterface_List_Call struct {
	*mock.Call
}

PodInterface_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*PodInterface_List_Call) Return

func (*PodInterface_List_Call) Run

type PodInterface_Patch_Call

type PodInterface_Patch_Call struct {
	*mock.Call
}

PodInterface_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*PodInterface_Patch_Call) Return

func (*PodInterface_Patch_Call) Run

func (_c *PodInterface_Patch_Call) Run(run func(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string)) *PodInterface_Patch_Call

type PodInterface_ProxyGet_Call

type PodInterface_ProxyGet_Call struct {
	*mock.Call
}

PodInterface_ProxyGet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProxyGet'

func (*PodInterface_ProxyGet_Call) Return

func (*PodInterface_ProxyGet_Call) Run

func (_c *PodInterface_ProxyGet_Call) Run(run func(scheme string, name string, port string, path string, params map[string]string)) *PodInterface_ProxyGet_Call

type PodInterface_UpdateEphemeralContainers_Call

type PodInterface_UpdateEphemeralContainers_Call struct {
	*mock.Call
}

PodInterface_UpdateEphemeralContainers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateEphemeralContainers'

func (*PodInterface_UpdateEphemeralContainers_Call) Return

func (*PodInterface_UpdateEphemeralContainers_Call) Run

type PodInterface_UpdateStatus_Call

type PodInterface_UpdateStatus_Call struct {
	*mock.Call
}

PodInterface_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'

func (*PodInterface_UpdateStatus_Call) Return

func (*PodInterface_UpdateStatus_Call) Run

type PodInterface_Update_Call

type PodInterface_Update_Call struct {
	*mock.Call
}

PodInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*PodInterface_Update_Call) Return

func (*PodInterface_Update_Call) Run

type PodInterface_Watch_Call

type PodInterface_Watch_Call struct {
	*mock.Call
}

PodInterface_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'

func (*PodInterface_Watch_Call) Return

func (*PodInterface_Watch_Call) Run

Jump to

Keyboard shortcuts

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