mixin

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL