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. If fullfills the SecretReader interface. func NewClient ¶ func NewClient() (*Client, error) NewClient returns a new vault client. It handles address and token initialization. It returns any errors encountered during construction of it's nested client or if it is unable to properly configure the client token. 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 which groups anything able to read and write vault data. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.