Documentation ¶
Index ¶
- func DeleteVault(id, email string) error
- func HasAccessToVault(vaultID, userEmail string) bool
- func IsVaultOwner(vaultID, userEmail string) bool
- func NewUser(email, password, name string) error
- func SetVaultVersion(id string, ver int) error
- func ShareVaultInvite(email, name, vaultID string) error
- func ShareVaultRevoke(shareUID, vaultID, userEmail string) error
- type Share
- type User
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteVault ¶
func HasAccessToVault ¶
func IsVaultOwner ¶
func SetVaultVersion ¶
func ShareVaultInvite ¶
func ShareVaultRevoke ¶
Types ¶
type User ¶
type Vault ¶
type Vault struct { ID string `json:"id,omitempty" gorm:"primaryKey"` UserEmail string `json:"user_email,omitempty"` Created int64 `json:"created,omitempty"` Host string `json:"host,omitempty"` Name string `json:"name,omitempty"` Password string `json:"password,omitempty"` Salt string `json:"salt,omitempty"` Size int64 `json:"size,omitempty"` // Not part of JSON Version int `json:"-,omitempty" gorm:"default:0"` KeyHash string `json:"keyhash,omitempty"` }
func GetSharedVaults ¶
Click to show internal directories.
Click to hide internal directories.