Documentation ¶
Overview ¶
Package vault interfaces with the vault.
Index ¶
- Variables
- func AppRoleLogin(role, secret string) func(*Client) error
- func TokenLogin(token string) func(*Client) error
- type Client
- func (c *Client) AutoRenew(ctx context.Context) <-chan error
- func (c *Client) CreateSubToken(policy string) (string, error)
- func (c *Client) GetSecret(backend, path string, destination interface{}) error
- func (c *Client) Login() error
- func (c *Client) RESTClient(name, pki string) (rest.Client, error)
- func (c *Client) RESTServer(ctx context.Context, handler http.Handler, name string, pkis ...string) <-chan error
- func (c *Client) UpdateSecret(backend, path string, source interface{}) error
Constants ¶
This section is empty.
Variables ¶
ErrNotLoggedIn means that the vault client has no token to operate with.
Functions ¶
func AppRoleLogin ¶
AppRoleLogin logs in with the given app role.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for vault operations.
func New ¶
New creates a new vault client.
func (*Client) AutoRenew ¶
AutoRenew automatically renews certificates.
func (*Client) CreateSubToken ¶
CreateSubToken from the current token with the given policy only.
func (*Client) GetSecret ¶
GetSecret reads a secret into an interface.
func (*Client) RESTClient ¶
RESTClient creates a new REST client for mauzr.
Click to show internal directories.
Click to hide internal directories.