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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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