cbipluginhelper

package
Version: v0.0.0-...-1f3cceb Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ContextInjector

type ContextInjector struct {
	Injector
}

ContextInjector injects build contexts using `cbipluginhelper` image.

func (*ContextInjector) Inject

func (ci *ContextInjector) Inject(bjContext crd.Context) (string, error)

Inject injects a context to podSpec and returns the context path

type Helper

type Helper struct {
	Image   string
	HomeDir string
}

type Injector

type Injector struct {
	Helper
	TargetPodSpec      *corev1.PodSpec
	TargetContainerIdx int
}

Injector injects files using `cbipluginhelper` image.

func (*Injector) InjectFile

func (ci *Injector) InjectFile(srcPath string) (string, error)

InjectFile injects a file from the helper image into podSpec and returns the injected path

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL