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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 and no database dependency — all app state lives in KService CRDs.

func NewInternalAppService

func NewInternalAppService(k8s appk8s.AppK8sClientInterface, cfg *appconfig.AppConfig) *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.

Jump to

Keyboard shortcuts

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