Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultClient ¶
type VaultClient struct {
// contains filtered or unexported fields
}
type VaultClientInterface ¶
type VaultClientInterface interface { Set(path string, data map[string]interface{}) (*api.Secret, error) Get(path string) (*api.Secret, error) Delete(path string) (*api.Secret, error) }
func NewVaultClient ¶
func NewVaultClient(vconfig *config.VaultConfig) (VaultClientInterface, error)
TODO: set token needs to happen. also change config to hous all info needed
type VaultDB ¶
type VaultDB struct { SecretsPath string // contains filtered or unexported fields }
func (*VaultDB) DeleteSecrets ¶
func (*VaultDB) GetSecrets ¶
type VaultInterface ¶
type VaultInterface interface { GetSecrets(secretid string) (map[string]interface{}, error) SetSecrets(secretName string, data map[string]interface{}) error DeleteSecrets(secretid string) error }
func NewVaultDB ¶
func NewVaultDB(client VaultClientInterface, path string) VaultInterface
Click to show internal directories.
Click to hide internal directories.