batchesv1

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBatchStatusFromRadixBatch

func GetBatchStatusFromRadixBatch(radixBatch *modelsv2.RadixBatch) *modelsv1.BatchStatus

GetBatchStatusFromRadixBatch Gets batch status from RadixBatch

Types

type BatchHandler

type BatchHandler interface {
	//GetBatches Get status of all batches
	GetBatches() ([]modelsv1.BatchStatus, error)
	//GetBatch Get status of a batch
	GetBatch(string) (*modelsv1.BatchStatus, error)
	//GetBatchJob Get status of a batch job
	GetBatchJob(string, string) (*modelsv1.JobStatus, error)
	//CreateBatch Create a batch with parameters
	CreateBatch(*common.BatchScheduleDescription) (*modelsv1.BatchStatus, error)
	//MaintainHistoryLimit Delete outdated batches
	MaintainHistoryLimit() error
	//DeleteBatch Delete a batch
	DeleteBatch(string) error
	//StopBatch Stop a batch
	StopBatch(string) error
	//StopBatchJob Stop a batch job
	StopBatchJob(string, string) error
}

func New

func New(kube *kube.Kube, env *models.Env) BatchHandler

New Constructor of the batch handler

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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