Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
type Account struct {
Id string `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
MasterPasswordHash string `json:"masterPasswordHash"`
MasterPasswordHint string `json:"masterPasswordHint"`
Key string `json:"key"`
KeyPair KeyPair `json:"keys"`
RefreshToken string `json:"-"`
TwoFactorSecret string `json:"-"`
Kdf int `json:"kdf"`
KdfIterations int `json:"kdfIterations"`
}
func (Account) GetProfile ¶
type Cipher ¶
type Cipher struct {
Type int
FolderId *string // Must be pointer to output null in json. Android app will crash if not null
OrganizationId *string
Favorite bool
Edit bool
Id string
Data CipherData // deprecated TODO: Stop depending on this
Attachments []string
OrganizationUseTotp bool
RevisionDate time.Time
Object string
CollectionIds []string
Card *string
Fields []string
Identity *string
Login Login
Name *string
Notes *string // Must be pointer to output null in json. Android app will crash if not null
SecureNote SecureNote
}
The data we store and send to the client
type CipherData ¶
type CipherData struct {
Uri *string
Username *string
Password *string
Totp *string // Must be pointer to output null in json. Android app will crash if not null
Name *string
Notes *string // Must be pointer to output null in json. Android app will crash if not null
Fields []string
Uris []Uri
}
func (*CipherData) Bytes ¶
func (data *CipherData) Bytes() ([]byte, error)
type Domains ¶
type Domains struct {
EquivalentDomains []string
GlobalEquivalentDomains []GlobalEquivalentDomains
Object string
}
type GlobalEquivalentDomains ¶
type SecureNote ¶
type SecureNote struct {
Type int
}
Click to show internal directories.
Click to hide internal directories.