mocks

package
v0.0.0-...-51bb0a0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 29 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.

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 ClientStatsdMock

type ClientStatsdMock struct {
	mock.Mock
}

ClientStatsdMock is an autogenerated mock type for the ClientInterface type

func NewClientStatsdMock

func NewClientStatsdMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientStatsdMock

NewClientStatsdMock creates a new instance of ClientStatsdMock. 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 (*ClientStatsdMock) Close

func (_m *ClientStatsdMock) Close() error

Close provides a mock function with given fields:

func (*ClientStatsdMock) Count

func (_m *ClientStatsdMock) Count(name string, value int64, tags []string, rate float64) error

Count provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) Decr

func (_m *ClientStatsdMock) Decr(name string, tags []string, rate float64) error

Decr provides a mock function with given fields: name, tags, rate

func (*ClientStatsdMock) Distribution

func (_m *ClientStatsdMock) Distribution(name string, value float64, tags []string, rate float64) error

Distribution provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) EXPECT

func (*ClientStatsdMock) Event

func (_m *ClientStatsdMock) Event(e *statsd.Event) error

Event provides a mock function with given fields: e

func (*ClientStatsdMock) Flush

func (_m *ClientStatsdMock) Flush() error

Flush provides a mock function with given fields:

func (*ClientStatsdMock) Gauge

func (_m *ClientStatsdMock) Gauge(name string, value float64, tags []string, rate float64) error

Gauge provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) Histogram

func (_m *ClientStatsdMock) Histogram(name string, value float64, tags []string, rate float64) error

Histogram provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) Incr

func (_m *ClientStatsdMock) Incr(name string, tags []string, rate float64) error

Incr provides a mock function with given fields: name, tags, rate

func (*ClientStatsdMock) ServiceCheck

func (_m *ClientStatsdMock) ServiceCheck(sc *statsd.ServiceCheck) error

ServiceCheck provides a mock function with given fields: sc

func (*ClientStatsdMock) Set

func (_m *ClientStatsdMock) Set(name string, value string, tags []string, rate float64) error

Set provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) SetWriteTimeout

func (_m *ClientStatsdMock) SetWriteTimeout(d time.Duration) error

SetWriteTimeout provides a mock function with given fields: d

func (*ClientStatsdMock) SimpleEvent

func (_m *ClientStatsdMock) SimpleEvent(title string, text string) error

SimpleEvent provides a mock function with given fields: title, text

func (*ClientStatsdMock) SimpleServiceCheck

func (_m *ClientStatsdMock) SimpleServiceCheck(name string, status statsd.ServiceCheckStatus) error

SimpleServiceCheck provides a mock function with given fields: name, status

func (*ClientStatsdMock) TimeInMilliseconds

func (_m *ClientStatsdMock) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error

TimeInMilliseconds provides a mock function with given fields: name, value, tags, rate

func (*ClientStatsdMock) Timing

func (_m *ClientStatsdMock) Timing(name string, value time.Duration, tags []string, rate float64) error

Timing provides a mock function with given fields: name, value, tags, rate

type ClientStatsdMock_Close_Call

type ClientStatsdMock_Close_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Close_Call) Return

func (*ClientStatsdMock_Close_Call) Run

func (*ClientStatsdMock_Close_Call) RunAndReturn

func (_c *ClientStatsdMock_Close_Call) RunAndReturn(run func() error) *ClientStatsdMock_Close_Call

type ClientStatsdMock_Count_Call

type ClientStatsdMock_Count_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Count_Call) Return

func (*ClientStatsdMock_Count_Call) Run

func (_c *ClientStatsdMock_Count_Call) Run(run func(name string, value int64, tags []string, rate float64)) *ClientStatsdMock_Count_Call

func (*ClientStatsdMock_Count_Call) RunAndReturn

type ClientStatsdMock_Decr_Call

type ClientStatsdMock_Decr_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Decr_Call) Return

func (*ClientStatsdMock_Decr_Call) Run

