inject

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package inject is used by a Manager to inject types into Sources, EventHandlers, Predicates, and Reconciles. Deprecated: Use manager.Options fields directly. This package will be removed in v0.10.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientInto

func ClientInto(client client.Client, i interface{}) (bool, error)

ClientInto will set client on i and return the result if it implements Client. Returns false if i does not implement Client.

func DecoderInto

func DecoderInto(decoder *admission.Decoder, i interface{}) (bool, error)

DecoderInto will set decoder on i and return the result if it implements Decoder. Returns false if i does not implement Decoder.

Types

type ClientInjector

type ClientInjector interface {
	InjectClient(client.Client) error
}

ClientInjector is used by the ControllerManager to inject client into Sources, EventHandlers, Predicates, and Reconciles.

type DecoderInjector

type DecoderInjector interface {
	InjectDecoder(*admission.Decoder) error
}

DecoderInjector is used by the ControllerManager to inject decoder into webhook handlers.

Jump to

Keyboard shortcuts

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