-
Notifications
You must be signed in to change notification settings - Fork 17
/
link_file_types.go
35 lines (27 loc) · 1.05 KB
/
link_file_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package proton
type CreateFileReq struct {
ParentLinkID string
Name string // Encrypted File Name
Hash string // Encrypted content hash
MIMEType string // MIME Type
ContentKeyPacket string // The block's key packet, encrypted with the node key.
ContentKeyPacketSignature string // Unencrypted signature of the content session key, signed with the NodeKey
NodeKey string // The private NodeKey, used to decrypt any file/folder content.
NodePassphrase string // The passphrase used to unlock the NodeKey, encrypted by the owning Link/Share keyring.
NodePassphraseSignature string // The signature of the NodePassphrase
SignatureAddress string // Signature email address used to sign passphrase and name
}
type CreateFileRes struct {
ID string // Encrypted Link ID
RevisionID string // Encrypted Revision ID
}
type UpdateRevisionReq struct {
BlockList []BlockToken
State RevisionState
ManifestSignature string
SignatureAddress string
}
type BlockToken struct {
Index int
Token string
}