func (_c *ClientStatsdMock_Decr_Call) Run(run func(name string, tags []string, rate float64)) *ClientStatsdMock_Decr_Call

func (*ClientStatsdMock_Decr_Call) RunAndReturn

type ClientStatsdMock_Distribution_Call

type ClientStatsdMock_Distribution_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Distribution_Call) Return

func (*ClientStatsdMock_Distribution_Call) Run

func (*ClientStatsdMock_Distribution_Call) RunAndReturn

type ClientStatsdMock_Event_Call

type ClientStatsdMock_Event_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Event_Call) Return

func (*ClientStatsdMock_Event_Call) Run

func (*ClientStatsdMock_Event_Call) RunAndReturn

type ClientStatsdMock_Expecter

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

func (*ClientStatsdMock_Expecter) Close

Close is a helper method to define mock.On call

func (*ClientStatsdMock_Expecter) Count

func (_e *ClientStatsdMock_Expecter) Count(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Count_Call

Count is a helper method to define mock.On call

  • name string
  • value int64
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Decr

func (_e *ClientStatsdMock_Expecter) Decr(name interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Decr_Call

Decr is a helper method to define mock.On call

  • name string
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Distribution

func (_e *ClientStatsdMock_Expecter) Distribution(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Distribution_Call

Distribution is a helper method to define mock.On call

  • name string
  • value float64
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Event

func (_e *ClientStatsdMock_Expecter) Event(e interface{}) *ClientStatsdMock_Event_Call

Event is a helper method to define mock.On call

  • e *statsd.Event

func (*ClientStatsdMock_Expecter) Flush

Flush is a helper method to define mock.On call

func (*ClientStatsdMock_Expecter) Gauge

func (_e *ClientStatsdMock_Expecter) Gauge(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Gauge_Call

Gauge is a helper method to define mock.On call

  • name string
  • value float64
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Histogram

func (_e *ClientStatsdMock_Expecter) Histogram(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Histogram_Call

Histogram is a helper method to define mock.On call

  • name string
  • value float64
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Incr

func (_e *ClientStatsdMock_Expecter) Incr(name interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Incr_Call

Incr is a helper method to define mock.On call

  • name string
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) ServiceCheck

func (_e *ClientStatsdMock_Expecter) ServiceCheck(sc interface{}) *ClientStatsdMock_ServiceCheck_Call

ServiceCheck is a helper method to define mock.On call

  • sc *statsd.ServiceCheck

func (*ClientStatsdMock_Expecter) Set

func (_e *ClientStatsdMock_Expecter) Set(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Set_Call

Set is a helper method to define mock.On call

  • name string
  • value string
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) SetWriteTimeout

func (_e *ClientStatsdMock_Expecter) SetWriteTimeout(d interface{}) *ClientStatsdMock_SetWriteTimeout_Call

SetWriteTimeout is a helper method to define mock.On call

  • d time.Duration

func (*ClientStatsdMock_Expecter) SimpleEvent

func (_e *ClientStatsdMock_Expecter) SimpleEvent(title interface{}, text interface{}) *ClientStatsdMock_SimpleEvent_Call

SimpleEvent is a helper method to define mock.On call

  • title string
  • text string

func (*ClientStatsdMock_Expecter) SimpleServiceCheck

func (_e *ClientStatsdMock_Expecter) SimpleServiceCheck(name interface{}, status interface{}) *ClientStatsdMock_SimpleServiceCheck_Call

SimpleServiceCheck is a helper method to define mock.On call

  • name string
  • status statsd.ServiceCheckStatus

func (*ClientStatsdMock_Expecter) TimeInMilliseconds

func (_e *ClientStatsdMock_Expecter) TimeInMilliseconds(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_TimeInMilliseconds_Call

TimeInMilliseconds is a helper method to define mock.On call

  • name string
  • value float64
  • tags []string
  • rate float64

func (*ClientStatsdMock_Expecter) Timing

func (_e *ClientStatsdMock_Expecter) Timing(name interface{}, value interface{}, tags interface{}, rate interface{}) *ClientStatsdMock_Timing_Call

Timing is a helper method to define mock.On call

  • name string
  • value time.Duration
  • tags []string
  • rate float64

type ClientStatsdMock_Flush_Call

type ClientStatsdMock_Flush_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Flush_Call) Return

func (*ClientStatsdMock_Flush_Call) Run

func (*ClientStatsdMock_Flush_Call) RunAndReturn

func (_c *ClientStatsdMock_Flush_Call) RunAndReturn(run func() error) *ClientStatsdMock_Flush_Call

type ClientStatsdMock_Gauge_Call

type ClientStatsdMock_Gauge_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Gauge_Call) Return

func (*ClientStatsdMock_Gauge_Call) Run

func (_c *ClientStatsdMock_Gauge_Call) Run(run func(name string, value float64, tags []string, rate float64)) *ClientStatsdMock_Gauge_Call

func (*ClientStatsdMock_Gauge_Call) RunAndReturn

type ClientStatsdMock_Histogram_Call

type ClientStatsdMock_Histogram_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Histogram_Call) Return

func (*ClientStatsdMock_Histogram_Call) Run

func (_c *ClientStatsdMock_Histogram_Call) Run(run func(name string, value float64, tags []string, rate float64)) *ClientStatsdMock_Histogram_Call

func (*ClientStatsdMock_Histogram_Call) RunAndReturn

type ClientStatsdMock_Incr_Call

type ClientStatsdMock_Incr_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Incr_Call) Return

func (*ClientStatsdMock_Incr_Call) Run

func (_c *ClientStatsdMock_Incr_Call) Run(run func(name string, tags []string, rate float64)) *ClientStatsdMock_Incr_Call

func (*ClientStatsdMock_Incr_Call) RunAndReturn

type ClientStatsdMock_ServiceCheck_Call

type ClientStatsdMock_ServiceCheck_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_ServiceCheck_Call) Return

func (*ClientStatsdMock_ServiceCheck_Call) Run

func (*ClientStatsdMock_ServiceCheck_Call) RunAndReturn

type ClientStatsdMock_SetWriteTimeout_Call

type ClientStatsdMock_SetWriteTimeout_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_SetWriteTimeout_Call) Return

