pluginsinterface

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginClientset

type PluginClientset struct {
	KubeClients kubernetes.Interface
}

PluginClientset clientset

type PluginInterface

type PluginInterface interface {
	// The unique name of Plugin.
	Name() string

	// for all pod when createJobPod
	OnPodCreate(pod *v1.Pod, job *vcbatch.Job) error

	// do once when syncJob
	OnJobAdd(job *vcbatch.Job) error

	// do once when killJob
	OnJobDelete(job *vcbatch.Job) error
}

PluginInterface interface

Jump to

Keyboard shortcuts

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