pluginsinterface

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 5

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 {
	// Name returns the unique name of Plugin.
	Name() string

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

	// OnJobAdd is called when do job initiation
	// Note: it can be called multi times, must be idempotent
	OnJobAdd(job *vcbatch.Job) error

	// OnJobDelete is called when killJob
	// Note: it can be called multi times, must be idempotent
	OnJobDelete(job *vcbatch.Job) error

	// OnJobUpdate is called when job updated
	// Note: it can be called multi times, must be idempotent
	OnJobUpdate(job *vcbatch.Job) error
}

PluginInterface interface.

Jump to

Keyboard shortcuts

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