mocks

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInterface

type EventInterface struct {
	mock.Mock
}

EventInterface is an autogenerated mock type for the EventInterface type

func (*EventInterface) Apply added in v1.3.0

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

func (*EventInterface) Create

func (_m *EventInterface) Create(ctx context.Context, event *corev1.Event, opts metav1.CreateOptions) (*corev1.Event, error)

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

func (*EventInterface) CreateWithEventNamespace

func (_m *EventInterface) CreateWithEventNamespace(event *corev1.Event) (*corev1.Event, error)

CreateWithEventNamespace provides a mock function with given fields: event

func (*EventInterface) Delete

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

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

func (*EventInterface) DeleteCollection

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

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

func (*EventInterface) Get

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

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

func (*EventInterface) GetFieldSelector

func (_m *EventInterface) GetFieldSelector(involvedObjectName *string, involvedObjectNamespace *string, involvedObjectKind *string, involvedObjectUID *string) fields.Selector

GetFieldSelector provides a mock function with given fields: involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID

func (*EventInterface) List

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

func (*EventInterface) Patch

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

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

func (*EventInterface) PatchWithEventNamespace

func (_m *EventInterface) PatchWithEventNamespace(event *corev1.Event, data []byte) (*corev1.Event, error)

PatchWithEventNamespace provides a mock function with given fields: event, data

func (*EventInterface) Search

func (_m *EventInterface) Search(scheme *runtime.Scheme, objOrRef runtime.Object) (*corev1.EventList, error)

Search provides a mock function with given fields: scheme, objOrRef

func (*EventInterface) Update

func (_m *EventInterface) Update(ctx context.Context, event *corev1.Event, opts metav1.UpdateOptions) (*corev1.Event, error)

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

func (*EventInterface) UpdateWithEventNamespace

func (_m *EventInterface) UpdateWithEventNamespace(event *corev1.Event) (*corev1.Event, error)

UpdateWithEventNamespace provides a mock function with given fields: event

func (*EventInterface) Watch

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

type EventRecorder

type EventRecorder struct {
	mock.Mock
}

EventRecorder is an autogenerated mock type for the EventRecorder type

func (*EventRecorder) Eventf

func (_m *EventRecorder) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, args ...interface{})

Eventf provides a mock function with given fields: object, eventtype, reason, messageFmt, args

func (*EventRecorder) LabeledEventf

func (_m *EventRecorder) LabeledEventf(object runtime.Object, labels map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})

LabeledEventf provides a mock function with given fields: object, labels, eventtype, reason, messageFmt, args

type EventSink

type EventSink struct {
	mock.Mock
}

EventSink is an autogenerated mock type for the EventSink type

func (*EventSink) Create

func (_m *EventSink) Create(event *v1.Event) (*v1.Event, error)

Create provides a mock function with given fields: event

func (*EventSink) Patch

func (_m *EventSink) Patch(oldEvent *v1.Event, data []byte) (*v1.Event, error)

Patch provides a mock function with given fields: oldEvent, data

func (*EventSink) Update

func (_m *EventSink) Update(event *v1.Event) (*v1.Event, error)

Update provides a mock function with given fields: event

Jump to

Keyboard shortcuts

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