Help us shape the future of Go! Take the 2026 Go Developer Survey

appconfig

package
v0.0.0-...-2fd5d2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigEntry

type ConfigEntry struct {
	Key       string
	Value     string
	Sensitive bool
}

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

type ProviderOpts struct {
	Region  string
	Profile string
	Logger  *zap.Logger
}

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

func CollectStoreInfo(bp *schema.Blueprint) []StoreInfo

CollectStoreInfo extracts StoreInfo from celerity/config resources in the blueprint. Determines StoreKind based on the presence of the plaintext field.

func FindStoreInfo

func FindStoreInfo(stores []StoreInfo, name string) *StoreInfo

FindStoreInfo looks up a store by spec.name first, then by resource name.

type StoreKind

type StoreKind string

StoreKind identifies the cloud provider storage backend for a config store.

const (
	StoreKindSecretsManager StoreKind = "secrets-manager"
	StoreKindParameterStore StoreKind = "parameter-store"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL