walm

package
v0.0.0-...-eef33a9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pre_Install  RunnerType = "pre_install"
	Post_Install RunnerType = "post_install"
	Unknown      RunnerType = "unknown"

	WalmPluginConfigKey string = "Walm-Plugin-Key"
)

Variables

This section is empty.

Functions

func Register

func Register(name string, runner *WalmPluginRunner)

Types

type RunnerType

type RunnerType string

type WalmPlugin

type WalmPlugin struct {
	Name    string `json:"name" description:"plugin name"`
	Args    string `json:"args" description:"plugin args"`
	Version string `json:"version" description:"plugin version"`
	Disable bool   `json:"disable" description:"disable plugin"`
}

type WalmPluginManager

type WalmPluginManager struct {
	// contains filtered or unexported fields
}

func NewWalmPluginManager

func NewWalmPluginManager(kubeClient environment.KubeClient, r *release.Release, log func(string, ...interface{})) (manager *WalmPluginManager)

func (*WalmPluginManager) ExecPlugins

func (manager *WalmPluginManager) ExecPlugins(runnerType RunnerType) error

type WalmPluginManagerContext

type WalmPluginManagerContext struct {
	KubeClient environment.KubeClient
	R          *release.Release
	Log        func(string, ...interface{})
	Resources  []runtime.Object
}

type WalmPluginRunner

type WalmPluginRunner struct {
	Run  func(context *WalmPluginManagerContext, args string) error
	Type RunnerType
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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