dispatch

package
v1.5.5 Latest Latest
Warning

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

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

Documentation

Overview

Package dispatch routes a rendered deployment source to the appropriate provider operation: container services go through the core Provider lifecycle, while helm, manifests, and argocd sources are delegated to the provider's optional engine interfaces (gated by capability). It is the seam that lets one provisioning path serve every source type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deprovision

func Deprovision(ctx context.Context, p provider.Provider, sourceType provider.SourceType, instanceID id.ID) error

Deprovision routes teardown by source type. An empty sourceType (legacy instances that predate Source) is treated as services.

func Provision

Provision routes a rendered source to the right provider engine. Services use the core Provision; other types require the provider to implement the matching engine interface and advertise its capability, else ctrlplane.ErrUnsupportedSource.

func Status

func Status(ctx context.Context, p provider.Provider, sourceType provider.SourceType, instanceID id.ID) (*provider.InstanceStatus, error)

Status routes a status read by source type. An empty sourceType is treated as services.

Types

type Request

type Request struct {
	InstanceID id.ID
	TenantID   string
	Name       string
	Namespace  string
	Kind       provider.WorkloadKind
	Source     provider.RenderedSource
	Labels     map[string]string
}

Request carries everything needed to provision an instance from a rendered source, independent of source type.

Jump to

Keyboard shortcuts

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