mocks

package
v0.0.0-...-e050086 Latest Latest
Warning

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

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

Documentation

Overview

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInformerMock

type CacheInformerMock struct {
	mock.Mock
}

CacheInformerMock is an autogenerated mock type for the Informer type

func NewCacheInformerMock

func NewCacheInformerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheInformerMock

NewCacheInformerMock creates a new instance of CacheInformerMock. 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 (*CacheInformerMock) AddEventHandler

AddEventHandler provides a mock function with given fields: handler

func (*CacheInformerMock) AddEventHandlerWithResyncPeriod

func (_m *CacheInformerMock) AddEventHandlerWithResyncPeriod(handler cache.ResourceEventHandler, resyncPeriod time.Duration) (cache.ResourceEventHandlerRegistration, error)

AddEventHandlerWithResyncPeriod provides a mock function with given fields: handler, resyncPeriod

func (*CacheInformerMock) AddIndexers

func (_m *CacheInformerMock) AddIndexers(indexers cache.Indexers) error

AddIndexers provides a mock function with given fields: indexers

func (*CacheInformerMock) EXPECT

func (*CacheInformerMock) HasSynced

func (_m *CacheInformerMock) HasSynced() bool

HasSynced provides a mock function with given fields:

func (*CacheInformerMock) IsStopped

func (_m *CacheInformerMock) IsStopped() bool

IsStopped provides a mock function with given fields:

func (*CacheInformerMock) RemoveEventHandler

func (_m *CacheInformerMock) RemoveEventHandler(handle cache.ResourceEventHandlerRegistration) error

RemoveEventHandler provides a mock function with given fields: handle

type CacheInformerMock_AddEventHandlerWithResyncPeriod_Call

type CacheInformerMock_AddEventHandlerWithResyncPeriod_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_AddEventHandlerWithResyncPeriod_Call) Run

type CacheInformerMock_AddEventHandler_Call

type CacheInformerMock_AddEventHandler_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_AddEventHandler_Call) Return

func (*CacheInformerMock_AddEventHandler_Call) Run

type CacheInformerMock_AddIndexers_Call

type CacheInformerMock_AddIndexers_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_AddIndexers_Call) Return

func (*CacheInformerMock_AddIndexers_Call) Run

func (*CacheInformerMock_AddIndexers_Call) RunAndReturn

type CacheInformerMock_Expecter

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

func (*CacheInformerMock_Expecter) AddEventHandler

func (_e *CacheInformerMock_Expecter) AddEventHandler(handler interface{}) *CacheInformerMock_AddEventHandler_Call

AddEventHandler is a helper method to define mock.On call

  • handler cache.ResourceEventHandler

func (*CacheInformerMock_Expecter) AddEventHandlerWithResyncPeriod

func (_e *CacheInformerMock_Expecter) AddEventHandlerWithResyncPeriod(handler interface{}, resyncPeriod interface{}) *CacheInformerMock_AddEventHandlerWithResyncPeriod_Call

AddEventHandlerWithResyncPeriod is a helper method to define mock.On call

  • handler cache.ResourceEventHandler
  • resyncPeriod time.Duration

func (*CacheInformerMock_Expecter) AddIndexers

func (_e *CacheInformerMock_Expecter) AddIndexers(indexers interface{}) *CacheInformerMock_AddIndexers_Call

AddIndexers is a helper method to define mock.On call

  • indexers cache.Indexers

func (*CacheInformerMock_Expecter) HasSynced

HasSynced is a helper method to define mock.On call

func (*CacheInformerMock_Expecter) IsStopped

IsStopped is a helper method to define mock.On call

func (*CacheInformerMock_Expecter) RemoveEventHandler

func (_e *CacheInformerMock_Expecter) RemoveEventHandler(handle interface{}) *CacheInformerMock_RemoveEventHandler_Call

RemoveEventHandler is a helper method to define mock.On call

  • handle cache.ResourceEventHandlerRegistration

