Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupDotfilesSecrets ¶
func BackupDotfilesSecrets(opts DotfilesSecretsOptions) error
BackupDotfilesSecrets reads configured env files and saves their managed keys to bws.
func DoctorDotfilesSecrets ¶
func DoctorDotfilesSecrets(opts DotfilesSecretsOptions) error
DoctorDotfilesSecrets validates manifest-driven secret mappings and templates.
func RestoreDotfilesSecrets ¶
func RestoreDotfilesSecrets(opts DotfilesSecretsOptions) error
RestoreDotfilesSecrets recreates managed env files from templates and bws values.
Types ¶
type DotfilesSecretsEntry ¶
DotfilesSecretsEntry maps one env file to a bws prefix and the keys that should be managed.
type DotfilesSecretsManifest ¶
type DotfilesSecretsManifest struct {
ProjectID string
Entries []DotfilesSecretsEntry
}
DotfilesSecretsManifest defines the tracked secret mappings for dotfiles env files.
func LoadDotfilesSecretsManifest ¶
func LoadDotfilesSecretsManifest(manifestPath string) (*DotfilesSecretsManifest, error)
LoadDotfilesSecretsManifest parses the tracked manifest used for dotfiles secrets backup and restore.
Click to show internal directories.
Click to hide internal directories.