Documentation
¶
Overview ¶
Package sharedenv provides normalized shared environment read models and lookup services for config-domain consumers.
The package intentionally hides PocketBase record details from callers and exposes only normalized shared-env objects and lookup operations.
Index ¶
Constants ¶
const ( SetCollection = "env_sets" VarCollection = "env_set_vars" AttachedSetsField = "env_sets" SetRelationField = "set" SecretRelationField = "secret" )
Variables ¶
This section is empty.
Functions ¶
func AttachedSetIDs ¶
AttachedSetIDs returns the ordered, unique env set attachment ids stored on a consumer record.
Types ¶
type AttachedVar ¶
AttachedVar preserves both the attached set identity and the normalized var. The returned order follows the consumer's env_sets attachment order.
func LoadAttachedVars ¶
LoadAttachedVars expands the env set attachments from a consumer record into a flat variable list. Later attached sets appear later in the slice, so lifecycle consumers can apply "later set wins" semantics by iterating in order.
type Set ¶
Set is the normalized read model for one shared env set.
func SetFromRecord ¶
SetFromRecord normalizes an env_sets record.