job

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package job is a generated GoMock package.

Package job is a generated GoMock package.

Index

Constants

View Source
const (
	// SuccessSynced is used as part of the Event 'reason' when a Job is synced
	SuccessSynced = "Synced"

	// MessageResourceSynced is the message used for an Event fired when a Job
	// is synced successfully
	MessageResourceSynced = "Radix Job synced successfully"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context,
	client kubernetes.Interface,
	radixClient radixclient.Interface,
	handler Handler,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	radixInformerFactory informers.SharedInformerFactory,
	recorder record.EventRecorder) *common.Controller

NewController creates a new controller that handles RadixJobs

Types

type Handler

type Handler interface {
	common.Handler
	// CleanupJobHistory Cleanup the pipeline job history for the Radix application
	CleanupJobHistory(ctx context.Context, appName string)
}

Handler Common handler interface

func NewHandler

func NewHandler(kubeclient kubernetes.Interface, kubeUtil *kube.Kube, radixClient radixclient.Interface, config *apiconfig.Config, hasSynced common.HasSynced, opts ...handlerOpts) Handler

NewHandler Constructor

type MockHandler added in v1.57.8

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

MockHandler is a mock of Handler interface.

func NewMockHandler added in v1.57.8

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) CleanupJobHistory added in v1.57.8

func (m *MockHandler) CleanupJobHistory(ctx context.Context, appName string)

CleanupJobHistory mocks base method.

func (*MockHandler) EXPECT added in v1.57.8

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) Sync added in v1.57.8

func (m *MockHandler) Sync(ctx context.Context, namespace, name string, eventRecorder record.EventRecorder) error

Sync mocks base method.

type MockHandlerMockRecorder added in v1.57.8

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) CleanupJobHistory added in v1.57.8

func (mr *MockHandlerMockRecorder) CleanupJobHistory(ctx, radixJob interface{}) *gomock.Call

CleanupJobHistory indicates an expected call of CleanupJobHistory.

func (*MockHandlerMockRecorder) Sync added in v1.57.8

func (mr *MockHandlerMockRecorder) Sync(ctx, namespace, name, eventRecorder interface{}) *gomock.Call

Sync indicates an expected call of Sync.

type MockHistory added in v1.57.8

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

MockHistory is a mock of History interface.

func NewMockHistory added in v1.57.8

func NewMockHistory(ctrl *gomock.Controller) *MockHistory

NewMockHistory creates a new mock instance.

func (*MockHistory) Cleanup added in v1.57.8

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

Cleanup mocks base method.

func (*MockHistory) EXPECT added in v1.57.8

func (m *MockHistory) EXPECT() *MockHistoryMockRecorder

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

type MockHistoryMockRecorder added in v1.57.8

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

MockHistoryMockRecorder is the mock recorder for MockHistory.

func (*MockHistoryMockRecorder) Cleanup added in v1.57.8

func (mr *MockHistoryMockRecorder) Cleanup(ctx, appName 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