service

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueClientInterface

type QueueClientInterface interface {
	EnqueueAction(ctx context.Context, req *workflow.EnqueueActionRequest) error
	AbortQueuedRun(ctx context.Context, runID *common.RunIdentifier, reason *string) error
	AbortQueuedAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error
}

QueueClientInterface defines the interface for queue operations This allows for easier testing and mocking

type QueueService

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

QueueService implements the QueueServiceHandler interface

func NewQueueService

func NewQueueService(k8sClient *k8s.QueueClient) *QueueService

NewQueueService creates a new QueueService instance

func NewQueueServiceWithClient

func NewQueueServiceWithClient(client QueueClientInterface) *QueueService

NewQueueServiceWithClient creates a new QueueService with a custom client implementation This is useful for testing

func (*QueueService) AbortQueuedAction

AbortQueuedAction deletes a specific TaskAction CR

func (*QueueService) AbortQueuedRun

AbortQueuedRun deletes all TaskAction CRs for a run

func (*QueueService) EnqueueAction

EnqueueAction creates a TaskAction CR in Kubernetes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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