Documentation ¶ Index ¶ type Client func NewClient() (*Client, error) func (c *Client) Read(path string) (*api.Secret, error) type SecretReader Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { *api.Client } Client simply wraps a vault client. It satisfies the SecretReader interface. func NewClient ¶ func NewClient() (*Client, error) NewClient returns a new vault client. Address and token initialization are handled internally. Any errors encountered during initialization (for instance due to lacking environment variables) are returned to the caller. func (*Client) Read ¶ func (c *Client) Read(path string) (*api.Secret, error) type SecretReader ¶ type SecretReader interface { Read(path string) (*api.Secret, error) } SecretReader is an interface describing anything able to read vault data. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.