Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetAccount(id string) (*Account, error) GetSecret(path string) (*vault.Secret, error) }
Client struct defines what the client has access to.
type VaultClient ¶
type VaultClient struct {
// contains filtered or unexported fields
}
VaultClient struct defines a new vault client.
func NewClient ¶
func NewClient() (*VaultClient, error)
NewClient will attempt create a new secrets client.
func (*VaultClient) GetAccount ¶
func (c *VaultClient) GetAccount(id string) (*Account, error)
GetAccount will determine which account to use from the specified id.
Click to show internal directories.
Click to hide internal directories.