Documentation
¶
Index ¶
Constants ¶
const RuntimeProfileEnvKey = "BASEHARBOR_RUNTIME_PROFILE"
const RuntimeProviderEnvKey = "BASEHARBOR_RUNTIME_PROVIDER"
Variables ¶
This section is empty.
Functions ¶
func ApplyRuntimeProviderState ¶
func ApplyRuntimeProviderState(values map[string]string, state RuntimeProviderState) error
ApplyRuntimeProviderState writes normalized deployment metadata into the supplied state map while preserving unrelated deployment-owned values. Provider-only legacy writers also materialize the standard runtime profile when no profile has been persisted yet, so protected deployment state is a complete provider+profile selection without requiring a migration step.
func ApplyRuntimeSelection ¶
func ApplyRuntimeSelection(values map[string]string, selection RuntimeSelection) error
ApplyRuntimeSelection writes normalized deployment-owned selection while preserving unrelated state such as hostname, TLS, and environment metadata.
Types ¶
type RuntimeProfile ¶
type RuntimeProfile string
const (
RuntimeProfileStandard RuntimeProfile = "standard"
)
func ParseRuntimeProfile ¶
func ParseRuntimeProfile(value string) (RuntimeProfile, error)
type RuntimeProviderState ¶
type RuntimeProviderState struct {
Provider bhruntime.ProviderKind
}
RuntimeProviderState is deployment-owned provider selection. It is not part of the portable application contract and may differ between deployments of the same logical application.
func RuntimeProviderStateFromValues ¶
func RuntimeProviderStateFromValues(values map[string]string) (RuntimeProviderState, error)
RuntimeProviderStateFromValues reads protected deployment state. Missing provider metadata from v0.3 deployments intentionally defaults to Compose so existing installations remain compatible without a migration.
type RuntimeSelection ¶
type RuntimeSelection struct {
Provider bhruntime.ProviderKind
Profile RuntimeProfile
}
RuntimeSelection is deployment-owned runtime intent. The same portable application contract may use a different selection in each environment.
func RuntimeSelectionFromValues ¶
func RuntimeSelectionFromValues(values map[string]string) (RuntimeSelection, error)
RuntimeSelectionFromValues reads explicit deployment state. Environment names do not imply a provider or profile; selection stays explicit and independently configurable for development, staging, production, or future environments.