Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Version *VersionService Groups *GroupService Vaults *VaultService }
type GroupParams ¶
type GroupParams struct {
UUID string `url:"uuid,omitempty"`
}
type GroupService ¶
type GroupService struct {
// contains filtered or unexported fields
}
func (*GroupService) List ¶
func (s *GroupService) List() (groups []Group, err error)
type Transport ¶
type Transport struct {
Base http.RoundTripper
}
type VaultParams ¶
type VaultParams struct {
Additional string `url:"additional,omitempty"`
}
type VaultRecord ¶
type VaultRecord struct { UUID string `json:"uuid"` Name string `json:"name"` Username string `json:"username"` Color string `json:"color"` Filename string `json:"filename"` Types []string `json:"types"` Links []struct { ID int `json:"id"` Href string `json:"href"` } `json:"links"` AdditionalObjects struct { Secret struct { Password string `json:"password"` File []byte `json:"file"` Comment string `json:"comment"` } `json:"secret"` } `json:"additionalObjects"` }
func (*VaultRecord) Comment ¶
func (r *VaultRecord) Comment() string
func (*VaultRecord) File ¶
func (r *VaultRecord) File() []byte
func (*VaultRecord) Password ¶
func (r *VaultRecord) Password() string
type VaultService ¶
type VaultService struct {
// contains filtered or unexported fields
}
func (*VaultService) GetRecord ¶
func (s *VaultService) GetRecord(group *Group, uuid string) (record *VaultRecord, err error)
Retrieve a vault record by uuid for a certain group, including secrets
func (*VaultService) GetRecords ¶
func (s *VaultService) GetRecords(g *Group) (records []VaultRecord, err error)
Retrieve all vault records for a group (secrets are not included)
type VersionService ¶
type VersionService struct {
// contains filtered or unexported fields
}
func (*VersionService) Get ¶
func (s *VersionService) Get() (v *Version, err error)
Click to show internal directories.
Click to hide internal directories.