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

secrets

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 12 Imported by: 0

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

type DotfilesSecretsEntry struct {
	RelativeFile string
	Prefix       string
	Keys         []string
}

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.

type DotfilesSecretsOptions

type DotfilesSecretsOptions struct {
	ManifestPath string
	RootPath     string
	ProjectID    string
	Verbose      bool
	UseSpinner   bool
}

DotfilesSecretsOptions configures manifest-driven backup and restore operations.

Jump to

Keyboard shortcuts

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