Documentation ¶
Index ¶
Constants ¶
View Source
const ( CipherLogin = 1 CipherCard = 3 CipherIdentity = 4 CipherNote = 2 CipherSSHKey = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct { Type CipherType `json:"type,omitempty"` ID *uuid.UUID `json:"id,omitempty"` Name crypto.EncString `json:"name,omitempty"` Edit bool `json:"edit,omitempty"` RevisionDate time.Time `json:"revisionDate,omitempty"` DeletedDate time.Time `json:"deletedDate,omitempty"` FolderID *uuid.UUID `json:"folderId,omitempty"` OrganizationID *uuid.UUID `json:"organizationId,omitempty"` Favorite bool `json:"favorite,omitempty"` Attachments interface{} `json:"attachments,omitempty"` OrganizationUseTotp bool `json:"organizationUseTotp,omitempty"` CollectionIDs []string `json:"collectionIds,omitempty"` Fields []Field `json:"fields,omitempty"` Card *Card `json:"card,omitempty"` Identity *Identity `json:"identity,omitempty"` Login *LoginCipher `json:"login,omitempty"` Notes *crypto.EncString `json:"notes,omitempty"` SecureNote *SecureNoteCipher `json:"secureNote,omitempty"` SSHKey *SSHKeyCipher `json:"sshKey,omitempty"` Key *crypto.EncString `json:"key,omitempty"` }
func (Cipher) GetKeyForCipher ¶
type CipherType ¶
type CipherType int
type Identity ¶
type Identity struct { Title crypto.EncString `json:"title"` FirstName crypto.EncString `json:"firstName"` MiddleName crypto.EncString `json:"middleName"` LastName crypto.EncString `json:"lastName"` Username crypto.EncString `json:"username"` Company crypto.EncString `json:"company"` SSN crypto.EncString `json:"ssn"` PassportNumber crypto.EncString `json:"passportNumber"` LicenseNumber crypto.EncString `json:"licenseNumber"` Email crypto.EncString `json:"email"` Phone crypto.EncString `json:"phone"` Address1 crypto.EncString `json:"address1"` Address2 crypto.EncString `json:"address2"` Address3 crypto.EncString `json:"address3"` City crypto.EncString `json:"city"` State crypto.EncString `json:"state"` PostalCode crypto.EncString `json:"postalCode"` Country crypto.EncString `json:"country"` }
type LoginCipher ¶
type Organization ¶
type Organization struct { Object string `json:"object"` Id uuid.UUID `json:"id"` Name string `json:"name"` UseGroups bool `json:"useGroups"` UseDirectory bool `json:"useDirectory"` UseEvents bool `json:"useEvents"` UseTotp bool `json:"useTotp"` Use2fa bool `json:"use2fa"` UseApi bool `json:"useApi"` UsersGetPremium bool `json:"usersGetPremium"` SelfHost bool `json:"selfHost"` Seats int `json:"seats"` MaxCollections int `json:"maxCollections"` MaxStorageGb int `json:"maxStorageGb"` Key string `json:"key"` Status int `json:"status"` Type int `json:"type"` Enabled bool `json:"enabled"` }
type Profile ¶
type Profile struct { ID uuid.UUID `json:"id"` Name string `json:"name"` Email string `json:"email"` EmailVerified bool `json:"emailVerified"` Premium bool `json:"premium"` MasterPasswordHint string `json:"masterPasswordHint"` Culture string `json:"culture"` TwoFactorEnabled bool `json:"twoFactorEnabled"` Key crypto.EncString `json:"key"` PrivateKey crypto.EncString `json:"privateKey"` SecurityStamp string `json:"securityStamp"` Organizations []Organization `json:"organizations"` }
type SSHKeyCipher ¶ added in v0.3.5
type SecureNoteCipher ¶
type SecureNoteCipher struct {
Type SecureNoteType
}
type SecureNoteType ¶
type SecureNoteType int
Click to show internal directories.
Click to hide internal directories.