Documentation ¶
Index ¶
- type FakeCache
- func (FakeCache) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (FakeCache) GetInformer(ctx context.Context, obj client.Object) (toolscache.Informer, error)
- func (FakeCache) GetInformerForKind(gctx context.Context, vk schema.GroupVersionKind) (toolscache.Informer, error)
- func (FakeCache) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (FakeCache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (FakeCache) Start(ctx context.Context) error
- func (FakeCache) WaitForCacheSync(ctx context.Context) bool
- type FakeClient
- func (f FakeClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (f FakeClient) CreateRuntimeObject(ctx context.Context, obj runtime.Object, opts ...client.CreateOption) error
- func (f FakeClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (FakeClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (f FakeClient) DeleteRuntimeObject(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
- func (f FakeClient) Get(ctx context.Context, key client.ObjectKey, out client.Object, ...) error
- func (f FakeClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (FakeClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (FakeClient) RESTMapper() meta.RESTMapper
- func (FakeClient) Scheme() *runtime.Scheme
- func (FakeClient) Status() client.StatusWriter
- func (FakeClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type FakeStatusClient
- type Manager
- func (Manager) Add(manager.Runnable) error
- func (Manager) AddHealthzCheck(name string, check healthz.Checker) error
- func (Manager) AddMetricsExtraHandler(path string, handler http.Handler) error
- func (Manager) AddReadyzCheck(name string, check healthz.Checker) error
- func (Manager) Elected() <-chan struct{}
- func (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 (Manager) GetFieldIndexer() client.FieldIndexer
- func (Manager) GetLogger() logr.Logger
- func (m Manager) GetRESTMapper() meta.RESTMapper
- func (Manager) GetRecorder(name string) record.EventRecorder
- func (m Manager) GetScheme() *runtime.Scheme
- func (Manager) GetWebhookServer() *webhook.Server
- func (Manager) SetFields(interface{}) error
- func (Manager) Start(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCache ¶
type FakeCache struct { }
func (FakeCache) GetInformer ¶
func (FakeCache) GetInformerForKind ¶
func (FakeCache) GetInformerForKind(gctx context.Context, vk schema.GroupVersionKind) (toolscache.Informer, error)
func (FakeCache) IndexField ¶
func (FakeCache) List ¶
func (FakeCache) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
type FakeClient ¶
type FakeClient struct {
// contains filtered or unexported fields
}
FakeClient is a struct that implements client.Client for use in tests.
func NewClient ¶
func NewClient(clientScheme *runtime.Scheme) FakeClient
func (FakeClient) Create ¶
func (f FakeClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (FakeClient) CreateRuntimeObject ¶
func (f FakeClient) CreateRuntimeObject(ctx context.Context, obj runtime.Object, opts ...client.CreateOption) error
func (FakeClient) Delete ¶
func (f FakeClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (FakeClient) DeleteAllOf ¶
func (FakeClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (FakeClient) DeleteRuntimeObject ¶
func (f FakeClient) DeleteRuntimeObject(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
func (FakeClient) List ¶
func (f FakeClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (FakeClient) Patch ¶
func (FakeClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (FakeClient) RESTMapper ¶
func (FakeClient) RESTMapper() meta.RESTMapper
func (FakeClient) Scheme ¶
func (FakeClient) Scheme() *runtime.Scheme
func (FakeClient) Status ¶
func (FakeClient) Status() client.StatusWriter
func (FakeClient) Update ¶
func (FakeClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type FakeStatusClient ¶
type FakeStatusClient struct{}
func (FakeStatusClient) Patch ¶
func (FakeStatusClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (FakeStatusClient) Update ¶
func (FakeStatusClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type Manager ¶
Mock Types for Reconciler tests:
func NewManager ¶
func NewManager(c FakeClient) Manager
func (Manager) AddHealthzCheck ¶
func (Manager) AddMetricsExtraHandler ¶
func (Manager) AddReadyzCheck ¶
func (Manager) GetAPIReader ¶
func (Manager) GetControllerOptions ¶
func (m Manager) GetControllerOptions() v1alpha1.ControllerConfigurationSpec
func (Manager) GetEventRecorderFor ¶
func (m Manager) GetEventRecorderFor(name string) record.EventRecorder
func (Manager) GetFieldIndexer ¶
func (Manager) GetFieldIndexer() client.FieldIndexer
func (Manager) GetRESTMapper ¶
func (m Manager) GetRESTMapper() meta.RESTMapper
func (Manager) GetRecorder ¶
func (Manager) GetRecorder(name string) record.EventRecorder
func (Manager) GetWebhookServer ¶
Click to show internal directories.
Click to hide internal directories.