Documentation ¶
Overview ¶
See LICENSE file for license details Copyright (c) 2015 XOR Data Exchange, Inc.
Package hashi provides an implementation of the vault interface for Hashicorp's Vault
Index ¶
- Variables
- type Vault
- func (v *Vault) AuthAppID(app, user string) error
- func (v *Vault) ClearToken()
- func (v *Vault) CurrentKeyVersion(prefix string) (uint64, error)
- func (v *Vault) CurrentSaltVersion(prefix string) (uint64, error)
- func (v *Vault) CurrentSalts(prefix string) ([]uint64, error)
- func (v *Vault) GetKey(prefix string, version uint64) (*superdog.Key, error)
- func (v *Vault) GetSalt(prefix string, version uint64) ([]byte, error)
- func (v *Vault) SetToken(t string)
- func (v *Vault) Token() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrVersionMismatch = errors.New("Key returned does no match requested version")
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func (*Vault) AuthAppID ¶
AuthAppID authenticates with Vault using an AppID and UserID and sets the access token for requests.
func (*Vault) ClearToken ¶
func (v *Vault) ClearToken()
ClearToken deletes the token cookie if it's set.
func (*Vault) CurrentKeyVersion ¶
CurrentKeyVersion retrieves the latest version of the specified key to be used
func (*Vault) CurrentSaltVersion ¶
CurrentSaltVersion retrieves the latest version of the specified salt to be used
func (*Vault) CurrentSalts ¶
CurrentSalts fetches the list of currently active salts for the prefix and version provided.
Click to show internal directories.
Click to hide internal directories.