Documentation
¶
Index ¶
- func CheckAuthentication(client *api.Client) ([]string, error)
- func FromKey(key string) (value.Transformer, error)
- func Transformer(mountPath, keyName string, dataEncryption DataEncryption) (value.Transformer, error)
- func TransformerKey(mountPath, keyName string, dataEncryption DataEncryption) string
- type DataEncryption
- type ServiceFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthentication ¶ added in v0.1.8
CheckAuthentication verifies that the connection to vault is setup correctly by retrieving information about the configured token
func FromKey ¶ added in v0.2.1
func FromKey(key string) (value.Transformer, error)
Vault returns an envelope encryption using a remote transit backend for key encryption. vault:<path>:<data encryption>
func Transformer ¶ added in v0.2.1
func Transformer(mountPath, keyName string, dataEncryption DataEncryption) (value.Transformer, error)
Transformer returns an envelope encryption using a remote transit backend for key encryption.
func TransformerKey ¶ added in v0.2.1
func TransformerKey(mountPath, keyName string, dataEncryption DataEncryption) string
Types ¶
type DataEncryption ¶ added in v0.2.1
type DataEncryption string
var ( AESGCM DataEncryption = "aesgcm" Chacha20Poly1305 DataEncryption = "chacha20poly1305" Secretbox DataEncryption = "secretbox" )
type ServiceFactory ¶
type ServiceFactory interface { KV(mountPath string) (kv.Service, error) Transit(mounthPath, keyName string) (transit.Service, error) Cubbyhole(mountPath string) (cubbyhole.Service, error) }
ServiceFactory defines Vault client cervice contract.
func DefaultClient ¶
func DefaultClient() (ServiceFactory, error)
DefaultClient initialize a Vault client and wrap it in a Service factory.
func FromVaultClient ¶
func FromVaultClient(vaultClient *api.Client) (ServiceFactory, error)
FromVaultClient wraps an existing Vault client as a Service factory.
Click to show internal directories.
Click to hide internal directories.