Documentation ¶
Index ¶
- type Injector
- func (s *Injector) Inject(in runtime.Object, runtimeInfos map[string]base.RuntimeInfoInterface) (out runtime.Object, err error)
- func (s *Injector) InjectPod(in *corev1.Pod, runtimeInfos map[string]base.RuntimeInfoInterface) (out *corev1.Pod, err error)
- func (s *Injector) InjectUnstructured(in *unstructuredtype.Unstructured, ...) (out *unstructuredtype.Unstructured, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Injector ¶
type Injector struct {
// contains filtered or unexported fields
}
func NewInjector ¶
func (*Injector) Inject ¶
func (s *Injector) Inject(in runtime.Object, runtimeInfos map[string]base.RuntimeInfoInterface) (out runtime.Object, err error)
Inject delegates inject() to do all the mutations
func (*Injector) InjectPod ¶
func (s *Injector) InjectPod(in *corev1.Pod, runtimeInfos map[string]base.RuntimeInfoInterface) (out *corev1.Pod, err error)
InjectPod injects pod with runtimeInfo which key is pvcName, value is runtimeInfo
func (*Injector) InjectUnstructured ¶
func (s *Injector) InjectUnstructured(in *unstructuredtype.Unstructured, runtimeInfos map[string]base.RuntimeInfoInterface) (out *unstructuredtype.Unstructured, err error)
Click to show internal directories.
Click to hide internal directories.