func (*ClientStatsdMock_SetWriteTimeout_Call) Run

func (*ClientStatsdMock_SetWriteTimeout_Call) RunAndReturn

type ClientStatsdMock_Set_Call

type ClientStatsdMock_Set_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Set_Call) Return

func (*ClientStatsdMock_Set_Call) Run

func (_c *ClientStatsdMock_Set_Call) Run(run func(name string, value string, tags []string, rate float64)) *ClientStatsdMock_Set_Call

func (*ClientStatsdMock_Set_Call) RunAndReturn

type ClientStatsdMock_SimpleEvent_Call

type ClientStatsdMock_SimpleEvent_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_SimpleEvent_Call) Return

func (*ClientStatsdMock_SimpleEvent_Call) Run

func (*ClientStatsdMock_SimpleEvent_Call) RunAndReturn

type ClientStatsdMock_SimpleServiceCheck_Call

type ClientStatsdMock_SimpleServiceCheck_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_SimpleServiceCheck_Call) Return

func (*ClientStatsdMock_SimpleServiceCheck_Call) Run

func (*ClientStatsdMock_SimpleServiceCheck_Call) RunAndReturn

type ClientStatsdMock_TimeInMilliseconds_Call

type ClientStatsdMock_TimeInMilliseconds_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_TimeInMilliseconds_Call) Return

func (*ClientStatsdMock_TimeInMilliseconds_Call) Run

func (*ClientStatsdMock_TimeInMilliseconds_Call) RunAndReturn

type ClientStatsdMock_Timing_Call

type ClientStatsdMock_Timing_Call struct {
	*mock.Call
}

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

func (*ClientStatsdMock_Timing_Call) Return

func (*ClientStatsdMock_Timing_Call) Run

