Documentation ¶
Overview ¶
Vault package is used to login to Vault using OIDC to retrieve a token and to read normal secrets or (write) to get access to other services like Azure or AWS
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeVault ¶
type FakeVault struct {
Requests []string
}
FakeVault is a fake implementation of the Vault
func (*FakeVault) GetAddress ¶
type Vault ¶
type Vault interface { Read(string, map[string][]string) (map[string]interface{}, error) Write(string, map[string]interface{}) (map[string]interface{}, error) GetToken() string GetAddress() string }
Vault is a simple wrapper for the Vault client
type VaultImpl ¶
type VaultImpl struct {
// contains filtered or unexported fields
}
VaultImpl is the Vault interface implementation
func (*VaultImpl) GetAddress ¶
GetAddress returns the Vault address for others to use, for example Terraform
func (*VaultImpl) GetToken ¶
GetToken returns the Vault token for others to use, for example Terraform
Click to show internal directories.
Click to hide internal directories.