Versions in this module Expand all Collapse all v0 v0.2.0 Jul 2, 2026 Changes in this version + const DefaultKVEngine + var ErrSecretNotFound = errors.New("vault secret not found") + func DefaultConfigPath() (string, error) + func RunPullAll(cfg *VaultSyncConfig, kvEngine string, newClient ClientFactory) error + func RunPushAll(cfg *VaultSyncConfig, kvEngine string, dryRun bool, newClient ClientFactory) error + type ClientFactory func(namespace string) (*VaultClient, error) + type HTTPError struct + Body string + StatusCode int + func (e *HTTPError) Error() string + type SecretRef struct + Engine string + Path string + func NewSecretRef(engine, path string) SecretRef + func (r SecretRef) MetadataPath() string + type SyncTarget struct + LocalPath string + Namespace string + VaultPath string + type VaultClient struct + Address string + ErrOutput io.Writer + Namespace string + Output io.Writer + Token string + func NewVaultClient(address, token, namespace string) *VaultClient + func NewVaultClientFromEnv(namespace string) (*VaultClient, error) + func (v *VaultClient) GetSecretAt(ref SecretRef) (map[string]interface{}, error) + func (v *VaultClient) ListSecretsAt(ref SecretRef) ([]string, error) + func (v *VaultClient) PullSecretsRecursivelyAt(ref SecretRef) (map[string]map[string]interface{}, error) + func (v *VaultClient) PullSecretsToFilesAt(ref SecretRef, outputDir string) error + func (v *VaultClient) PullSecretsToFilesDirectAt(ref SecretRef, outputDir string) error + func (v *VaultClient) PushSecretsFromFilesAt(inputDir string, ref SecretRef, dryRun bool) error + func (v *VaultClient) PushSecretsFromFilesDirectAt(inputDir string, ref SecretRef, dryRun bool) error + func (v *VaultClient) PutSecretAt(ref SecretRef, secretData map[string]interface{}) error + type VaultListResponse struct + Data struct{ ... } + type VaultSecretResponse struct + Data struct{ ... } + type VaultSyncConfig struct + RootDir string + Syncs []SyncTarget + func LoadVaultSyncConfig() (*VaultSyncConfig, error)