func (_c *ClientStatsdMock_Timing_Call) Run(run func(name string, value time.Duration, tags []string, rate float64)) *ClientStatsdMock_Timing_Call

func (*ClientStatsdMock_Timing_Call) RunAndReturn

type EventBroadcasterMock

type EventBroadcasterMock struct {
	mock.Mock
}

EventBroadcasterMock is an autogenerated mock type for the EventBroadcaster type

func NewEventBroadcasterMock

func NewEventBroadcasterMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventBroadcasterMock

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

func (*EventBroadcasterMock) NewRecorder

func (_m *EventBroadcasterMock) NewRecorder(scheme *runtime.Scheme, source v1.EventSource) record.EventRecorderLogger

NewRecorder provides a mock function with given fields: scheme, source

func (*EventBroadcasterMock) Shutdown

func (_m *EventBroadcasterMock) Shutdown()

Shutdown provides a mock function with given fields:

func (*EventBroadcasterMock) StartEventWatcher

func (_m *EventBroadcasterMock) StartEventWatcher(eventHandler func(*v1.Event)) watch.Interface

StartEventWatcher provides a mock function with given fields: eventHandler

func (*EventBroadcasterMock) StartLogging

func (_m *EventBroadcasterMock) StartLogging(logf func(string, ...interface{})) watch.Interface

StartLogging provides a mock function with given fields: logf

func (*EventBroadcasterMock) StartRecordingToSink

func (_m *EventBroadcasterMock) StartRecordingToSink(sink record.EventSink) watch.Interface

StartRecordingToSink provides a mock function with given fields: sink

func (*EventBroadcasterMock) StartStructuredLogging

func (_m *EventBroadcasterMock) StartStructuredLogging(verbosity klog.Level) watch.Interface

StartStructuredLogging provides a mock function with given fields: verbosity

type EventBroadcasterMock_Expecter

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

func (*EventBroadcasterMock_Expecter) NewRecorder

func (_e *EventBroadcasterMock_Expecter) NewRecorder(scheme interface{}, source interface{}) *EventBroadcasterMock_NewRecorder_Call

NewRecorder is a helper method to define mock.On call

  • scheme *runtime.Scheme
  • source v1.EventSource

func (*EventBroadcasterMock_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*EventBroadcasterMock_Expecter) StartEventWatcher

func (_e *EventBroadcasterMock_Expecter) StartEventWatcher(eventHandler interface{}) *EventBroadcasterMock_StartEventWatcher_Call

StartEventWatcher is a helper method to define mock.On call

  • eventHandler func(*v1.Event)

func (*EventBroadcasterMock_Expecter) StartLogging

func (_e *EventBroadcasterMock_Expecter) StartLogging(logf interface{}) *EventBroadcasterMock_StartLogging_Call

StartLogging is a helper method to define mock.On call

  • logf func(string , ...interface{})

func (*EventBroadcasterMock_Expecter) StartRecordingToSink

func (_e *EventBroadcasterMock_Expecter) StartRecordingToSink(sink interface{}) *EventBroadcasterMock_StartRecordingToSink_Call

StartRecordingToSink is a helper method to define mock.On call

  • sink record.EventSink

func (*EventBroadcasterMock_Expecter) StartStructuredLogging

func (_e *EventBroadcasterMock_Expecter) StartStructuredLogging(verbosity interface{}) *EventBroadcasterMock_StartStructuredLogging_Call

StartStructuredLogging is a helper method to define mock.On call

  • verbosity klog.Level

type EventBroadcasterMock_NewRecorder_Call

type EventBroadcasterMock_NewRecorder_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_NewRecorder_Call) Return

func (*EventBroadcasterMock_NewRecorder_Call) Run

func (*EventBroadcasterMock_NewRecorder_Call) RunAndReturn

type EventBroadcasterMock_Shutdown_Call

type EventBroadcasterMock_Shutdown_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_Shutdown_Call) Return

func (*EventBroadcasterMock_Shutdown_Call) Run

func (*EventBroadcasterMock_Shutdown_Call) RunAndReturn

