Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVaultConfigFromBackendConfig ¶
func NewVaultConfigFromBackendConfig(backendId string, sessionConfig VaultSessionBackendConfig) (api.AuthMethod, error)
Types ¶
type VaultBackend ¶
type VaultBackend struct {
BackendId string
Config VaultBackendConfig
Secret map[string]string
}
func NewVaultBackend ¶
func NewVaultBackend(backendId string, bc map[string]interface{}) (*VaultBackend, error)
func (*VaultBackend) GetSecretOutput ¶
func (b *VaultBackend) GetSecretOutput(secretKey string) secret.SecretOutput
type VaultBackendConfig ¶
type VaultBackendConfig struct {
VaultSession VaultSessionBackendConfig `mapstructure:"vault_session"`
BackendType string `mapstructure:"backend_type"`
VaultAddress string `mapstructure:"vault_address"`
SecretPath string `mapstructure:"secret_path"`
Secrets []string `mapstructure:"secrets"`
VaultTLS *VaultTLSConfig `mapstructure:"vault_tls_config"`
}
type VaultSessionBackendConfig ¶
type VaultSessionBackendConfig struct {
VaultRoleId string `mapstructure:"vault_role_id"`
VaultSecretId string `mapstructure:"vault_secret_id"`
VaultUserName string `mapstructure:"vault_username"`
VaultPassword string `mapstructure:"vault_password"`
VaultLDAPUserName string `mapstructure:"vault_ldap_username"`
VaultLDAPPassword string `mapstructure:"vault_ldap_password"`
}
type VaultTLSConfig ¶
Click to show internal directories.
Click to hide internal directories.