type CacheInformerMock_HasSynced_Call

type CacheInformerMock_HasSynced_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_HasSynced_Call) Return

func (*CacheInformerMock_HasSynced_Call) Run

func (*CacheInformerMock_HasSynced_Call) RunAndReturn

type CacheInformerMock_IsStopped_Call

type CacheInformerMock_IsStopped_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_IsStopped_Call) Return

func (*CacheInformerMock_IsStopped_Call) Run

func (*CacheInformerMock_IsStopped_Call) RunAndReturn

type CacheInformerMock_RemoveEventHandler_Call

type CacheInformerMock_RemoveEventHandler_Call struct {
	*mock.Call
}

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

func (*CacheInformerMock_RemoveEventHandler_Call) Return

func (*CacheInformerMock_RemoveEventHandler_Call) Run

func (*CacheInformerMock_RemoveEventHandler_Call) RunAndReturn

type CacheWatcherMock

type CacheWatcherMock struct {
	mock.Mock
}

CacheWatcherMock is an autogenerated mock type for the Watcher type

func NewCacheWatcherMock

func NewCacheWatcherMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheWatcherMock

NewCacheWatcherMock creates a new instance of CacheWatcherMock. 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 (*CacheWatcherMock) EXPECT

func (*CacheWatcherMock) Watch

func (_m *CacheWatcherMock) Watch(options v1.ListOptions) (watch.Interface, error)

Watch provides a mock function with given fields: options

type CacheWatcherMock_Expecter

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

func (*CacheWatcherMock_Expecter) Watch

func (_e *CacheWatcherMock_Expecter) Watch(options interface{}) *CacheWatcherMock_Watch_Call

Watch is a helper method to define mock.On call

  • options v1.ListOptions

type CacheWatcherMock_Watch_Call

type CacheWatcherMock_Watch_Call struct {
	*mock.Call
}

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

func (*CacheWatcherMock_Watch_Call) Return

func (*CacheWatcherMock_Watch_Call) Run

func (*CacheWatcherMock_Watch_Call) RunAndReturn

type EventRecorderMock

type EventRecorderMock struct {
	mock.Mock
}

EventRecorderMock is an autogenerated mock type for the EventRecorder type

func NewEventRecorderMock

func NewEventRecorderMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventRecorderMock

NewEventRecorderMock creates a new instance of EventRecorderMock. 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 (*EventRecorderMock) AnnotatedEventf

func (_m *EventRecorderMock) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})

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

func (*EventRecorderMock) EXPECT

func (*EventRecorderMock) Event

func (_m *EventRecorderMock) Event(object runtime.Object, eventtype string, reason string, message string)

Event provides a mock function with given fields: object, eventtype, reason, message

func (*EventRecorderMock) Eventf

func (_m *EventRecorderMock) 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

type EventRecorderMock_AnnotatedEventf_Call

type EventRecorderMock_AnnotatedEventf_Call struct {
	*mock.Call
}

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

func (*EventRecorderMock_AnnotatedEventf_Call) Return

func (*EventRecorderMock_AnnotatedEventf_Call) Run

func (_c *EventRecorderMock_AnnotatedEventf_Call) Run(run func(object runtime.Object, annotations map[string]string, eventtype string, reason string, messageFmt string, args ...interface{})) *EventRecorderMock_AnnotatedEventf_Call

func (*EventRecorderMock_AnnotatedEventf_Call) RunAndReturn

type EventRecorderMock_Event_Call

type EventRecorderMock_Event_Call struct {
	*mock.Call
}

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

func (*EventRecorderMock_Event_Call) Return

func (*EventRecorderMock_Event_Call) Run

func (_c *EventRecorderMock_Event_Call) Run(run func(object runtime.Object, eventtype string, reason string, message string)) *EventRecorderMock_Event_Call

func (*EventRecorderMock_Event_Call) RunAndReturn

