Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Name        string
	PublicValue string
	SecretRef   string
}

Binding carries either a public value or an opaque secret reference. Plaintext secret material is not part of the portable runtime plan.

type ContainerPort

type ContainerPort struct {
	Container int
	Protocol  string
}

ContainerPort is a workload-local endpoint. Host/public publishing is not part of the portable runtime handoff.

type EnvironmentVariable

type EnvironmentVariable struct {
	Name  string
	Value string
}

EnvironmentVariable is a runtime-consumable non-secret environment value.

type Observation

type Observation struct {
	Found    bool
	Services []WorkloadStatus
}

Observation is the current provider view of an application workload.

func (Observation) Ready

func (o Observation) Ready() bool

type Service

type Service struct {
	Name        string
	Image       string
	Args        []string
	Environment []EnvironmentVariable
	Ports       []ContainerPort
}

Service is the normalized runtime workload service.

Important: source/build instructions are structurally absent. Image is an already-resolved OCI artifact reference before the runtime boundary.

type Target

type Target struct {
	Scope string
}

Target identifies the deployment-owned runtime scope selected for a workload. Scope is intentionally opaque. A Kubernetes provider may realize it as a namespace; Docker/Podman may realize it differently.

type WorkloadPlan

type WorkloadPlan struct {
	Application string
	Environment string
	Target      Target
	Services    []Service
	Bindings    []Binding
}

WorkloadPlan is the provider-neutral handoff from BaseHarbor Core to a runtime provider. Runtime-native objects are derived only after this boundary.

func (WorkloadPlan) Validate

func (p WorkloadPlan) Validate() error

type WorkloadStatus

type WorkloadStatus struct {
	Service string
	Ready   bool
	Running bool
	Detail  string
}

WorkloadStatus is the provider-neutral observation of one logical workload service. Provider-native conditions and object names remain implementation details.

Jump to

Keyboard shortcuts

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