job

package
v5.2.2-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitJobController

func InitJobController(rbdNamespace string, stop chan struct{}, kubeClient kubernetes.Interface) error

InitJobController init job controller

Types

type Controller

type Controller interface {
	ExecJob(ctx context.Context, job *corev1.Pod, logger io.Writer, result *channels.RingChannel) error
	GetJob(string) (*corev1.Pod, error)
	GetServiceJobs(serviceID string) ([]*corev1.Pod, error)
	DeleteJob(job string)
	GetLanguageBuildSetting(lang code.Lang, name string) string
	GetDefaultLanguageBuildSetting(lang code.Lang) string
}

Controller build job controller

func GetJobController

func GetJobController() Controller

GetJobController get job controller

Jump to

Keyboard shortcuts

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