type EventRecorderMock_Eventf_Call

type EventRecorderMock_Eventf_Call struct {
	*mock.Call
}

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

func (*EventRecorderMock_Eventf_Call) Return

func (*EventRecorderMock_Eventf_Call) Run

func (_c *EventRecorderMock_Eventf_Call) Run(run func(object runtime.Object, eventtype string, reason string, messageFmt string, args ...interface{})) *EventRecorderMock_Eventf_Call

func (*EventRecorderMock_Eventf_Call) RunAndReturn

func (_c *EventRecorderMock_Eventf_Call) RunAndReturn(run func(runtime.Object, string, string, string, ...interface{})) *EventRecorderMock_Eventf_Call

type EventRecorderMock_Expecter

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

func (*EventRecorderMock_Expecter) AnnotatedEventf

func (_e *EventRecorderMock_Expecter) AnnotatedEventf(object interface{}, annotations interface{}, eventtype interface{}, reason interface{}, messageFmt interface{}, args ...interface{}) *EventRecorderMock_AnnotatedEventf_Call

AnnotatedEventf is a helper method to define mock.On call

  • object runtime.Object
  • annotations map[string]string
  • eventtype string
  • reason string
  • messageFmt string
  • args ...interface{}

func (*EventRecorderMock_Expecter) Event

func (_e *EventRecorderMock_Expecter) Event(object interface{}, eventtype interface{}, reason interface{}, message interface{}) *EventRecorderMock_Event_Call

Event is a helper method to define mock.On call

  • object runtime.Object
  • eventtype string
  • reason string
  • message string

func (*EventRecorderMock_Expecter) Eventf

func (_e *EventRecorderMock_Expecter) Eventf(object interface{}, eventtype interface{}, reason interface{}, messageFmt interface{}, args ...interface{}) *EventRecorderMock_Eventf_Call

Eventf is a helper method to define mock.On call

  • object runtime.Object
  • eventtype string
  • reason string
  • messageFmt string
  • args ...interface{}

type K8SClientMock

type K8SClientMock struct {
	mock.Mock
}

K8SClientMock is an autogenerated mock type for the Client type

func NewK8SClientMock

func NewK8SClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *K8SClientMock

NewK8SClientMock creates a new instance of K8SClientMock. 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 (*K8SClientMock) Create

func (_m *K8SClientMock) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

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

func (*K8SClientMock) Delete

func (_m *K8SClientMock) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

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

func (*K8SClientMock) DeleteAllOf

func (_m *K8SClientMock) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

DeleteAllOf provides a mock function with given fields: ctx, obj, opts

func (*K8SClientMock) EXPECT

func (_m *K8SClientMock) EXPECT() *K8SClientMock_Expecter

func (*K8SClientMock) Get

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

func (*K8SClientMock) GroupVersionKindFor

func (_m *K8SClientMock) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)

GroupVersionKindFor provides a mock function with given fields: obj

func (*K8SClientMock) IsObjectNamespaced

func (_m *K8SClientMock) IsObjectNamespaced(obj runtime.Object) (bool, error)

IsObjectNamespaced provides a mock function with given fields: obj

func (*K8SClientMock) List

func (_m *K8SClientMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

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

func (*K8SClientMock) Patch

func (_m *K8SClientMock) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

Patch provides a mock function with given fields: ctx, obj, patch, opts

func (*K8SClientMock) RESTMapper

func (_m *K8SClientMock) RESTMapper() meta.RESTMapper

RESTMapper provides a mock function with given fields:

func (*K8SClientMock) Scheme

func (_m *K8SClientMock) Scheme() *runtime.Scheme

Scheme provides a mock function with given fields:

func (*K8SClientMock) Status

func (_m *K8SClientMock) Status() client.SubResourceWriter

Status provides a mock function with given fields:

func (*K8SClientMock) SubResource

func (_m *K8SClientMock) SubResource(subResource string) client.SubResourceClient

SubResource provides a mock function with given fields: subResource

func (*K8SClientMock) Update

func (_m *K8SClientMock) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

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

type K8SClientMock_Create_Call

type K8SClientMock_Create_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Create_Call) Return

