plugins

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppMeshInjectionPlugin

type AppMeshInjectionPlugin struct{}

func (AppMeshInjectionPlugin) CheckMatch

func (AppMeshInjectionPlugin) CheckMatch(ctx context.Context, candidatePod *corev1.Pod, meshes []*v1.Mesh) ([]*v1.Mesh, error)

func (AppMeshInjectionPlugin) GetAutoInjectMeshes

func (AppMeshInjectionPlugin) GetAutoInjectMeshes(ctx context.Context) ([]*v1.Mesh, error)

func (AppMeshInjectionPlugin) GetSidecarPatch

func (AppMeshInjectionPlugin) GetSidecarPatch(ctx context.Context, pod *corev1.Pod, meshes []*v1.Mesh) ([]patch.JSONPatchOperation, error)

func (AppMeshInjectionPlugin) Name

type InjectionPlugin

type InjectionPlugin interface {
	Name() string
	GetAutoInjectMeshes(ctx context.Context) ([]*v1.Mesh, error)
	CheckMatch(ctx context.Context, candidatePod *corev1.Pod, meshes []*v1.Mesh) ([]*v1.Mesh, error)
	GetSidecarPatch(ctx context.Context, candidatePod *corev1.Pod, mesh []*v1.Mesh) ([]patch.JSONPatchOperation, error)
}

func GetPlugins

func GetPlugins() []InjectionPlugin

Add new plugins here

Jump to

Keyboard shortcuts

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