Documentation
¶
Index ¶
- func NoErrors(t assert.TestingT, err error, i ...interface{}) bool
- type FakeGroupedReconciler
- type FakeManager
- func (f *FakeManager) Add(manager.Runnable) error
- func (f *FakeManager) AddHealthzCheck(string, healthz.Checker) error
- func (f *FakeManager) AddMetricsExtraHandler(path string, handler http.Handler) error
- func (f *FakeManager) AddMetricsServerExtraHandler(path string, handler http.Handler) error
- func (f *FakeManager) AddReadyzCheck(string, healthz.Checker) error
- func (f *FakeManager) Elected() <-chan struct{}
- func (f *FakeManager) GetAPIReader() client.Reader
- func (f *FakeManager) GetCache() cache.Cache
- func (f *FakeManager) GetClient() client.Client
- func (f *FakeManager) GetConfig() *rest.Config
- func (f *FakeManager) GetControllerOptions() config.Controller
- func (f *FakeManager) GetEventRecorderFor(name string) record.EventRecorder
- func (f *FakeManager) GetFieldIndexer() client.FieldIndexer
- func (f *FakeManager) GetHTTPClient() *http.Client
- func (f *FakeManager) GetLogger() logr.Logger
- func (f *FakeManager) GetRESTMapper() meta.RESTMapper
- func (f *FakeManager) GetScheme() *runtime.Scheme
- func (f *FakeManager) GetWebhookServer() webhook.Server
- func (f *FakeManager) SetFields(interface{}) error
- func (f *FakeManager) Start(ctx context.Context) error
- type GroupReconciler
- type GroupedReconciler
- type GroupedReconcilers
- type NamedReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeGroupedReconciler ¶
type FakeGroupedReconciler struct {
HasError bool
}
FakeGroupedReconciler is a fake GroupedReconciler which is for the test purpose
func (*FakeGroupedReconciler) GetGroupName ¶
func (f *FakeGroupedReconciler) GetGroupName() string
GetGroupName returns the group name
func (*FakeGroupedReconciler) GetName ¶
func (f *FakeGroupedReconciler) GetName() string
GetName returns the name
func (*FakeGroupedReconciler) Reconcile ¶
func (f *FakeGroupedReconciler) Reconcile(context.Context, reconcile.Request) (result reconcile.Result, err error)
Reconcile is fake reconcile process
func (*FakeGroupedReconciler) SetupWithManager ¶
func (f *FakeGroupedReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setups the reconciler
type FakeManager ¶
FakeManager is for the test purpose
func (*FakeManager) AddHealthzCheck ¶
func (f *FakeManager) AddHealthzCheck(string, healthz.Checker) error
AddHealthzCheck is a fake method
func (*FakeManager) AddMetricsExtraHandler ¶
func (f *FakeManager) AddMetricsExtraHandler(path string, handler http.Handler) error
AddMetricsExtraHandler is a fake method
func (*FakeManager) AddMetricsServerExtraHandler ¶
func (f *FakeManager) AddMetricsServerExtraHandler(path string, handler http.Handler) error
func (*FakeManager) AddReadyzCheck ¶
func (f *FakeManager) AddReadyzCheck(string, healthz.Checker) error
AddReadyzCheck is a fake method
func (*FakeManager) Elected ¶
func (f *FakeManager) Elected() <-chan struct{}
Elected is a fake method
func (*FakeManager) GetAPIReader ¶
func (f *FakeManager) GetAPIReader() client.Reader
GetAPIReader is a fake method
func (*FakeManager) GetCache ¶
func (f *FakeManager) GetCache() cache.Cache
GetCache is a fake method
func (*FakeManager) GetClient ¶
func (f *FakeManager) GetClient() client.Client
GetClient is a fake method
func (*FakeManager) GetConfig ¶
func (f *FakeManager) GetConfig() *rest.Config
GetConfig is a fake method
func (*FakeManager) GetControllerOptions ¶
func (f *FakeManager) GetControllerOptions() config.Controller
func (*FakeManager) GetEventRecorderFor ¶
func (f *FakeManager) GetEventRecorderFor(name string) record.EventRecorder
GetEventRecorderFor is a fake method
func (*FakeManager) GetFieldIndexer ¶
func (f *FakeManager) GetFieldIndexer() client.FieldIndexer
GetFieldIndexer is a fake method
func (*FakeManager) GetHTTPClient ¶
func (f *FakeManager) GetHTTPClient() *http.Client
func (*FakeManager) GetLogger ¶
func (f *FakeManager) GetLogger() logr.Logger
GetLogger is a fake method
func (*FakeManager) GetRESTMapper ¶
func (f *FakeManager) GetRESTMapper() meta.RESTMapper
GetRESTMapper is a fake method
func (*FakeManager) GetScheme ¶
func (f *FakeManager) GetScheme() *runtime.Scheme
GetScheme is a fake method
func (*FakeManager) GetWebhookServer ¶
func (f *FakeManager) GetWebhookServer() webhook.Server
func (*FakeManager) SetFields ¶
func (f *FakeManager) SetFields(interface{}) error
SetFields is a fake method
type GroupReconciler ¶
type GroupReconciler interface { reconcile.Reconciler // GetGroupName returns the group name GetGroupName() string }
GroupReconciler is an interface with the group name a group means a set of some reconcilers that have a particular feature
type GroupedReconciler ¶
type GroupedReconciler interface { NamedReconciler GroupReconciler SetupWithManager(mgr ctrl.Manager) error }
GroupedReconciler is an interface for grouping reconciler purpose
type GroupedReconcilers ¶
type GroupedReconcilers []GroupedReconciler
GroupedReconcilers is an alias of the slice of GroupedReconciler
func (GroupedReconcilers) Append ¶
func (g GroupedReconcilers) Append(reconciler GroupedReconciler) GroupedReconcilers
Append is a similar function to the original slice append
func (GroupedReconcilers) GetName ¶
func (g GroupedReconcilers) GetName() (name string)
GetName returns the name of the group
func (GroupedReconcilers) SetupWithManager ¶
func (g GroupedReconcilers) SetupWithManager(mgr manager.Manager) (err error)
SetupWithManager setups with a group of reconcilers
func (GroupedReconcilers) Size ¶
func (g GroupedReconcilers) Size() int
Size returns the size of the slice
type NamedReconciler ¶
type NamedReconciler interface { reconcile.Reconciler // GetName returns the name of the reconciler GetName() string }
NamedReconciler is an interface with allow a reconciler has a name