func (*K8SClientMock_Create_Call) Run

func (*K8SClientMock_Create_Call) RunAndReturn

type K8SClientMock_DeleteAllOf_Call

type K8SClientMock_DeleteAllOf_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_DeleteAllOf_Call) Return

func (*K8SClientMock_DeleteAllOf_Call) Run

func (*K8SClientMock_DeleteAllOf_Call) RunAndReturn

type K8SClientMock_Delete_Call

type K8SClientMock_Delete_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Delete_Call) Return

func (*K8SClientMock_Delete_Call) Run

func (*K8SClientMock_Delete_Call) RunAndReturn

type K8SClientMock_Expecter

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

func (*K8SClientMock_Expecter) Create

func (_e *K8SClientMock_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.CreateOption

func (*K8SClientMock_Expecter) Delete

func (_e *K8SClientMock_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.DeleteOption

func (*K8SClientMock_Expecter) DeleteAllOf

func (_e *K8SClientMock_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_DeleteAllOf_Call

DeleteAllOf is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.DeleteAllOfOption

func (*K8SClientMock_Expecter) Get

func (_e *K8SClientMock_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key types.NamespacedName
  • obj client.Object
  • opts ...client.GetOption

func (*K8SClientMock_Expecter) GroupVersionKindFor

func (_e *K8SClientMock_Expecter) GroupVersionKindFor(obj interface{}) *K8SClientMock_GroupVersionKindFor_Call

GroupVersionKindFor is a helper method to define mock.On call

  • obj runtime.Object

func (*K8SClientMock_Expecter) IsObjectNamespaced

func (_e *K8SClientMock_Expecter) IsObjectNamespaced(obj interface{}) *K8SClientMock_IsObjectNamespaced_Call

IsObjectNamespaced is a helper method to define mock.On call

  • obj runtime.Object

func (*K8SClientMock_Expecter) List

func (_e *K8SClientMock_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *K8SClientMock_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • list client.ObjectList
  • opts ...client.ListOption

func (*K8SClientMock_Expecter) Patch

func (_e *K8SClientMock_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *K8SClientMock_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • patch client.Patch
  • opts ...client.PatchOption

func (*K8SClientMock_Expecter) RESTMapper

RESTMapper is a helper method to define mock.On call

func (*K8SClientMock_Expecter) Scheme

Scheme is a helper method to define mock.On call

func (*K8SClientMock_Expecter) Status

Status is a helper method to define mock.On call

func (*K8SClientMock_Expecter) SubResource

func (_e *K8SClientMock_Expecter) SubResource(subResource interface{}) *K8SClientMock_SubResource_Call

SubResource is a helper method to define mock.On call

  • subResource string

func (*K8SClientMock_Expecter) Update

func (_e *K8SClientMock_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *K8SClientMock_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • obj client.Object
  • opts ...client.UpdateOption

type K8SClientMock_Get_Call

type K8SClientMock_Get_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Get_Call) Return

func (*K8SClientMock_Get_Call) Run

func (*K8SClientMock_Get_Call) RunAndReturn

type K8SClientMock_GroupVersionKindFor_Call

type K8SClientMock_GroupVersionKindFor_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_GroupVersionKindFor_Call) Return

func (*K8SClientMock_GroupVersionKindFor_Call) Run

func (*K8SClientMock_GroupVersionKindFor_Call) RunAndReturn

type K8SClientMock_IsObjectNamespaced_Call

type K8SClientMock_IsObjectNamespaced_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_IsObjectNamespaced_Call) Return

func (*K8SClientMock_IsObjectNamespaced_Call) Run

func (*K8SClientMock_IsObjectNamespaced_Call) RunAndReturn

type K8SClientMock_List_Call

type K8SClientMock_List_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_List_Call) Return

func (*K8SClientMock_List_Call) Run

func (*K8SClientMock_List_Call) RunAndReturn

type K8SClientMock_Patch_Call

type K8SClientMock_Patch_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Patch_Call) Return

func (*K8SClientMock_Patch_Call) Run

func (*K8SClientMock_Patch_Call) RunAndReturn

type K8SClientMock_RESTMapper_Call

type K8SClientMock_RESTMapper_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_RESTMapper_Call) Return

func (*K8SClientMock_RESTMapper_Call) Run

func (*K8SClientMock_RESTMapper_Call) RunAndReturn

type K8SClientMock_Scheme_Call

type K8SClientMock_Scheme_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Scheme_Call) Return

