job

package
v1.111.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package job is a generated GoMock package.

Index

Constants

This section is empty.

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) *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,
	eventRecorder record.EventRecorder,
	config *apiconfig.Config,
	opts ...handlerOpts) Handler

NewHandler Constructor

type MockHandler

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

MockHandler is a mock of Handler interface.

func NewMockHandler

func NewMockHandler(ctrl *gomock.Controller) *MockHandler

NewMockHandler creates a new mock instance.

func (*MockHandler) CleanupJobHistory

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

CleanupJobHistory mocks base method.

func (*MockHandler) EXPECT

func (m *MockHandler) EXPECT() *MockHandlerMockRecorder

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

func (*MockHandler) Sync

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

Sync mocks base method.

type MockHandlerMockRecorder

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

MockHandlerMockRecorder is the mock recorder for MockHandler.

func (*MockHandlerMockRecorder) CleanupJobHistory

func (mr *MockHandlerMockRecorder) CleanupJobHistory(ctx, appName any) *gomock.Call

CleanupJobHistory indicates an expected call of CleanupJobHistory.

func (*MockHandlerMockRecorder) Sync

func (mr *MockHandlerMockRecorder) Sync(ctx, namespace, name any) *gomock.Call

Sync indicates an expected call of Sync.

Jump to

Keyboard shortcuts

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