Versions in this module Expand all Collapse all v0 v0.0.6 Mar 16, 2016 v0.0.5 Mar 8, 2016 v0.0.4 Mar 8, 2016 v0.0.3 Feb 22, 2016 Changes in this version + const EnvVaultAddress + const EnvVaultCACert + const EnvVaultCAPath + const EnvVaultClientCert + const EnvVaultClientKey + const EnvVaultInsecure + const SSHAgentDefaultMountPoint + const VerifyEchoRequest + const VerifyEchoResponse + func LoadCACert(path string) (*x509.CertPool, error) + func LoadCAPath(path string) (*x509.CertPool, error) + type Audit struct + Description string + Options map[string]string + Type string + type Auth struct + func (a *Auth) Token() *TokenAuth + type AuthMount struct + Description string + Type string + type Client struct + func NewClient(c *Config) (*Client, error) + func (c *Client) Auth() *Auth + func (c *Client) ClearToken() + func (c *Client) Help(path string) (*Help, error) + func (c *Client) Logical() *Logical + func (c *Client) NewRequest(method, path string) *Request + func (c *Client) RawRequest(r *Request) (*Response, error) + func (c *Client) SSH() *SSH + func (c *Client) SSHAgent() *SSHAgent + func (c *Client) SSHAgentWithMountPoint(mountPoint string) *SSHAgent + func (c *Client) SSHWithMountPoint(mountPoint string) *SSH + func (c *Client) SetToken(v string) + func (c *Client) Sys() *Sys + func (c *Client) Token() string + type Config struct + Address string + HttpClient *http.Client + func DefaultConfig() *Config + func (c *Config) ReadEnvironment() error + type ErrorResponse struct + Errors []string + type GenerateRootStatusResponse struct + Complete bool + EncodedRootToken string + Nonce string + PGPFingerprint string + Progress int + Required int + Started bool + type Help struct + Help string + SeeAlso []string + type InitRequest struct + PGPKeys []string + SecretShares int + SecretThreshold int + type InitResponse struct + Keys []string + RootToken string + type InitStatusResponse struct + Initialized bool + type KeyStatus struct + InstallTime time.Time + Term int + type LeaderResponse struct + HAEnabled bool + IsSelf bool + LeaderAddress string + type Logical struct + func (c *Logical) Delete(path string) (*Secret, error) + func (c *Logical) List(path string) (*Secret, error) + func (c *Logical) Read(path string) (*Secret, error) + func (c *Logical) Write(path string, data map[string]interface{}) (*Secret, error) + type MountConfigInput struct + DefaultLeaseTTL string + MaxLeaseTTL string + type MountConfigOutput struct + DefaultLeaseTTL int + MaxLeaseTTL int + type MountInput struct + Config MountConfigInput + Description string + Type string + type MountOutput struct + Config MountConfigOutput + Description string + Type string + type RekeyInitRequest struct + Backup bool + PGPKeys []string + SecretShares int + SecretThreshold int + type RekeyRetrieveResponse struct + Keys map[string][]string + Nonce string + type RekeyStatusResponse struct + Backup bool + N int + Nonce string + PGPFingerprints []string + Progress int + Required int + Started bool + T int + type RekeyUpdateResponse struct + Backup bool + Complete bool + Keys []string + Nonce string + PGPFingerprints []string + type Request struct + Body io.Reader + BodySize int64 + ClientToken string + Method string + Obj interface{} + Params url.Values + URL *url.URL + func (r *Request) ResetJSONBody() error + func (r *Request) SetJSONBody(val interface{}) error + func (r *Request) ToHTTP() (*http.Request, error) + type Response struct + func (r *Response) DecodeJSON(out interface{}) error + func (r *Response) Error() error + type SSH struct + MountPoint string + func (c *SSH) Credential(role string, data map[string]interface{}) (*Secret, error) + type SSHAgent struct + MountPoint string + func (c *SSHAgent) Verify(otp string) (*SSHVerifyResponse, error) + type SSHAgentConfig struct + AllowedCidrList string + CACert string + CAPath string + SSHMountPoint string + TLSSkipVerify bool + VaultAddr string + func LoadSSHAgentConfig(path string) (*SSHAgentConfig, error) + func (c *SSHAgentConfig) NewClient() (*Client, error) + func (c *SSHAgentConfig) SetTLSParameters(clientConfig *Config, certPool *x509.CertPool) + type SSHVerifyResponse struct + IP string + Message string + Username string + type SealStatusResponse struct + N int + Progress int + Sealed bool + T int + type Secret struct + Auth *SecretAuth + Data map[string]interface{} + LeaseDuration int + LeaseID string + Renewable bool + Warnings []string + func ParseSecret(r io.Reader) (*Secret, error) + type SecretAuth struct + ClientToken string + LeaseDuration int + Metadata map[string]string + Policies []string + Renewable bool + type Sys struct + func (c *Sys) AuditHash(path string, input string) (string, error) + func (c *Sys) DeletePolicy(name string) error + func (c *Sys) DisableAudit(path string) error + func (c *Sys) DisableAuth(path string) error + func (c *Sys) EnableAudit(path string, auditType string, desc string, opts map[string]string) error + func (c *Sys) EnableAuth(path, authType, desc string) error + func (c *Sys) GenerateRootCancel() error + func (c *Sys) GenerateRootInit(otp, pgpKey string) (*GenerateRootStatusResponse, error) + func (c *Sys) GenerateRootStatus() (*GenerateRootStatusResponse, error) + func (c *Sys) GenerateRootUpdate(shard, nonce string) (*GenerateRootStatusResponse, error) + func (c *Sys) GetPolicy(name string) (string, error) + func (c *Sys) Init(opts *InitRequest) (*InitResponse, error) + func (c *Sys) InitStatus() (bool, error) + func (c *Sys) KeyStatus() (*KeyStatus, error) + func (c *Sys) Leader() (*LeaderResponse, error) + func (c *Sys) ListAudit() (map[string]*Audit, error) + func (c *Sys) ListAuth() (map[string]*AuthMount, error) + func (c *Sys) ListMounts() (map[string]*MountOutput, error) + func (c *Sys) ListPolicies() ([]string, error) + func (c *Sys) Mount(path string, mountInfo *MountInput) error + func (c *Sys) MountConfig(path string) (*MountConfigOutput, error) + func (c *Sys) PutPolicy(name, rules string) error + func (c *Sys) RekeyCancel() error + func (c *Sys) RekeyDeleteBackup() error + func (c *Sys) RekeyInit(config *RekeyInitRequest) (*RekeyStatusResponse, error) + func (c *Sys) RekeyRetrieveBackup() (*RekeyRetrieveResponse, error) + func (c *Sys) RekeyStatus() (*RekeyStatusResponse, error) + func (c *Sys) RekeyUpdate(shard, nonce string) (*RekeyUpdateResponse, error) + func (c *Sys) Remount(from, to string) error + func (c *Sys) Renew(id string, increment int) (*Secret, error) + func (c *Sys) ResetUnsealProcess() (*SealStatusResponse, error) + func (c *Sys) Revoke(id string) error + func (c *Sys) RevokePrefix(id string) error + func (c *Sys) Rotate() error + func (c *Sys) Seal() error + func (c *Sys) SealStatus() (*SealStatusResponse, error) + func (c *Sys) TuneMount(path string, config MountConfigInput) error + func (c *Sys) Unmount(path string) error + func (c *Sys) Unseal(shard string) (*SealStatusResponse, error) + type TokenAuth struct + func (c *TokenAuth) Create(opts *TokenCreateRequest) (*Secret, error) + func (c *TokenAuth) Lookup(token string) (*Secret, error) + func (c *TokenAuth) LookupSelf() (*Secret, error) + func (c *TokenAuth) Renew(token string, increment int) (*Secret, error) + func (c *TokenAuth) RenewSelf(increment int) (*Secret, error) + func (c *TokenAuth) RevokeOrphan(token string) error + func (c *TokenAuth) RevokePrefix(token string) error + func (c *TokenAuth) RevokeSelf() error + func (c *TokenAuth) RevokeTree(token string) error + type TokenCreateRequest struct + DisplayName string + ID string + Lease string + Metadata map[string]string + NoDefaultPolicy bool + NoParent bool + NumUses int + Policies []string + TTL string