func (*K8SClientMock_Scheme_Call) Run

func (*K8SClientMock_Scheme_Call) RunAndReturn

func (_c *K8SClientMock_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *K8SClientMock_Scheme_Call

type K8SClientMock_Status_Call

type K8SClientMock_Status_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Status_Call) Return

func (*K8SClientMock_Status_Call) Run

func (*K8SClientMock_Status_Call) RunAndReturn

type K8SClientMock_SubResource_Call

type K8SClientMock_SubResource_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_SubResource_Call) Return

func (*K8SClientMock_SubResource_Call) Run

func (*K8SClientMock_SubResource_Call) RunAndReturn

type K8SClientMock_Update_Call

type K8SClientMock_Update_Call struct {
	*mock.Call
}

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

func (*K8SClientMock_Update_Call) Return

func (*K8SClientMock_Update_Call) Run

func (*K8SClientMock_Update_Call) RunAndReturn

type ReaderMock

type ReaderMock struct {
	mock.Mock
}

ReaderMock is an autogenerated mock type for the Reader type

func NewReaderMock

func NewReaderMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReaderMock

NewReaderMock creates a new instance of ReaderMock. 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 (*ReaderMock) EXPECT

func (_m *ReaderMock) EXPECT() *ReaderMock_Expecter

func (*ReaderMock) Get

func (_m *ReaderMock) Get(ctx context.Context, key types.NamespacedName, obj client.Object, opts ...client.GetOption) error

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

func (*ReaderMock) List

func (_m *ReaderMock) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

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

type ReaderMock_Expecter

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

func (*ReaderMock_Expecter) Get

