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 SecretInterface
- func (_m *SecretInterface) Apply(ctx context.Context, secret *v1.SecretApplyConfiguration, ...) (*corev1.Secret, error)
- func (_m *SecretInterface) Create(ctx context.Context, secret *corev1.Secret, opts metav1.CreateOptions) (*corev1.Secret, error)
- func (_m *SecretInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (_m *SecretInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (_m *SecretInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Secret, error)
- func (_m *SecretInterface) List(ctx context.Context, opts metav1.ListOptions) (*corev1.SecretList, error)
- func (_m *SecretInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (*corev1.Secret, error)
- func (_m *SecretInterface) Update(ctx context.Context, secret *corev1.Secret, opts metav1.UpdateOptions) (*corev1.Secret, error)
- func (_m *SecretInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, 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 SecretInterface ¶
SecretInterface is an autogenerated mock type for the SecretInterface type
func NewSecretInterface ¶
func NewSecretInterface(t mockConstructorTestingTNewSecretInterface) *SecretInterface
NewSecretInterface creates a new instance of SecretInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SecretInterface) Apply ¶
func (_m *SecretInterface) Apply(ctx context.Context, secret *v1.SecretApplyConfiguration, opts metav1.ApplyOptions) (*corev1.Secret, error)
Apply provides a mock function with given fields: ctx, secret, opts
func (*SecretInterface) Create ¶
func (_m *SecretInterface) Create(ctx context.Context, secret *corev1.Secret, opts metav1.CreateOptions) (*corev1.Secret, error)
Create provides a mock function with given fields: ctx, secret, opts
func (*SecretInterface) Delete ¶
func (_m *SecretInterface) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete provides a mock function with given fields: ctx, name, opts
func (*SecretInterface) DeleteCollection ¶
func (_m *SecretInterface) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection provides a mock function with given fields: ctx, opts, listOpts
func (*SecretInterface) Get ¶
func (_m *SecretInterface) Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Secret, error)
Get provides a mock function with given fields: ctx, name, opts
func (*SecretInterface) List ¶
func (_m *SecretInterface) List(ctx context.Context, opts metav1.ListOptions) (*corev1.SecretList, error)
List provides a mock function with given fields: ctx, opts
func (*SecretInterface) Patch ¶
func (_m *SecretInterface) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (*corev1.Secret, error)
Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources
func (*SecretInterface) Update ¶
func (_m *SecretInterface) Update(ctx context.Context, secret *corev1.Secret, opts metav1.UpdateOptions) (*corev1.Secret, error)
Update provides a mock function with given fields: ctx, secret, opts
func (*SecretInterface) Watch ¶
func (_m *SecretInterface) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch provides a mock function with given fields: ctx, opts
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