batch

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package batch is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyRadixBatchOrJob

func CopyRadixBatchOrJob(ctx context.Context, radixClient versioned.Interface, sourceRadixBatch *radixv1.RadixBatch, sourceJobName string, radixDeployJobComponent *radixv1.RadixDeployJobComponent, radixDeploymentName string) (*modelsv2.RadixBatch, error)

CopyRadixBatchOrJob Copy the Radix batch or job

func DeleteRadixBatch

func DeleteRadixBatch(ctx context.Context, radixClient versioned.Interface, radixBatch *radixv1.RadixBatch) error

DeleteRadixBatch Delete a batch

func DeleteRadixBatchByName added in v1.11.0

func DeleteRadixBatchByName(ctx context.Context, radixClient versioned.Interface, namespace, batchName string) error

DeleteRadixBatchByName Delete a batch by name

func GetRadixBatchStatus

func GetRadixBatchStatus(radixBatch *radixv1.RadixBatch, radixDeployJobComponent *radixv1.RadixDeployJobComponent) modelsv2.RadixBatch

GetRadixBatchStatus Get radix batch

func GetRadixBatchStatuses

func GetRadixBatchStatuses(radixBatches []*radixv1.RadixBatch, radixDeployJobComponent *radixv1.RadixDeployJobComponent) []modelsv2.RadixBatch

GetRadixBatchStatuses Convert to radix batch statuses

func RestartRadixBatch

func RestartRadixBatch(ctx context.Context, radixClient versioned.Interface, radixBatch *radixv1.RadixBatch) error

RestartRadixBatch Restart a batch

func RestartRadixBatchJob

func RestartRadixBatchJob(ctx context.Context, radixClient versioned.Interface, radixBatch *radixv1.RadixBatch, jobName string) error

RestartRadixBatchJob Restart a job

func StopRadixBatch

func StopRadixBatch(ctx context.Context, radixClient versioned.Interface, radixBatch *radixv1.RadixBatch) error

StopRadixBatch Stop a batch

func StopRadixBatchJob

func StopRadixBatchJob(ctx context.Context, radixClient versioned.Interface, radixBatch *radixv1.RadixBatch, jobName string) error

StopRadixBatchJob Stop a job

Types

type CompletedRadixBatches added in v1.11.0

type CompletedRadixBatches struct {
	SucceededRadixBatches    []*modelsv2.RadixBatch
	NotSucceededRadixBatches []*modelsv2.RadixBatch
	SucceededSingleJobs      []*modelsv2.RadixBatch
	NotSucceededSingleJobs   []*modelsv2.RadixBatch
}

CompletedRadixBatches Completed RadixBatch lists

type History added in v1.11.0

type History interface {
	// Cleanup the pipeline job history for the Radix application
	Cleanup(ctx context.Context) error
}

History Interface for job History

func NewHistory added in v1.11.0

func NewHistory(kubeUtil *kube.Kube, env *models.Env, radixDeployJobComponent *radixv1.RadixDeployJobComponent) History

NewHistory Constructor for job History

type MockHistory added in v1.11.0

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

MockHistory is a mock of History interface.

func NewMockHistory added in v1.11.0

func NewMockHistory(ctrl *gomock.Controller) *MockHistory

NewMockHistory creates a new mock instance.

func (*MockHistory) Cleanup added in v1.11.0

func (m *MockHistory) Cleanup(ctx context.Context) error

Cleanup mocks base method.

func (*MockHistory) EXPECT added in v1.11.0

func (m *MockHistory) EXPECT() *MockHistoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockHistoryMockRecorder added in v1.11.0

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

MockHistoryMockRecorder is the mock recorder for MockHistory.

func (*MockHistoryMockRecorder) Cleanup added in v1.11.0

func (mr *MockHistoryMockRecorder) Cleanup(ctx interface{}) *gomock.Call

Cleanup indicates an expected call of Cleanup.

Jump to

Keyboard shortcuts

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