type EventBroadcasterMock_StartEventWatcher_Call

type EventBroadcasterMock_StartEventWatcher_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_StartEventWatcher_Call) Return

func (*EventBroadcasterMock_StartEventWatcher_Call) Run

func (*EventBroadcasterMock_StartEventWatcher_Call) RunAndReturn

type EventBroadcasterMock_StartLogging_Call

type EventBroadcasterMock_StartLogging_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_StartLogging_Call) Return

func (*EventBroadcasterMock_StartLogging_Call) Run

func (_c *EventBroadcasterMock_StartLogging_Call) Run(run func(logf func(string, ...interface{}))) *EventBroadcasterMock_StartLogging_Call

func (*EventBroadcasterMock_StartLogging_Call) RunAndReturn

func (_c *EventBroadcasterMock_StartLogging_Call) RunAndReturn(run func(func(string, ...interface{})) watch.Interface) *EventBroadcasterMock_StartLogging_Call

type EventBroadcasterMock_StartRecordingToSink_Call

type EventBroadcasterMock_StartRecordingToSink_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_StartRecordingToSink_Call) Return

func (*EventBroadcasterMock_StartRecordingToSink_Call) Run

func (*EventBroadcasterMock_StartRecordingToSink_Call) RunAndReturn

type EventBroadcasterMock_StartStructuredLogging_Call

type EventBroadcasterMock_StartStructuredLogging_Call struct {
	*mock.Call
}

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

func (*EventBroadcasterMock_StartStructuredLogging_Call) Return

func (*EventBroadcasterMock_StartStructuredLogging_Call) Run

func (*EventBroadcasterMock_StartStructuredLogging_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 ManagerMock

type ManagerMock struct {
	mock.Mock
}

ManagerMock is an autogenerated mock type for the Manager type

func NewManagerMock

func NewManagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ManagerMock

NewManagerMock creates a new instance of ManagerMock. 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 (*ManagerMock) Add

func (_m *ManagerMock) Add(_a0 manager.Runnable) error

Add provides a mock function with given fields: _a0

func (*ManagerMock) AddHealthzCheck

func (_m *ManagerMock) AddHealthzCheck(name string, check healthz.Checker) error

AddHealthzCheck provides a mock function with given fields: name, check

func (*ManagerMock) AddReadyzCheck

func (_m *ManagerMock) AddReadyzCheck(name string, check healthz.Checker) error

AddReadyzCheck provides a mock function with given fields: name, check

func (*ManagerMock) EXPECT

func (_m *ManagerMock) EXPECT() *ManagerMock_Expecter

func (*ManagerMock) Elected

func (_m *ManagerMock) Elected() <-chan struct{}

Elected provides a mock function with given fields:

func (*ManagerMock) GetAPIReader

func (_m *ManagerMock) GetAPIReader() client.Reader

GetAPIReader provides a mock function with given fields:

func (*ManagerMock) GetCache

func (_m *ManagerMock) GetCache() cache.Cache

GetCache provides a mock function with given fields:

func (*ManagerMock) GetClient

func (_m *ManagerMock) GetClient() client.Client

GetClient provides a mock function with given fields:

func (*ManagerMock) GetConfig

func (_m *ManagerMock) GetConfig() *rest.Config

GetConfig provides a mock function with given fields:

func (*ManagerMock) GetControllerOptions

func (_m *ManagerMock) GetControllerOptions() config.Controller

GetControllerOptions provides a mock function with given fields:

func (*ManagerMock) GetEventRecorderFor

func (_m *ManagerMock) GetEventRecorderFor(name string) record.EventRecorder

GetEventRecorderFor provides a mock function with given fields: name

func (*ManagerMock) GetFieldIndexer

func (_m *ManagerMock) GetFieldIndexer() client.FieldIndexer

GetFieldIndexer provides a mock function with given fields:

func (*ManagerMock) GetHTTPClient

func (_m *ManagerMock) GetHTTPClient() *http.Client

GetHTTPClient provides a mock function with given fields:

func (*ManagerMock) GetLogger

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

GetLogger provides a mock function with given fields:

func (*ManagerMock) GetRESTMapper

func (_m *ManagerMock) GetRESTMapper() meta.RESTMapper

GetRESTMapper provides a mock function with given fields:

func (*ManagerMock) GetScheme

func (_m *ManagerMock) GetScheme() *runtime.Scheme

GetScheme provides a mock function with given fields:

func (*ManagerMock) GetWebhookServer

func (_m *ManagerMock) GetWebhookServer() webhook.Server

GetWebhookServer provides a mock function with given fields:

func (*ManagerMock) Start

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

Start provides a mock function with given fields: ctx

type ManagerMock_AddHealthzCheck_Call

type ManagerMock_AddHealthzCheck_Call struct {
	*mock.Call
}

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

func (*ManagerMock_AddHealthzCheck_Call) Return

func (*ManagerMock_AddHealthzCheck_Call) Run

func (*ManagerMock_AddHealthzCheck_Call) RunAndReturn

type ManagerMock_AddReadyzCheck_Call

type ManagerMock_AddReadyzCheck_Call struct {
	*mock.Call
}

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

func (*ManagerMock_AddReadyzCheck_Call) Return

func (*ManagerMock_AddReadyzCheck_Call) Run

func (*ManagerMock_AddReadyzCheck_Call) RunAndReturn

type ManagerMock_Add_Call

type ManagerMock_Add_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Add_Call) Return

