Documentation ¶
Index ¶
- type ReconcilerMixin
- func (m *ReconcilerMixin) GetControllerName() string
- func (m *ReconcilerMixin) InjectAPIReader(c client.Reader) error
- func (m *ReconcilerMixin) InjectCache(c cache.Cache) error
- func (m *ReconcilerMixin) InjectClient(c client.Client) error
- func (m *ReconcilerMixin) InjectConfig(c *rest.Config) error
- func (m *ReconcilerMixin) InjectLogger(l logr.Logger) error
- func (m *ReconcilerMixin) InjectMapper(mapper meta.RESTMapper) error
- func (m *ReconcilerMixin) InjectRecorder(p recorder.Provider) error
- func (m *ReconcilerMixin) InjectScheme(s *runtime.Scheme) error
- func (m *ReconcilerMixin) InjectStopChannel(stopCh <-chan struct{}) error
- type WebhookHandlerMixin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReconcilerMixin ¶
type ReconcilerMixin struct { // inject by manager.SetFields Scheme *runtime.Scheme Config *rest.Config Client client.Client APIReader client.Reader Cache cache.Cache Logger logr.Logger StopCh <-chan struct{} RESTMapper meta.RESTMapper // inject by recorder.Provider Recorder record.EventRecorder // contains filtered or unexported fields }
func NewReconcilerMixin ¶
func NewReconcilerMixin(controllerName string, mgr manager.Manager) *ReconcilerMixin
func (*ReconcilerMixin) GetControllerName ¶
func (m *ReconcilerMixin) GetControllerName() string
func (*ReconcilerMixin) InjectAPIReader ¶
func (m *ReconcilerMixin) InjectAPIReader(c client.Reader) error
InjectAPIReader implements inject.APIReader.
func (*ReconcilerMixin) InjectCache ¶
func (m *ReconcilerMixin) InjectCache(c cache.Cache) error
InjectCache implements inject.Cache.
func (*ReconcilerMixin) InjectClient ¶
func (m *ReconcilerMixin) InjectClient(c client.Client) error
InjectClient implements inject.Client.
func (*ReconcilerMixin) InjectConfig ¶
func (m *ReconcilerMixin) InjectConfig(c *rest.Config) error
InjectConfig implements inject.Config.
func (*ReconcilerMixin) InjectLogger ¶
func (m *ReconcilerMixin) InjectLogger(l logr.Logger) error
InjectLogger implements inject.Logger.
func (*ReconcilerMixin) InjectMapper ¶
func (m *ReconcilerMixin) InjectMapper(mapper meta.RESTMapper) error
InjectMapper implements inject.Mapper.
func (*ReconcilerMixin) InjectRecorder ¶
func (m *ReconcilerMixin) InjectRecorder(p recorder.Provider) error
func (*ReconcilerMixin) InjectScheme ¶
func (m *ReconcilerMixin) InjectScheme(s *runtime.Scheme) error
InjectScheme implements inject.Scheme.
func (*ReconcilerMixin) InjectStopChannel ¶
func (m *ReconcilerMixin) InjectStopChannel(stopCh <-chan struct{}) error
InjectStopChannel implements inject.Stoppable.
type WebhookHandlerMixin ¶
type WebhookHandlerMixin struct { Client client.Client Decoder *admission.Decoder Logger logr.Logger }
func NewWebhookHandlerMixin ¶
func NewWebhookHandlerMixin() *WebhookHandlerMixin
func (*WebhookHandlerMixin) InjectClient ¶
func (m *WebhookHandlerMixin) InjectClient(c client.Client) error
InjectClient implements inject.Client.
func (*WebhookHandlerMixin) InjectDecoder ¶
func (m *WebhookHandlerMixin) InjectDecoder(d *admission.Decoder) error
InjectDecoder implements admission.DecoderInjector.
func (*WebhookHandlerMixin) InjectLogger ¶
func (m *WebhookHandlerMixin) InjectLogger(l logr.Logger) error
InjectLogger implements inject.Logger.
Click to show internal directories.
Click to hide internal directories.