Documentation
¶
Overview ¶
Package parameters implements bounded, single-pass config substitution. Parameters are public configuration, never secret inputs or expressions.
Index ¶
- Constants
- func CheckDeclaration(name, pattern string) error
- func CheckName(name string) error
- func CheckReferences(value string, declarations map[string]string) error
- func CheckSupplied(values map[string]string) error
- func Encode(values map[string]string) string
- func References(value string) ([]string, error)
- func Resolve(value string, supplied map[string]string, maxBytes int) (string, error)
- func Validate(declarations, supplied map[string]string) error
- type Contract
Constants ¶
View Source
const ( // MaxContractBytes bounds immutable schema metadata per publication. MaxContractBytes = 256 << 10 MaxCount = 32 MaxValueBytes = 256 MaxPatternBytes = 512 )
Variables ¶
This section is empty.
Functions ¶
func CheckDeclaration ¶
func CheckSupplied ¶
func References ¶
References accepts ${NAME}; $${ escapes a literal ${ without a closing brace.
Types ¶
type Contract ¶
type Contract struct {
Version int `json:"version,omitempty"`
Declarations map[string]string `json:"declarations,omitempty"`
Schemas map[string]string `json:"schemas,omitempty"`
}
Contract is immutable snapshot metadata. Schemas records the declarations of templated config keys, so historical delivery never consults the live schema.
Click to show internal directories.
Click to hide internal directories.