Documentation ¶
Index ¶
- type Config
- type Error
- type Logger
- type Vault
- func (v *Vault) AWScredentials(account string, role string) (*api.Secret, error)
- func (v *Vault) GetCurrentTokenTTL() (time.Duration, error)
- func (v *Vault) GetMounts(mountType string) ([]string, error)
- func (v *Vault) GetSecret(path string) (*api.Secret, error)
- func (v *Vault) GetSecretKey(path string, key string) (string, error)
- func (v *Vault) GetSecretKeys(path string) (map[string]string, error)
- func (v *Vault) GetToken() (string, error)
- func (v *Vault) GetUser() string
- func (v *Vault) IsNewLogin() bool
- func (v *Vault) ListSecrets(path string) ([]string, error)
- func (v *Vault) Login() error
- func (v *Vault) RenewLease(leaseID string, duration time.Duration) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v0.0.2
type Logger interface { Debug(...interface{}) Warn(...interface{}) Fatal(...interface{}) }
type Vault ¶ added in v0.0.2
type Vault struct {
// contains filtered or unexported fields
}
func (*Vault) AWScredentials ¶ added in v0.0.3
func (*Vault) GetCurrentTokenTTL ¶ added in v0.0.5
GetCurrentTokenTTL gets the TTL of the current token
func (*Vault) GetMounts ¶ added in v0.0.3
GetMounts retrieves a list of mounts Will return a string array filtered with given type. Example 'aws'
func (*Vault) GetSecret ¶ added in v0.0.3
GetSecret takes a secret path and returns the secret(s) in a Vault object
func (*Vault) GetSecretKey ¶ added in v0.0.2
GetSecretKey takes a secret path and key and returns, if successful, the secret string present in that key.
func (*Vault) GetSecretKeys ¶ added in v0.0.2
GetSecretKeys takes a secret path and returns, if successful, a map of all the keys at that path.
func (*Vault) IsNewLogin ¶ added in v0.0.3
IsNewLogin will help high level funcs know if a login prompt was used
func (*Vault) ListSecrets ¶ added in v0.0.2
ListSecrets takes a secret path and returns, if successful, a list of all child paths under that path.
Click to show internal directories.
Click to hide internal directories.