Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigEntry ¶
ConfigEntry represents a single config key/value with metadata.
type ConfigStore ¶
type ConfigStore interface {
Get(ctx context.Context, key string) (*ConfigEntry, error)
Set(ctx context.Context, key, value string, sensitive bool) error
Delete(ctx context.Context, key string) error
List(ctx context.Context) ([]ConfigEntry, error)
Import(ctx context.Context, entries []ConfigEntry) error
}
ConfigStore provides CRUD operations for a cloud config/secret store. Each cloud provider implements this interface.
func NewConfigStore ¶
func NewConfigStore( ctx context.Context, deployTarget string, info StoreInfo, opts ProviderOpts, ) (ConfigStore, error)
NewConfigStore selects the right provider based on deploy target and creates a ConfigStore for the given store info.
type ProviderOpts ¶
ProviderOpts holds provider-specific options for creating a ConfigStore.
type StoreInfo ¶
type StoreInfo struct {
ResourceName string
StoreName string
StoreKind StoreKind
PlaintextKeys map[string]bool
}
StoreInfo describes a config store extracted from a blueprint's celerity/config resource.
func CollectStoreInfo ¶
CollectStoreInfo extracts StoreInfo from celerity/config resources in the blueprint. Determines StoreKind based on the presence of the plaintext field.
func FindStoreInfo ¶
FindStoreInfo looks up a store by spec.name first, then by resource name.