lib

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL