service

package
v2.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 52 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

func OAuth2MetadataHTTPHandler added in v2.0.24

func OAuth2MetadataHTTPHandler(svc *AuthMetadataService) http.Handler

OAuth2MetadataHTTPHandler serves the OAuth2 authorization-server metadata document at the RFC 8414 well-known path. OAuth2/OIDC discovery clients (flyte-sdk) fetch this path directly rather than the Connect RPC.

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 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, cfg config.AuthMetadataConfig) *AuthMetadataService

NewAuthMetadataService creates a new AuthMetadataService instance. When cfg.ExternalAuthServerBaseURL is set, GetOAuth2Metadata proxies that server's metadata. cfg.FlyteClient is advertised to SDKs via GetPublicClientConfig.

func (*AuthMetadataService) GetOAuth2Metadata added in v2.0.24

GetOAuth2Metadata proxies the configured external authorization server's metadata document (RFC 8414 / OAuth2 Authorization Server Metadata). This lets flyte clients that discover auth at this deployment obtain tokens from the external IdP (e.g. Okta) directly, so a single token satisfies both this deployment and any upstream (ALB) JWT validation keyed to the same issuer.

func (*AuthMetadataService) GetPublicClientConfig added in v2.0.10

GetPublicClientConfig returns the public (CLI/SDK) OAuth2 client settings.

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 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 RunService

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

RunService implements the RunServiceHandler interface

func NewRunService

func NewRunService(
	repo interfaces.Repository,
	actionsClient actionsconnect.ActionsServiceClient,
	projectClient projectconnect.ProjectServiceClient,
	storagePrefix string,
	dataStore *storage.DataStore,
	reconciler *AbortReconciler,
	authServerBaseURL string,
	trustForwardedIdentityHeaders bool,
	identityHeaders config.IdentityHeadersConfig,
) *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 is deprecated and no longer implemented. Clients should use DataProxyService.GetActionData instead. The RPC is retained in the proto for backwards compatibility but the server returns Unimplemented.

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) SignalEvent added in v2.0.18

SignalEvent resolves a paused condition action by forwarding the payload to the actions service, which validates and writes it onto the condition CR.

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

Jump to

Keyboard shortcuts

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