func (_e *ReaderMock_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *ReaderMock_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key types.NamespacedName
  • obj client.Object
  • opts ...client.GetOption

func (*ReaderMock_Expecter) List

func (_e *ReaderMock_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *ReaderMock_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • list client.ObjectList
  • opts ...client.ListOption

type ReaderMock_Get_Call

type ReaderMock_Get_Call struct {
	*mock.Call
}

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

func (*ReaderMock_Get_Call) Return

func (*ReaderMock_Get_Call) Run

func (*ReaderMock_Get_Call) RunAndReturn

type ReaderMock_List_Call

type ReaderMock_List_Call struct {
	*mock.Call
}

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

func (*ReaderMock_List_Call) Return

func (*ReaderMock_List_Call) Run

func (*ReaderMock_List_Call) RunAndReturn

type ResourceEventHandlerMock

type ResourceEventHandlerMock struct {
	mock.Mock
}

ResourceEventHandlerMock is an autogenerated mock type for the ResourceEventHandler type

func NewResourceEventHandlerMock

func NewResourceEventHandlerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceEventHandlerMock

NewResourceEventHandlerMock creates a new instance of ResourceEventHandlerMock. 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 (*ResourceEventHandlerMock) EXPECT

func (*ResourceEventHandlerMock) OnAdd

func (_m *ResourceEventHandlerMock) OnAdd(obj interface{}, isInInitialList bool)

OnAdd provides a mock function with given fields: obj, isInInitialList

func (*ResourceEventHandlerMock) OnDelete

func (_m *ResourceEventHandlerMock) OnDelete(obj interface{})

OnDelete provides a mock function with given fields: obj

func (*ResourceEventHandlerMock) OnUpdate

func (_m *ResourceEventHandlerMock) OnUpdate(oldObj interface{}, newObj interface{})

OnUpdate provides a mock function with given fields: oldObj, newObj

type ResourceEventHandlerMock_Expecter

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

func (*ResourceEventHandlerMock_Expecter) OnAdd

func (_e *ResourceEventHandlerMock_Expecter) OnAdd(obj interface{}, isInInitialList interface{}) *ResourceEventHandlerMock_OnAdd_Call

OnAdd is a helper method to define mock.On call

  • obj interface{}
  • isInInitialList bool

func (*ResourceEventHandlerMock_Expecter) OnDelete

OnDelete is a helper method to define mock.On call

  • obj interface{}

func (*ResourceEventHandlerMock_Expecter) OnUpdate

func (_e *ResourceEventHandlerMock_Expecter) OnUpdate(oldObj interface{}, newObj interface{}) *ResourceEventHandlerMock_OnUpdate_Call

OnUpdate is a helper method to define mock.On call

  • oldObj interface{}
  • newObj interface{}

type ResourceEventHandlerMock_OnAdd_Call

type ResourceEventHandlerMock_OnAdd_Call struct {
	*mock.Call
}

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

func (*ResourceEventHandlerMock_OnAdd_Call) Return

func (*ResourceEventHandlerMock_OnAdd_Call) Run

func (_c *ResourceEventHandlerMock_OnAdd_Call) Run(run func(obj interface{}, isInInitialList bool)) *ResourceEventHandlerMock_OnAdd_Call

func (*ResourceEventHandlerMock_OnAdd_Call) RunAndReturn

func (_c *ResourceEventHandlerMock_OnAdd_Call) RunAndReturn(run func(interface{}, bool)) *ResourceEventHandlerMock_OnAdd_Call

type ResourceEventHandlerMock_OnDelete_Call

type ResourceEventHandlerMock_OnDelete_Call struct {
	*mock.Call
}

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

func (*ResourceEventHandlerMock_OnDelete_Call) Return

func (*ResourceEventHandlerMock_OnDelete_Call) Run

func (*ResourceEventHandlerMock_OnDelete_Call) RunAndReturn

func (_c *ResourceEventHandlerMock_OnDelete_Call) RunAndReturn(run func(interface{})) *ResourceEventHandlerMock_OnDelete_Call

type ResourceEventHandlerMock_OnUpdate_Call

type ResourceEventHandlerMock_OnUpdate_Call struct {
	*mock.Call
}

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

func (*ResourceEventHandlerMock_OnUpdate_Call) Return

func (*ResourceEventHandlerMock_OnUpdate_Call) Run

func (_c *ResourceEventHandlerMock_OnUpdate_Call) Run(run func(oldObj interface{}, newObj interface{})) *ResourceEventHandlerMock_OnUpdate_Call

func (*ResourceEventHandlerMock_OnUpdate_Call) RunAndReturn

func (_c *ResourceEventHandlerMock_OnUpdate_Call) RunAndReturn(run func(interface{}, interface{})) *ResourceEventHandlerMock_OnUpdate_Call

type RoundTripperMock

type RoundTripperMock struct {
	mock.Mock
}

RoundTripperMock is an autogenerated mock type for the RoundTripper type

func NewRoundTripperMock

func NewRoundTripperMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoundTripperMock

NewRoundTripperMock creates a new instance of RoundTripperMock. 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 (*RoundTripperMock) EXPECT

func (*RoundTripperMock) RoundTrip

func (_m *RoundTripperMock) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

type RoundTripperMock_Expecter

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

func (*RoundTripperMock_Expecter) RoundTrip

func (_e *RoundTripperMock_Expecter) RoundTrip(_a0 interface{}) *RoundTripperMock_RoundTrip_Call

RoundTrip is a helper method to define mock.On call

  • _a0 *http.Request

type RoundTripperMock_RoundTrip_Call

type RoundTripperMock_RoundTrip_Call struct {
	*mock.Call
}

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

func (*RoundTripperMock_RoundTrip_Call) Return

func (*RoundTripperMock_RoundTrip_Call) Run

func (*RoundTripperMock_RoundTrip_Call) RunAndReturn

type RuntimeControllerMock

type RuntimeControllerMock struct {
	mock.Mock
}

RuntimeControllerMock is an autogenerated mock type for the Controller type

func NewRuntimeControllerMock

func NewRuntimeControllerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeControllerMock

NewRuntimeControllerMock creates a new instance of RuntimeControllerMock. 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 (*RuntimeControllerMock) EXPECT

func (*RuntimeControllerMock) GetLogger

func (_m *RuntimeControllerMock) GetLogger() logr.Logger

GetLogger provides a mock function with given fields:

func (*RuntimeControllerMock) Reconcile

Reconcile provides a mock function with given fields: _a0, _a1

func (*RuntimeControllerMock) Start

func (_m *RuntimeControllerMock) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*RuntimeControllerMock) Watch

func (_m *RuntimeControllerMock) Watch(src source.Source, eventhandler handler.EventHandler, predicates ...predicate.Predicate) error

Watch provides a mock function with given fields: src, eventhandler, predicates

type RuntimeControllerMock_Expecter

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

func (*RuntimeControllerMock_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*RuntimeControllerMock_Expecter) Reconcile

func (_e *RuntimeControllerMock_Expecter) Reconcile(_a0 interface{}, _a1 interface{}) *RuntimeControllerMock_Reconcile_Call

Reconcile is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 reconcile.Request

func (*RuntimeControllerMock_Expecter) Start

Start is a helper method to define mock.On call

  • ctx context.Context

func (*RuntimeControllerMock_Expecter) Watch

func (_e *RuntimeControllerMock_Expecter) Watch(src interface{}, eventhandler interface{}, predicates ...interface{}) *RuntimeControllerMock_Watch_Call

Watch is a helper method to define mock.On call

  • src source.Source
  • eventhandler handler.EventHandler
  • predicates ...predicate.Predicate

type RuntimeControllerMock_GetLogger_Call

type RuntimeControllerMock_GetLogger_Call struct {
	*mock.Call
}

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

func (*RuntimeControllerMock_GetLogger_Call) Return

func (*RuntimeControllerMock_GetLogger_Call) Run

func (*RuntimeControllerMock_GetLogger_Call) RunAndReturn

type RuntimeControllerMock_Reconcile_Call

type RuntimeControllerMock_Reconcile_Call struct {
	*mock.Call
}

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

func (*RuntimeControllerMock_Reconcile_Call) Return

func (*RuntimeControllerMock_Reconcile_Call) Run

func (*RuntimeControllerMock_Reconcile_Call) RunAndReturn

type RuntimeControllerMock_Start_Call

type RuntimeControllerMock_Start_Call struct {
	*mock.Call
}

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

func (*RuntimeControllerMock_Start_Call) Return

func (*RuntimeControllerMock_Start_Call) Run

func (*RuntimeControllerMock_Start_Call) RunAndReturn

type RuntimeControllerMock_Watch_Call

type RuntimeControllerMock_Watch_Call struct {
	*mock.Call
}

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

func (*RuntimeControllerMock_Watch_Call) Return

func (*RuntimeControllerMock_Watch_Call) Run

func (*RuntimeControllerMock_Watch_Call) RunAndReturn

type StatFSMock

type StatFSMock struct {
	mock.Mock
}

StatFSMock is an autogenerated mock type for the StatFS type

func NewStatFSMock

func NewStatFSMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatFSMock

NewStatFSMock creates a new instance of StatFSMock. 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 (*StatFSMock) EXPECT

func (_m *StatFSMock) EXPECT() *StatFSMock_Expecter

func (*StatFSMock) Open

func (_m *StatFSMock) Open(name string) (fs.File, error)

Open provides a mock function with given fields: name

func (*StatFSMock) Stat

func (_m *StatFSMock) Stat(name string) (fs.FileInfo, error)

Stat provides a mock function with given fields: name

type StatFSMock_Expecter

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

func (*StatFSMock_Expecter) Open

func (_e *StatFSMock_Expecter) Open(name interface{}) *StatFSMock_Open_Call

Open is a helper method to define mock.On call

  • name string

func (*StatFSMock_Expecter) Stat

func (_e *StatFSMock_Expecter) Stat(name interface{}) *StatFSMock_Stat_Call

Stat is a helper method to define mock.On call

  • name string

type StatFSMock_Open_Call

type StatFSMock_Open_Call struct {
	*mock.Call
}

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

func (*StatFSMock_Open_Call) Return

func (_c *StatFSMock_Open_Call) Return(_a0 fs.File, _a1 error) *StatFSMock_Open_Call

func (*StatFSMock_Open_Call) Run

func (_c *StatFSMock_Open_Call) Run(run func(name string)) *StatFSMock_Open_Call

func (*StatFSMock_Open_Call) RunAndReturn

func (_c *StatFSMock_Open_Call) RunAndReturn(run func(string) (fs.File, error)) *StatFSMock_Open_Call

type StatFSMock_Stat_Call

type StatFSMock_Stat_Call struct {
	*mock.Call
}

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

func (*StatFSMock_Stat_Call) Return

func (*StatFSMock_Stat_Call) Run

func (_c *StatFSMock_Stat_Call) Run(run func(name string)) *StatFSMock_Stat_Call

func (*StatFSMock_Stat_Call) RunAndReturn

func (_c *StatFSMock_Stat_Call) RunAndReturn(run func(string) (fs.FileInfo, error)) *StatFSMock_Stat_Call

type SyncingSourceMock

type SyncingSourceMock struct {
	mock.Mock
}

SyncingSourceMock is an autogenerated mock type for the SyncingSource type

func NewSyncingSourceMock

func NewSyncingSourceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncingSourceMock

NewSyncingSourceMock creates a new instance of SyncingSourceMock. 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 (*SyncingSourceMock) EXPECT

func (*SyncingSourceMock) Start

Start provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SyncingSourceMock) WaitForSync

