Documentation
¶
Overview ¶
Package backends holds the fixed set of state backends and encrypters a factory can use. An operator selects one by bare name in a config's state: block (@backend, @key-source), and the resolver looks the name up here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Backends ¶
func Backends() map[string]sdkstate.BackendType
Backends returns the state backends keyed by the bare name an operator selects with @backend. Names are unique by construction: this is one map literal, so a duplicate is a compile error.
func Encrypters ¶
func Encrypters() map[string]sdkencrypt.EncrypterType
Encrypters returns the state encrypters keyed by the bare name an operator selects with @key-source.
Types ¶
type EnvKeyConfig ¶
EnvKeyConfig is the operator-facing body under `encryption: { @key-source: env-key ... }`.
type LocalBackendConfig ¶
LocalBackendConfig is the operator-facing body under `state: { @backend: local ... }`.