Versions in this module Expand all Collapse all v0 v0.1.7 Jul 31, 2019 v0.1.6 Jul 30, 2019 Changes in this version + var AuthApproleLoginLocation = "/auth/approle/login" + var AuthTokenRenewSelfLocation = "/auth/token/renew-self" + var AuthTokenRevokeSelfLocation = "/auth/token/revoke-self" + var ExpectContinueTimeout = 10 + var KeepAlive = 3 + var LeftTemplateDelim = `((` + var ResponseHeaderTimeout = 20 + var RightTemplateDelim = `))` + var SysHealthLocation = "/sys/health" + var TLSHandshakeTimeout = 10 + type Approle struct + func (i *Approle) Login(v *Client) *Approle + type ApproleLoginInput struct + RoleId string + SecretId string + type Auth struct + Accessor string + Approle Approle + ClientToken string + EntityID string + IdentityPolicies []string + LeaseDuration int + Metadata map[string]string + Policies []string + Renewable bool + Token Token + TokenPolicies []string + type Client struct + Address string + Auth Auth + File string + Insecure bool + Path string + RoleId string + Secret Secret + SecretId string + Selector string + SystemHealth SystemHealth + Token string + func NewVaultClient(ctx context.Context, addr string, insecure bool) *Client + func (v *Client) CreateToken(roleId, secretId string) string + func (v *Client) ExtendedValidate() error + func (v *Client) FetchSecret(token, path, selector string) string + func (v *Client) ParseFile(roleId, secretId, vaultPath, file string) + func (v *Client) RenewToken(token string) string + func (v *Client) RevokeToken(token string) + func (v *Client) Setup() + func (v *Client) Validate() error + func (v *Client) ValidateCreateToken() error + func (v *Client) ValidateFetchSecret() error + func (v *Client) ValidateParseFile() error + func (v *Client) ValidateRenewToken() error + func (v *Client) ValidateRevokeToken() error + type Response struct + Auth *Auth + Data map[string]interface{} + LeaseDuration int + LeaseID string + Renewable bool + RequestID string + Warnings []string + type Secret struct + Data map[string]interface{} + LeaseDuration int + LeaseId string + Renewable bool + func (i *Secret) Get(v *Client) *Secret + type SystemHealth struct + Initialized bool + Sealed bool + Standby bool + func (i *SystemHealth) GetInitialized() bool + func (i *SystemHealth) GetSealed() bool + func (i *SystemHealth) GetStandby() bool + func (i *SystemHealth) Ready() bool + func (i *SystemHealth) Reload(v *Client) *SystemHealth + type Token struct + func (i *Token) RenewSelf(v *Client) *Token + func (i *Token) RevokeSelf(v *Client) + type VaultClientErrors struct + Errors []string + func (i *VaultClientErrors) Error() string