service

package
v2.0.53 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 13 Imported by: ? 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 ActionsClientInterface

type ActionsClientInterface interface {
	// Enqueue creates a TaskAction CR in Kubernetes.
	Enqueue(ctx context.Context, action *actions.Action, runSpec *task.RunSpec) error

	// PutStatus updates the status of a TaskAction.
	PutStatus(ctx context.Context, actionID *common.ActionIdentifier, attempt uint32, status *workflow.ActionStatus, address *common.ActionAddress) error

	// AbortAction aborts a queued or running action, cascading to descendants.
	AbortAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error

	// Signal delivers the resolved value to a paused condition action.
	Signal(ctx context.Context, actionID *common.ActionIdentifier, value *core.Literal, signalledBy string) error

	// ListChildActions lists all TaskActions that are children of the given parent action.
	ListChildActions(ctx context.Context, parentActionID *common.ActionIdentifier) ([]*executorv1.TaskAction, error)

	// Subscribe creates a new subscription channel for action updates scoped to the given (run, parent action).
	Subscribe(runName, parentActionName string) chan *k8s.ActionUpdate

	// Unsubscribe removes the given channel from the subscription list for the (run, parent action).
	Unsubscribe(runName, parentActionName string, ch chan *k8s.ActionUpdate)

	// StartWatching starts watching TaskAction resources.
	StartWatching(ctx context.Context) error

	// StopWatching stops the TaskAction watcher.
	StopWatching()
}

ActionsClientInterface defines the interface for actions operations. This combines the responsibilities of the queue and state clients.

type ActionsService

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

ActionsService implements the ActionsService gRPC API.

func NewActionsService

func NewActionsService(client ActionsClientInterface) *ActionsService

NewActionsService creates a new ActionsService.

func (*ActionsService) Abort

Abort aborts a queued or running action, cascading to descendants.

func (*ActionsService) Enqueue

Enqueue queues a new action for execution.

func (*ActionsService) Signal added in v2.0.14

Signal delivers a value to a paused condition action.

func (*ActionsService) Update

Update updates the status of an action.

func (*ActionsService) WatchForUpdates

WatchForUpdates watches for updates to the state of actions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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