Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultAPIWrapper ¶
type VaultAPIWrapper interface { SetAddress(address string) error SetToken(token string) Read(path string) (map[string]interface{}, error) Write(path string, data map[string]interface{}) (map[string]interface{}, error) RegisterPlugin(input *vaultAPI.RegisterPluginInput) error GetPlugin(input *vaultAPI.GetPluginInput) (*vaultAPI.GetPluginResponse, error) ReloadPlugin(input *vaultAPI.ReloadPluginInput) (string, error) Mount(path string, input *vaultAPI.MountInput) error ListMounts() (map[string]*vaultAPI.MountOutput, error) }
VaultAPIWrapper encapsulates the dependency on the HashiCorp Go Vault package, both to allow it to be injected, but also to make its interface slightly simpler to its clients
func NewVaultAPI ¶
func NewVaultAPI() VaultAPIWrapper
Click to show internal directories.
Click to hide internal directories.