Documentation ¶
Index ¶
Constants ¶
View Source
const ( VaultAddress = "http://127.0.0.1:8200" VaultToken = "abcdefghijklmnopqrstuvwxyz09" )
global test helpers
Variables ¶
View Source
var (
VaultClient = basicVaultClient()
)
Functions ¶
Types ¶
type BackupConfig ¶
type BackupConfig struct { AWSConfig *AWSConfig `hcl:"aws_config,block"` VaultConfig *VaultConfig `hcl:"vault_config,block"` SnapshotCleanup bool `hcl:"snapshot_cleanup,optional"` }
while this is public to decode, the individual structs initialized from this are safely private
func NewBackupConfig ¶
func NewBackupConfig(filePath string) (*BackupConfig, error)
config constructor
type VaultConfig ¶
type VaultConfig struct { Address string `hcl:"address,optional"` Insecure bool `hcl:"insecure,optional"` Engine string `hcl:"auth_engine,optional"` Token string `hcl:"token,optional"` AWSMountPath string `hcl:"aws_mount_path,optional"` AWSRole string `hcl:"aws_role,optional"` SnapshotPath string `hcl:"snapshot_path,optional"` }
Click to show internal directories.
Click to hide internal directories.