service

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootActionName = "a0"
)

Variables

This section is empty.

Functions

func CoalesceNullString added in v2.0.9

func CoalesceNullString(s sql.NullString) string

func IsTerminalPhase added in v2.0.9

func IsTerminalPhase(phase common.ActionPhase) bool

func NewTaskService added in v2.0.1

func NewTriggerService added in v2.0.9

Types

type AbortReconciler added in v2.0.10

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

AbortReconciler watches for abort requests and drives pod termination to completion with exponential backoff retries.

func NewAbortReconciler added in v2.0.10

NewAbortReconciler creates a new AbortReconciler. Zero-value cfg fields are filled with defaults.

func (*AbortReconciler) Push added in v2.0.10

func (r *AbortReconciler) Push(ctx context.Context, actionID *common.ActionIdentifier, reason string)

Push enqueues an abort request for the given action. Safe to call concurrently. No-op if the key is already queued (dedup).

func (*AbortReconciler) Run added in v2.0.10

func (r *AbortReconciler) Run(ctx context.Context) error

Run starts the reconciler. It blocks until ctx is cancelled.

type AbortReconcilerConfig added in v2.0.10

type AbortReconcilerConfig struct {
	// Workers is the number of concurrent pod-termination goroutines.
	Workers int
	// MaxAttempts is the maximum number of actionsClient.Abort calls per action before giving up.
	MaxAttempts int
	// QueueSize is the buffer size of the internal channel.
	QueueSize int
	// InitialDelay is the backoff duration before the first retry.
	InitialDelay time.Duration
	// MaxDelay caps the exponential backoff.
	MaxDelay time.Duration
}

AbortReconcilerConfig holds tunables for the reconciler.

type AppService added in v2.0.9

type AppService struct {
	appconnect.UnimplementedAppServiceHandler
}

AppService is a dummy implementation that returns empty responses for all endpoints.

func NewAppService added in v2.0.9

func NewAppService() *AppService

func (*AppService) Create added in v2.0.9

func (*AppService) Delete added in v2.0.9

func (*AppService) Get added in v2.0.9

func (*AppService) Lease added in v2.0.9

func (*AppService) List added in v2.0.9

func (*AppService) Update added in v2.0.9

func (*AppService) UpdateStatus added in v2.0.9

func (*AppService) Watch added in v2.0.9

type AuthMetadataService added in v2.0.10

type AuthMetadataService struct {
	authconnect.UnimplementedAuthMetadataServiceHandler
	// contains filtered or unexported fields
}

AuthMetadataService implements the AuthMetadataServiceHandler interface.

func NewAuthMetadataService added in v2.0.10

func NewAuthMetadataService(dataplaneDomain string) *AuthMetadataService

NewAuthMetadataService creates a new AuthMetadataService instance.

func (*AuthMetadataService) GetPublicClientConfig added in v2.0.10

type IdentityService added in v2.0.8

type IdentityService struct{}

IdentityService implements the IdentityServiceHandler interface.

func NewIdentityService added in v2.0.8

func NewIdentityService() *IdentityService

NewIdentityService creates a new IdentityService instance.

func (*IdentityService) UserInfo added in v2.0.8

UserInfo returns information about the currently logged in user. TODO: Wire with real auth to populate user info from the authenticated context.

type K8sLogStreamer added in v2.0.9

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

K8sLogStreamer streams logs directly from Kubernetes pods.

func NewK8sLogStreamer added in v2.0.9

func NewK8sLogStreamer(k8sConfig *rest.Config) (*K8sLogStreamer, error)

NewK8sLogStreamer creates a K8sLogStreamer from a Kubernetes REST config. It clears the timeout so that long-lived log streams are not interrupted.

func (*K8sLogStreamer) TailLogs added in v2.0.9

TailLogs streams log lines for the given LogContext from a Kubernetes pod.

type LogStreamer added in v2.0.9

type LogStreamer interface {
	TailLogs(ctx context.Context, logContext *core.LogContext, stream *connect.ServerStream[workflow.TailLogsResponse]) error
}

LogStreamer abstracts log fetching from different backends.

type ProjectService added in v2.0.8

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

func NewProjectService added in v2.0.8

