Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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.