func (_m *SyncingSourceMock) WaitForSync(ctx context.Context) error

WaitForSync provides a mock function with given fields: ctx

type SyncingSourceMock_Expecter

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

func (*SyncingSourceMock_Expecter) Start

func (_e *SyncingSourceMock_Expecter) Start(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 ...interface{}) *SyncingSourceMock_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 handler.EventHandler
  • _a2 workqueue.RateLimitingInterface
  • _a3 ...predicate.Predicate

func (*SyncingSourceMock_Expecter) WaitForSync

func (_e *SyncingSourceMock_Expecter) WaitForSync(ctx interface{}) *SyncingSourceMock_WaitForSync_Call

WaitForSync is a helper method to define mock.On call

  • ctx context.Context

type SyncingSourceMock_Start_Call

type SyncingSourceMock_Start_Call struct {
	*mock.Call
}

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

func (*SyncingSourceMock_Start_Call) Return

func (*SyncingSourceMock_Start_Call) Run

type SyncingSourceMock_WaitForSync_Call

type SyncingSourceMock_WaitForSync_Call struct {
	*mock.Call
}

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

func (*SyncingSourceMock_WaitForSync_Call) Return

func (*SyncingSourceMock_WaitForSync_Call) Run

func (*SyncingSourceMock_WaitForSync_Call) RunAndReturn

Jump to

Keyboard shortcuts

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