func NewProjectService(projectRepo interfaces.ProjectRepo, domains []*project.Domain) *ProjectService

func (*ProjectService) CreateProject added in v2.0.8

func (*ProjectService) GetProject added in v2.0.8

func (*ProjectService) ListProjects added in v2.0.8

func (*ProjectService) UpdateProject added in v2.0.8

type RunLogsService added in v2.0.9

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

RunLogsService implements the RunLogsServiceHandler interface.

func NewRunLogsService added in v2.0.9

func NewRunLogsService(repo interfaces.Repository, streamer LogStreamer) *RunLogsService

NewRunLogsService creates a new RunLogsService.

func (*RunLogsService) TailLogs added in v2.0.9

TailLogs streams pod logs for an action attempt.

type RunService

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

RunService implements the RunServiceHandler interface

func NewRunService

func NewRunService(repo interfaces.Repository, actionsClient actionsconnect.ActionsServiceClient, storagePrefix string, dataStore *storage.DataStore, reconciler *AbortReconciler) *RunService

NewRunService creates a new RunService instance

func (*RunService) AbortAction

AbortAction aborts a specific action

func (*RunService) AbortRun

AbortRun aborts a run

func (*RunService) CreateRun

CreateRun creates a new run

func (*RunService) GetActionData

GetActionData gets input and output data for an action by reading from storage.

func (*RunService) GetActionDataURIs added in v2.0.12

func (*RunService) GetActionDetails

GetActionDetails gets detailed information about an action from the DB.

func (*RunService) GetActionLogContext added in v2.0.12

func (*RunService) GetRunDetails

GetRunDetails gets detailed information about a run from the DB.

func (*RunService) ListActions

ListActions lists actions for a run

func (*RunService) ListRuns

ListRuns lists runs based on filter criteria

func (*RunService) RecordAction added in v2.0.8

RecordAction records a new action in the database.

func (*RunService) RecordActionEventStream added in v2.0.8

RecordActionEventStream is the bidirectional streaming variant of RecordActionEvents.

func (*RunService) RecordActionEvents added in v2.0.8

RecordActionEvents records a batch of action events.

func (*RunService) RecordActionStream added in v2.0.8

RecordActionStream is the bidirectional streaming variant of RecordAction.

func (*RunService) UpdateActionStatus added in v2.0.8

UpdateActionStatus updates the phase of an action.

func (*RunService) UpdateActionStatusStream added in v2.0.8

UpdateActionStatusStream is the bidirectional streaming variant of UpdateActionStatus.

func (*RunService) WatchActionDetails

WatchActionDetails streams action details updates from the DB.

func (*RunService) WatchActions

WatchActions streams action updates for a run from the DB.

func (*RunService) WatchClusterEvents

WatchClusterEvents streams Kubernetes cluster events recorded in action_events.

func (*RunService) WatchGroups

WatchGroups streams task groups (runs grouped by task) from the database.

func (*RunService) WatchRunDetails

WatchRunDetails streams run details updates from the DB.

func (*RunService) WatchRuns

WatchRuns streams run updates based on filter criteria

type TranslatorService added in v2.0.7

type TranslatorService struct {
	workflowconnect.UnimplementedTranslatorServiceHandler
}

TranslatorService implements the TranslatorServiceHandler interface for translating between Flyte literals and JSON representations.

func NewTranslatorService added in v2.0.7

func NewTranslatorService() *TranslatorService

NewTranslatorService creates a new TranslatorService instance.

func (*TranslatorService) JsonValuesToLiterals added in v2.0.7

JsonValuesToLiterals converts raw JSON values and type definitions (VariableMap) into NamedLiterals.

func (*TranslatorService) LaunchFormJsonToLiterals added in v2.0.7

LaunchFormJsonToLiterals converts an RSJF JSON schema to a list of NamedLiterals.

func (*TranslatorService) LiteralsToLaunchFormJson added in v2.0.7

LiteralsToLaunchFormJson converts a list of NamedLiterals to an RSJF-compliant JSON schema.

func (*TranslatorService) TaskSpecToLaunchFormJson added in v2.0.7

TaskSpecToLaunchFormJson converts a TaskSpec to an RSJF-compliant JSON schema.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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