Documentation ¶
Index ¶
- func AddSecretToKV(s core.Secret, kv map[string]interface{})
- type Client
- func (vc *Client) Delete(path string) (*vaultapi.Secret, error)
- func (vc *Client) GetToken() string
- func (vc *Client) List(path string) (*vaultapi.Secret, error)
- func (vc *Client) Read(path string) (*vaultapi.Secret, error)
- func (vc *Client) SetToken(token string)
- func (vc *Client) TokenIsValid() bool
- func (vc *Client) UserpassLogin(username string, password string) error
- func (vc *Client) Write(path string, data map[string]interface{}) (*vaultapi.Secret, error)
- type EJSONEndpoint
- type JSONEndpoint
- type SecretsReader
- type Vault
- func (v *Vault) Authenticate() error
- func (src *Vault) Delete(secret core.Secret) error
- func (v *Vault) GetClient() VaultAPI
- func (v *Vault) GetName() string
- func (v *Vault) GetPath() string
- func (v *Vault) GetRawURL() *url.URL
- func (v *Vault) GetURL() *url.URL
- func (v *Vault) IsValid() bool
- func (v *Vault) Load() (string, error)
- func (v *Vault) Store()
- func (src *Vault) Walk(visitor core.Visitor)
- func (src *Vault) Write(secret core.Secret) error
- type VaultAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for communicating with vault backends
func (*Client) TokenIsValid ¶
TokenIsValid queries the vault server to verify that the token is valid
func (*Client) UserpassLogin ¶
UserpassLogin performs a username+password login with vault
type EJSONEndpoint ¶
type EJSONEndpoint struct {
// contains filtered or unexported fields
}
type JSONEndpoint ¶
type JSONEndpoint struct {
// contains filtered or unexported fields
}
JSONEndpoint ...
type SecretsReader ¶
SecretsReader is just the Read portion of the Vault client API
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault implements the syncrets vault backend
func NewVaultBackend ¶
NewVaultBackend returns a vault backend based on the supplied arguments
func (*Vault) Authenticate ¶
Authenticate with the backend vault server
type VaultAPI ¶
type VaultAPI interface { SecretsReader List(path string) (*vaultapi.Secret, error) UserpassLogin(username string, password string) error TokenIsValid() bool Write(path string, data map[string]interface{}) (*vaultapi.Secret, error) Delete(path string) (*vaultapi.Secret, error) GetToken() string SetToken(token string) }
VaultAPI is a composite API of all the Vault client APIs as interfaces
Click to show internal directories.
Click to hide internal directories.