scheduler

package
v0.2.9-beta.24 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const JOBTTL = 100

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleScheduler

type SimpleScheduler struct {
	// contains filtered or unexported fields
}

SimpleScheduler A simple scheduler to run bakta jobs on a Kubernetes cluster The config will be picked up from the

func InitSimpleScheduler

func InitSimpleScheduler(dbHandler *database.Handler) (*SimpleScheduler, error)

InitSimpleScheduler Initiates a scheduler to run bakta jobs

func (*SimpleScheduler) DeleteJob

func (scheduler *SimpleScheduler) DeleteJob(jobName string) error

func (*SimpleScheduler) GetK8sClient added in v0.2.0

func (scheduler *SimpleScheduler) GetK8sClient() *kubernetes.Clientset

func (*SimpleScheduler) GetNamespace added in v0.2.0

func (scheduler *SimpleScheduler) GetNamespace() string

func (*SimpleScheduler) StartJob

func (scheduler *SimpleScheduler) StartJob(jobID string, jobConfig *api.JobConfig, baktaConfString string) (*batchv1.Job, error)

StartJob Starts a bakta job on Kubernetes

Jump to

Keyboard shortcuts

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