Versions in this module Expand all Collapse all v0 v0.1.0 Apr 28, 2015 Changes in this version + const AuthCookieName + 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) SetToken(v string) + func (c *Client) Sys() *Sys + func (c *Client) Token() string + type Config struct + Address string + HttpClient *http.Client + func DefaultConfig() *Config + type ErrorResponse struct + Errors []string + type Help struct + Help string + SeeAlso []string + type InitRequest struct + SecretShares int + SecretThreshold int + type InitResponse struct + Keys []string + RootToken string + type InitStatusResponse struct + Initialized bool + type LeaderResponse struct + HAEnabled bool + IsSelf bool + LeaderAddress string + type Logical struct + func (c *Logical) Delete(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 Mount struct + Description string + Type string + type Request struct + Body io.Reader + BodySize int64 + 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 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 + 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) 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) GetPolicy(name string) (string, error) + func (c *Sys) Init(opts *InitRequest) (*InitResponse, error) + func (c *Sys) InitStatus() (bool, 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]*Mount, error) + func (c *Sys) ListPolicies() ([]string, error) + func (c *Sys) Login(vars map[string]string) error + func (c *Sys) Mount(path, mountType, description string) error + func (c *Sys) PutPolicy(name, rules string) error + func (c *Sys) Remount(from, to string) error + func (c *Sys) Renew(id string, increment int) (*Secret, error) + func (c *Sys) Revoke(id string) error + func (c *Sys) RevokePrefix(id string) error + func (c *Sys) Seal() error + func (c *Sys) SealStatus() (*SealStatusResponse, 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) Renew(token string, increment int) (*Secret, error) + func (c *TokenAuth) RevokeOrphan(token string) error + func (c *TokenAuth) RevokePrefix(token string) error + func (c *TokenAuth) RevokeTree(token string) error + type TokenCreateRequest struct + DisplayName string + ID string + Lease string + Metadata map[string]string + NoParent bool + NumUses int + Policies []string