service

package
v2.0.15 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLogStreamer added in v2.0.14

type AppLogStreamer interface {
	TailLogs(ctx context.Context, replicaID *flyteapp.ReplicaIdentifier, send func(*flyteapp.LogLines) error) error
}

AppLogStreamer streams pod logs for an app replica.

type InternalAppLogsService added in v2.0.14

type InternalAppLogsService struct {
	appconnect.UnimplementedAppLogsServiceHandler
	// contains filtered or unexported fields
}

InternalAppLogsService is the data plane implementation of AppLogsService. It resolves an app_id or replica_id to the backing pods and streams logs.

func NewInternalAppLogsService added in v2.0.14

func NewInternalAppLogsService(k8sClient appk8s.AppK8sClientInterface, streamer AppLogStreamer) *InternalAppLogsService

NewInternalAppLogsService creates a new InternalAppLogsService.

func (*InternalAppLogsService) TailLogs added in v2.0.14

TailLogs streams log lines for the given app or replica.

type InternalAppService

type InternalAppService struct {
	appconnect.UnimplementedAppServiceHandler
	// contains filtered or unexported fields
}

InternalAppService is the data plane implementation of the AppService. It has direct K8s access via AppK8sClientInterface.

func NewInternalAppService

func NewInternalAppService(k8s appk8s.AppK8sClientInterface) *InternalAppService

NewInternalAppService creates a new InternalAppService.

func (*InternalAppService) Create

Create deploys a new app as a KService CRD.

func (*InternalAppService) Delete

Delete removes the KService CRD for the given app entirely.

func (*InternalAppService) Get

Get retrieves an app and its live status from the KService CRD. Note: App.Spec is not populated — status and ingress URL are the authoritative fields.

func (*InternalAppService) List

List returns apps for the requested scope with pagination.

func (*InternalAppService) Update

Update modifies an app's spec or desired state. When Spec.DesiredState is STOPPED, the app is scaled to zero (KService kept). When Spec.DesiredState is STARTED or ACTIVE, the app is redeployed/resumed. Otherwise the spec update is applied and the app is redeployed.

func (*InternalAppService) Watch

Watch streams live KService events to the client. It first sends the current state as CreateEvents (initial snapshot), then streams changes.

type K8sAppLogStreamer added in v2.0.14

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

K8sAppLogStreamer streams logs from the pod backing an app replica.

func NewK8sAppLogStreamer added in v2.0.14

func NewK8sAppLogStreamer(k8sConfig *rest.Config) (*K8sAppLogStreamer, error)

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

func (*K8sAppLogStreamer) TailLogs added in v2.0.14

func (s *K8sAppLogStreamer) TailLogs(ctx context.Context, replicaID *flyteapp.ReplicaIdentifier, send func(*flyteapp.LogLines) error) error

TailLogs streams log lines for a replica's pod.

Jump to

Keyboard shortcuts

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