Documentation ¶
Index ¶
- type Cache
- func (_m *Cache) Get(ctx context.Context, key types.NamespacedName, obj client.Object, ...) error
- func (_m *Cache) GetInformer(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error)
- func (_m *Cache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, ...) (cache.Informer, error)
- func (_m *Cache) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (_m *Cache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_m *Cache) RemoveInformer(ctx context.Context, obj client.Object) error
- func (_m *Cache) Start(ctx context.Context) error
- func (_m *Cache) WaitForCacheSync(ctx context.Context) bool
- type StatusMetrics
- func (_m *StatusMetrics) SetStatusUpdateConflict(kind string)
- func (_m *StatusMetrics) SetStatusUpdateDuration(duration time.Duration, kind string, onError bool)
- func (_m *StatusMetrics) SetStatusUpdateFailed(kind string)
- func (_m *StatusMetrics) SetStatusUpdateNoop(kind string)
- func (_m *StatusMetrics) SetStatusUpdateSuccess(kind string)
- func (_m *StatusMetrics) SetStatusUpdateTotal(kind string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
func NewCache ¶ added in v1.24.0
NewCache creates a new instance of Cache. 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 (*Cache) Get ¶
func (_m *Cache) 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 (*Cache) GetInformer ¶
func (_m *Cache) GetInformer(ctx context.Context, obj client.Object, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformer provides a mock function with given fields: ctx, obj, opts
func (*Cache) GetInformerForKind ¶
func (_m *Cache) GetInformerForKind(ctx context.Context, gvk schema.GroupVersionKind, opts ...cache.InformerGetOption) (cache.Informer, error)
GetInformerForKind provides a mock function with given fields: ctx, gvk, opts
func (*Cache) IndexField ¶
func (_m *Cache) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
IndexField provides a mock function with given fields: ctx, obj, field, extractValue
func (*Cache) List ¶
func (_m *Cache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function with given fields: ctx, list, opts
func (*Cache) RemoveInformer ¶ added in v1.28.0
RemoveInformer provides a mock function with given fields: ctx, obj
type StatusMetrics ¶ added in v1.26.0
StatusMetrics is an autogenerated mock type for the StatusMetrics type
func NewStatusMetrics ¶ added in v1.26.0
func NewStatusMetrics(t interface { mock.TestingT Cleanup(func()) }) *StatusMetrics
NewStatusMetrics creates a new instance of StatusMetrics. 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 (*StatusMetrics) SetStatusUpdateConflict ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateConflict(kind string)
SetStatusUpdateConflict provides a mock function with given fields: kind
func (*StatusMetrics) SetStatusUpdateDuration ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateDuration(duration time.Duration, kind string, onError bool)
SetStatusUpdateDuration provides a mock function with given fields: duration, kind, onError
func (*StatusMetrics) SetStatusUpdateFailed ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateFailed(kind string)
SetStatusUpdateFailed provides a mock function with given fields: kind
func (*StatusMetrics) SetStatusUpdateNoop ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateNoop(kind string)
SetStatusUpdateNoop provides a mock function with given fields: kind
func (*StatusMetrics) SetStatusUpdateSuccess ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateSuccess(kind string)
SetStatusUpdateSuccess provides a mock function with given fields: kind
func (*StatusMetrics) SetStatusUpdateTotal ¶ added in v1.26.0
func (_m *StatusMetrics) SetStatusUpdateTotal(kind string)
SetStatusUpdateTotal provides a mock function with given fields: kind