Documentation ¶
Index ¶
- type Cache
- type Client
- func (client *Client) ClearCache()
- func (client *Client) Delete(absolutePath string) (err error)
- func (client *Client) GetType(absolutePath string) (kind PathKind)
- func (client *Client) List(absolutePath string) (result []string, err error)
- func (client *Client) Read(absolutePath string) (secret *Secret, err error)
- func (client *Client) SubpathsForPath(path string, shallow bool) (filePaths []string, err error)
- func (client *Client) Traverse(absolutePath string, shallow bool) (paths []string)
- func (client *Client) Write(absolutePath string, secret *Secret) (err error)
- type PathKind
- type Secret
- type VaultConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v0.10.0
type Cache struct {
// contains filtered or unexported fields
}
Cache is a thread-safe cache for vault queries
type Client ¶
type Client struct { Vault *api.Client Name string Pwd string KVBackends map[string]int // contains filtered or unexported fields }
Client wrapper for Vault API client
func NewClient ¶
func NewClient(conf *VaultConfig) (*Client, error)
NewClient creates a new Client Vault wrapper
func (*Client) ClearCache ¶ added in v0.5.0
func (client *Client) ClearCache()
ClearCache clears the list cache
func (*Client) GetType ¶
GetType returns the file type the given absolutePath points to. Possible return values are BACKEND, NODE, LEAF or NONE
func (*Client) SubpathsForPath ¶ added in v0.9.0
SubpathsForPath will return an array of absolute paths at or below path
type Secret ¶ added in v0.9.0
type Secret struct {
// contains filtered or unexported fields
}
Secret holds vault secret and offers operations to simplify KV abstraction
func (*Secret) GetAPISecret ¶ added in v0.9.0
GetAPISecret getter method for vault secret in Secret object
Click to show internal directories.
Click to hide internal directories.