Documentation
¶
Index ¶
- type Client
- func (c *Client) AddFolder(folderRequest FolderRequest) (FolderResponse, error)
- func (c *Client) AddPassword(pwRequest PasswordRequest) (PasswordResponse, error)
- func (c *Client) AddVault(vaultRequest VaultAddRequest) (VaultOperationResponse, error)
- func (c *Client) DeleteFolder(folderId string) (DeleteResponse, error)
- func (c *Client) DeletePassword(pwId string) (DeleteResponse, error)
- func (c *Client) DeleteVault(vaultId string) (DeleteResponse, error)
- func (c *Client) EditFolder(folderId string, request FolderRequest) (FolderResponse, error)
- func (c *Client) EditPassword(pwId string, request PasswordRequest) (PasswordResponse, error)
- func (c *Client) EditVault(vaultId string, request VaultEditRequest) (VaultOperationResponse, error)
- func (c *Client) GetFolder(folderId string) (FolderResponse, error)
- func (c *Client) GetPassword(pwId string) (PasswordResponse, error)
- func (c *Client) GetVault(vaultId string) (VaultResponse, error)
- func (c *Client) Login() error
- func (c *Client) Logout() error
- func (c *Client) SearchFolder(request FolderSearchRequest) (FolderSearchResponse, error)
- func (c *Client) SearchPassword(request PasswordSearchRequest) (PasswordSearchResponse, error)
- type DeleteResponse
- type FolderDeleteResponse
- type FolderRequest
- type FolderResponse
- type FolderResponseData
- type FolderSearchRequest
- type FolderSearchResponse
- type LoginResponse
- type LoginResponseData
- type LogoutResponse
- type PasswordAttachmentData
- type PasswordCustomData
- type PasswordRequest
- type PasswordResponse
- type PasswordResponseData
- type PasswordSearchRequest
- type PasswordSearchResponse
- type PasswordShortcutData
- type PathData
- type User
- type VaultAddRequest
- type VaultEditRequest
- type VaultOperationResponse
- type VaultResponse
- type VaultResponseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) AddFolder ¶
func (c *Client) AddFolder(folderRequest FolderRequest) (FolderResponse, error)
func (*Client) AddPassword ¶
func (c *Client) AddPassword(pwRequest PasswordRequest) (PasswordResponse, error)
func (*Client) AddVault ¶
func (c *Client) AddVault(vaultRequest VaultAddRequest) (VaultOperationResponse, error)
func (*Client) DeleteFolder ¶
func (c *Client) DeleteFolder(folderId string) (DeleteResponse, error)
func (*Client) DeletePassword ¶
func (c *Client) DeletePassword(pwId string) (DeleteResponse, error)
func (*Client) DeleteVault ¶
func (c *Client) DeleteVault(vaultId string) (DeleteResponse, error)
func (*Client) EditFolder ¶
func (c *Client) EditFolder(folderId string, request FolderRequest) (FolderResponse, error)
func (*Client) EditPassword ¶
func (c *Client) EditPassword(pwId string, request PasswordRequest) (PasswordResponse, error)
func (*Client) EditVault ¶
func (c *Client) EditVault(vaultId string, request VaultEditRequest) (VaultOperationResponse, error)
func (*Client) GetPassword ¶
func (c *Client) GetPassword(pwId string) (PasswordResponse, error)
Get a password by ID
func (*Client) SearchFolder ¶
func (c *Client) SearchFolder(request FolderSearchRequest) (FolderSearchResponse, error)
func (*Client) SearchPassword ¶
func (c *Client) SearchPassword(request PasswordSearchRequest) (PasswordSearchResponse, error)
Search for password by name
type DeleteResponse ¶
type FolderDeleteResponse ¶
type FolderRequest ¶
type FolderResponse ¶
type FolderResponse struct { Status string Code string // folderCreated, folderRenamed Data FolderResponseData }
type FolderResponseData ¶
type FolderSearchRequest ¶
type FolderSearchResponse ¶
type FolderSearchResponse struct { Status string Code string Data []FolderResponseData }
type LoginResponse ¶
type LoginResponse struct { Status string Data LoginResponseData }
type LoginResponseData ¶
type LogoutResponse ¶ added in v0.2.0
type PasswordAttachmentData ¶
type PasswordCustomData ¶
type PasswordRequest ¶
type PasswordRequest struct { Name string `json:"name"` Login string `json:"login,omitempty"` CryptedPassword string `json:"cryptedPassword,omitempty"` Url string `json:"url,omitempty"` Description string `json:"description,omitempty"` Custom []PasswordCustomData `json:"custom,omitempty"` Color int `json:"color,omitempty"` Attachments []PasswordAttachmentData `json:"attachments,omitempty"` Tags []string `json:"tags,omitempty"` MasterHash string `json:"masterHash,omitempty"` VaultId string `json:"vaultId"` FolderId string `json:"folderId,omitempty"` ShortcutId string `json:"shortcutId,omitempty"` }
type PasswordResponse ¶
type PasswordResponse struct { Status string Code string // passwordNull, accessDenied Data PasswordResponseData }
type PasswordResponseData ¶
type PasswordResponseData struct { VaultId string FolderId string Custom []PasswordCustomData Id string Name string Login string CryptedPassword string CryptedKey string Description string Url string Color int Attachments []PasswordAttachmentData Tags []string Path []PathData Access string AccessCode int Shortcut PasswordShortcutData LastPasswordUpdate int UpdatedAt string IsFavorite bool }
type PasswordSearchRequest ¶
type PasswordSearchResponse ¶
type PasswordSearchResponse struct { Status string Code string Data []PasswordResponseData }
type PasswordShortcutData ¶
type VaultAddRequest ¶
type VaultEditRequest ¶
type VaultEditRequest struct {
Name string `json:"name"`
}
type VaultOperationResponse ¶
type VaultResponse ¶
type VaultResponse struct { Status string Code string Data VaultResponseData }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.