deploy

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: EPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyError

func ApplyError(result map[string]any) (code, message string)

ApplyError extracts structured apply failure details.

func CommandExamples

func CommandExamples() string

CommandExamples returns deploy command examples for Cobra.

func CommandLong

func CommandLong() string

CommandLong returns the deploy command introduction.

func DetectManifestKind

func DetectManifestKind(path string) (string, error)

DetectManifestKind reads the first document's kind field.

func FormatApplyHuman

func FormatApplyHuman(result map[string]any) string

FormatApplyHuman renders apply endpoint output for human mode.

func FormatRuntimeClassInProgress

func FormatRuntimeClassInProgress(operationID, status, stage string) string

FormatRuntimeClassInProgress renders a timeout/in-progress message for runtimeclass apply.

func FormatValidateHuman

func FormatValidateHuman(result map[string]any) string

FormatValidateHuman renders validate endpoint output.

func WithStages

func WithStages(result map[string]any, stages []string) map[string]any

WithStages attaches observed poll stages to a result map for structured output.

Types

type Request

type Request struct {
	ManifestPath string
	SourceName   string
	DryRun       bool
}

Request carries deploy -f options.

type Result

type Result struct {
	Data   map[string]any
	Stages []string
	Human  string
}

Result is the deploy command outcome.

func Execute

func Execute(ctx context.Context, api run.EdgeletAPIClient, uiProgress *ui.UI, req Request) (*Result, error)

Execute runs deploy validate or apply for a manifest file.

type Target

type Target string

Target is a EdgeletAPI deploy collection.

const (
	TargetMicroservices  Target = "microservices"
	TargetRegistries     Target = "registries"
	TargetModels         Target = "models"
	TargetRuntimeClasses Target = "runtimeclasses"
	TargetControlPlane   Target = "controlplane"
)

func DetectTargetFromManifest

func DetectTargetFromManifest(path string) (Target, error)

DetectTargetFromManifest inspects manifest kind to choose the deploy API target.

Jump to

Keyboard shortcuts

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