Documentation ¶
Overview ¶
Package external implements mocks that implement 3rd party interfaces, t. i. interfaces which we do not control. In order to avoid package dependency cycles these mock implementations reside in this package.
Index ¶
- type Client
- func (_m *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_m *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object) error
- func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_m *Client) RESTMapper() meta.RESTMapper
- func (_m *Client) Scheme() *runtime.Scheme
- func (_m *Client) Status() client.StatusWriter
- func (_m *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type EventRecorder
- func (_m *EventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype string, ...)
- func (_m *EventRecorder) Event(object runtime.Object, eventtype string, reason string, message string)
- func (_m *EventRecorder) Eventf(object runtime.Object, eventtype string, reason string, messageFmt string, ...)
- type LogSink
- func (_m *LogSink) Enabled(level int) bool
- func (_m *LogSink) Error(err error, msg string, keysAndValues ...interface{})
- func (_m *LogSink) Info(level int, msg string, keysAndValues ...interface{})
- func (_m *LogSink) Init(info logr.RuntimeInfo)
- func (_m *LogSink) WithName(name string) logr.LogSink
- func (_m *LogSink) WithValues(keysAndValues ...interface{}) logr.LogSink
- type Manager
- func (_m *Manager) Add(_a0 manager.Runnable) error
- func (_m *Manager) AddHealthzCheck(name string, check healthz.Checker) error
- func (_m *Manager) AddMetricsExtraHandler(path string, handler http.Handler) error
- func (_m *Manager) AddReadyzCheck(name string, check healthz.Checker) error
- func (_m *Manager) Elected() <-chan struct{}
- func (_m *Manager) GetAPIReader() client.Reader
- func (_m *Manager) GetCache() cache.Cache
- func (_m *Manager) GetClient() client.Client
- func (_m *Manager) GetConfig() *rest.Config
- func (_m *Manager) GetControllerOptions() v1alpha1.ControllerConfigurationSpec
- func (_m *Manager) GetEventRecorderFor(name string) record.EventRecorder
- func (_m *Manager) GetFieldIndexer() client.FieldIndexer
- func (_m *Manager) GetLogger() logr.Logger
- func (_m *Manager) GetRESTMapper() meta.RESTMapper
- func (_m *Manager) GetScheme() *runtime.Scheme
- func (_m *Manager) GetWebhookServer() *webhook.Server
- func (_m *Manager) SetFields(_a0 interface{}) error
- func (_m *Manager) Start(ctx context.Context) error
- type StatusWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) DeleteAllOf ¶
func (_m *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: ctx, obj, opts
func (*Client) List ¶
func (_m *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*Client) Patch ¶
func (_m *Client) 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 (*Client) RESTMapper ¶
func (_m *Client) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function with given fields:
func (*Client) Status ¶
func (_m *Client) Status() client.StatusWriter
Status provides a mock function with given fields:
type EventRecorder ¶
EventRecorder is an autogenerated mock type for the EventRecorder type
func NewEventRecorder ¶
func NewEventRecorder(t mockConstructorTestingTNewEventRecorder) *EventRecorder
NewEventRecorder creates a new instance of EventRecorder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventRecorder) AnnotatedEventf ¶
func (_m *EventRecorder) 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
type LogSink ¶
LogSink is an autogenerated mock type for the LogSink type
func NewLogSink ¶
func NewLogSink(t mockConstructorTestingTNewLogSink) *LogSink
NewLogSink creates a new instance of LogSink. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LogSink) Init ¶
func (_m *LogSink) Init(info logr.RuntimeInfo)
Init provides a mock function with given fields: info
func (*LogSink) WithValues ¶
WithValues provides a mock function with given fields: keysAndValues
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
func NewManager(t mockConstructorTestingTNewManager) *Manager
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Manager) AddHealthzCheck ¶
AddHealthzCheck provides a mock function with given fields: name, check
func (*Manager) AddMetricsExtraHandler ¶
AddMetricsExtraHandler provides a mock function with given fields: path, handler
func (*Manager) AddReadyzCheck ¶
AddReadyzCheck provides a mock function with given fields: name, check
func (*Manager) Elected ¶
func (_m *Manager) Elected() <-chan struct{}
Elected provides a mock function with given fields:
func (*Manager) GetAPIReader ¶
GetAPIReader provides a mock function with given fields:
func (*Manager) GetControllerOptions ¶
func (_m *Manager) GetControllerOptions() v1alpha1.ControllerConfigurationSpec
GetControllerOptions provides a mock function with given fields:
func (*Manager) GetEventRecorderFor ¶
func (_m *Manager) GetEventRecorderFor(name string) record.EventRecorder
GetEventRecorderFor provides a mock function with given fields: name
func (*Manager) GetFieldIndexer ¶
func (_m *Manager) GetFieldIndexer() client.FieldIndexer
GetFieldIndexer provides a mock function with given fields:
func (*Manager) GetRESTMapper ¶
func (_m *Manager) GetRESTMapper() meta.RESTMapper
GetRESTMapper provides a mock function with given fields:
func (*Manager) GetWebhookServer ¶
GetWebhookServer provides a mock function with given fields:
type StatusWriter ¶
StatusWriter is an autogenerated mock type for the StatusWriter type
func NewStatusWriter ¶
func NewStatusWriter(t mockConstructorTestingTNewStatusWriter) *StatusWriter
NewStatusWriter creates a new instance of StatusWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StatusWriter) Patch ¶
func (_m *StatusWriter) 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 (*StatusWriter) Update ¶
func (_m *StatusWriter) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Update provides a mock function with given fields: ctx, obj, opts