Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSSecretsProvider ¶
type AWSSecretsProvider struct {
// contains filtered or unexported fields
}
AWSSecretsProvider is a provider for AWS Secrets Manager
func NewAWSSecretsProvider ¶
func NewAWSSecretsProvider(accessKeyID, secretAccessKey, region string) (*AWSSecretsProvider, error)
NewAWSSecretsProvider creates a new instance of AWSSecretsProvider
type HashiVaultProvider ¶
type HashiVaultProvider struct {
// contains filtered or unexported fields
}
HashiVaultProvider is a provider for HashiCorp Vault
func NewHashiVaultProvider ¶
func NewHashiVaultProvider(addr, path, token string) (*HashiVaultProvider, error)
NewHashiVaultProvider creates a new HashiCorp Vault provider
type InternalProvider ¶
type InternalProvider struct {
// contains filtered or unexported fields
}
InternalProvider is a secret provider that stores secrets in a database, encrypted. supported database types: sqlite, postgres, mysql
func NewInternalProvider ¶
func NewInternalProvider(conn string, key []byte) (*InternalProvider, error)
NewInternalProvider creates a new InternalProvider.
func (*InternalProvider) Delete ¶
func (p *InternalProvider) Delete(key string) error
Delete removes a secret from the database.
func (*InternalProvider) Get ¶
func (p *InternalProvider) Get(key string) (string, error)
Get retrieves a secret from the database, decrypts it, and returns it.
func (*InternalProvider) List ¶
func (p *InternalProvider) List(prefix string) ([]string, error)
List retrieves a list of secret keys from the database with an optional prefix filter.
func (*InternalProvider) Set ¶
func (p *InternalProvider) Set(key, value string) error
Set stores a secret in the database, encrypted.