plugins

package
v0.0.0-...-519dc3d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedJobPlugins = map[string]JobPlugin{}

Functions

func GetRegisteredJobPluginNames

func GetRegisteredJobPluginNames() []string

func RegisterPlugin

func RegisterPlugin(pluginName string, plugin JobPlugin)

Types

type JobHandler

type JobHandler interface {
	Reload()
	Serialize(namespace, name string, job common.Job) (map[KubernetesResource][]byte, string, error)
}

type JobPlugin

type JobPlugin interface {
	CreateJobHandler(dataFolder string, logger *zap.Logger) (JobHandler, error)
}

type KubernetesResource

type KubernetesResource string
const (
	ResDeployment  KubernetesResource = "deployment"
	ResJob         KubernetesResource = "job"
	ResConfigmap   KubernetesResource = "configmap"
	ResUnSupported KubernetesResource = "unsupported"
)

Jump to

Keyboard shortcuts

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