func (*ManagerMock_Add_Call) Run

func (*ManagerMock_Add_Call) RunAndReturn

func (_c *ManagerMock_Add_Call) RunAndReturn(run func(manager.Runnable) error) *ManagerMock_Add_Call

type ManagerMock_Elected_Call

type ManagerMock_Elected_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Elected_Call) Return

func (_c *ManagerMock_Elected_Call) Return(_a0 <-chan struct{}) *ManagerMock_Elected_Call

func (*ManagerMock_Elected_Call) Run

func (*ManagerMock_Elected_Call) RunAndReturn

func (_c *ManagerMock_Elected_Call) RunAndReturn(run func() <-chan struct{}) *ManagerMock_Elected_Call

type ManagerMock_Expecter

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

func (*ManagerMock_Expecter) Add

func (_e *ManagerMock_Expecter) Add(_a0 interface{}) *ManagerMock_Add_Call

Add is a helper method to define mock.On call

  • _a0 manager.Runnable

func (*ManagerMock_Expecter) AddHealthzCheck

func (_e *ManagerMock_Expecter) AddHealthzCheck(name interface{}, check interface{}) *ManagerMock_AddHealthzCheck_Call

AddHealthzCheck is a helper method to define mock.On call

  • name string
  • check healthz.Checker

func (*ManagerMock_Expecter) AddReadyzCheck

func (_e *ManagerMock_Expecter) AddReadyzCheck(name interface{}, check interface{}) *ManagerMock_AddReadyzCheck_Call

AddReadyzCheck is a helper method to define mock.On call

  • name string
  • check healthz.Checker

func (*ManagerMock_Expecter) Elected

Elected is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetAPIReader

GetAPIReader is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetCache

GetCache is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetClient

GetClient is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetConfig

GetConfig is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetControllerOptions

func (_e *ManagerMock_Expecter) GetControllerOptions() *ManagerMock_GetControllerOptions_Call

GetControllerOptions is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetEventRecorderFor

func (_e *ManagerMock_Expecter) GetEventRecorderFor(name interface{}) *ManagerMock_GetEventRecorderFor_Call

GetEventRecorderFor is a helper method to define mock.On call

  • name string

func (*ManagerMock_Expecter) GetFieldIndexer

GetFieldIndexer is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetHTTPClient

GetHTTPClient is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetRESTMapper

GetRESTMapper is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetScheme

GetScheme is a helper method to define mock.On call

func (*ManagerMock_Expecter) GetWebhookServer

GetWebhookServer is a helper method to define mock.On call

func (*ManagerMock_Expecter) Start

func (_e *ManagerMock_Expecter) Start(ctx interface{}) *ManagerMock_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type ManagerMock_GetAPIReader_Call

type ManagerMock_GetAPIReader_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetAPIReader_Call) Return

func (*ManagerMock_GetAPIReader_Call) Run

func (*ManagerMock_GetAPIReader_Call) RunAndReturn

type ManagerMock_GetCache_Call

type ManagerMock_GetCache_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetCache_Call) Return

func (*ManagerMock_GetCache_Call) Run

func (*ManagerMock_GetCache_Call) RunAndReturn

func (_c *ManagerMock_GetCache_Call) RunAndReturn(run func() cache.Cache) *ManagerMock_GetCache_Call

type ManagerMock_GetClient_Call

type ManagerMock_GetClient_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetClient_Call) Return

func (*ManagerMock_GetClient_Call) Run

func (*ManagerMock_GetClient_Call) RunAndReturn

type ManagerMock_GetConfig_Call

type ManagerMock_GetConfig_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetConfig_Call) Return

func (*ManagerMock_GetConfig_Call) Run

func (*ManagerMock_GetConfig_Call) RunAndReturn

func (_c *ManagerMock_GetConfig_Call) RunAndReturn(run func() *rest.Config) *ManagerMock_GetConfig_Call

type ManagerMock_GetControllerOptions_Call

type ManagerMock_GetControllerOptions_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetControllerOptions_Call) Return

func (*ManagerMock_GetControllerOptions_Call) Run

func (*ManagerMock_GetControllerOptions_Call) RunAndReturn

type ManagerMock_GetEventRecorderFor_Call

type ManagerMock_GetEventRecorderFor_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetEventRecorderFor_Call) Return

func (*ManagerMock_GetEventRecorderFor_Call) Run

func (*ManagerMock_GetEventRecorderFor_Call) RunAndReturn

type ManagerMock_GetFieldIndexer_Call

type ManagerMock_GetFieldIndexer_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetFieldIndexer_Call) Return

func (*ManagerMock_GetFieldIndexer_Call) Run

func (*ManagerMock_GetFieldIndexer_Call) RunAndReturn

type ManagerMock_GetHTTPClient_Call

type ManagerMock_GetHTTPClient_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetHTTPClient_Call) Return

func (*ManagerMock_GetHTTPClient_Call) Run

func (*ManagerMock_GetHTTPClient_Call) RunAndReturn

type ManagerMock_GetLogger_Call

type ManagerMock_GetLogger_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetLogger_Call) Return

func (*ManagerMock_GetLogger_Call) Run

func (*ManagerMock_GetLogger_Call) RunAndReturn

func (_c *ManagerMock_GetLogger_Call) RunAndReturn(run func() logr.Logger) *ManagerMock_GetLogger_Call

type ManagerMock_GetRESTMapper_Call

type ManagerMock_GetRESTMapper_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetRESTMapper_Call) Return

func (*ManagerMock_GetRESTMapper_Call) Run

func (*ManagerMock_GetRESTMapper_Call) RunAndReturn

type ManagerMock_GetScheme_Call

type ManagerMock_GetScheme_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetScheme_Call) Return

func (*ManagerMock_GetScheme_Call) Run

func (*ManagerMock_GetScheme_Call) RunAndReturn

type ManagerMock_GetWebhookServer_Call

type ManagerMock_GetWebhookServer_Call struct {
	*mock.Call
}

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

func (*ManagerMock_GetWebhookServer_Call) Return

func (*ManagerMock_GetWebhookServer_Call) Run

func (*ManagerMock_GetWebhookServer_Call) RunAndReturn

type ManagerMock_Start_Call

type ManagerMock_Start_Call struct {
	*mock.Call
}

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

func (*ManagerMock_Start_Call) Return

func (*ManagerMock_Start_Call) Run

func (*ManagerMock_Start_Call) RunAndReturn

func (_c *ManagerMock_Start_Call) RunAndReturn(run func(context.Context) error) *ManagerMock_Start_Call

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