Debian Codegraph @

const.go

raw
1 package desync
2
3 const (
4 // Format identifiers used in archive files
5 CaFormatEntry = 0x1396fabcea5bbb51
6 CaFormatUser = 0xf453131aaeeaccb3
7 CaFormatGroup = 0x25eb6ac969396a52
8 CaFormatXAttr = 0xb8157091f80bc486
9 CaFormatACLUser = 0x297dc88b2ef12faf
10 CaFormatACLGroup = 0x36f2acb56cb3dd0b
11 CaFormatACLGroupObj = 0x23047110441f38f3
12 CaFormatACLDefault = 0xfe3eeda6823c8cd0
13 CaFormatACLDefaultUser = 0xbdf03df9bd010a91
14 CaFormatACLDefaultGroup = 0xa0cb1168782d1f51
15 CaFormatFCaps = 0xf7267db0afed0629
16 CaFormatSELinux = 0x46faf0602fd26c59
17 CaFormatSymlink = 0x664a6fb6830e0d6c
18 CaFormatDevice = 0xac3dace369dfe643
19 CaFormatPayload = 0x8b9e1d93d6dcffc9
20 CaFormatFilename = 0x6dbb6ebcb3161f0b
21 CaFormatGoodbye = 0xdfd35c5e8327c403
22 CaFormatGoodbyeTailMarker = 0x57446fa533702943
23 CaFormatIndex = 0x96824d9c7b129ff9
24 CaFormatTable = 0xe75b9e112f17417d
25 CaFormatTableTailMarker = 0x4b4f050e5549ecd1
26
27 // SipHash key used in Goodbye elements to hash the filename. It's 16 bytes,
28 // split into 2x64bit values, upper and lower part of the key
29 CaFormatGoodbyeHashKey0 = 0x8574442b0f1d84b3
30 CaFormatGoodbyeHashKey1 = 0x2736ed30d1c22ec1
31
32 // Format feature flags
33 CaFormatWith16BitUIDs = 0x1
34 CaFormatWith32BitUIDs = 0x2
35 CaFormatWithUserNames = 0x4
36 CaFormatWithSecTime = 0x8
37 CaFormatWithUSecTime = 0x10
38 CaFormatWithNSecTime = 0x20
39 CaFormatWith2SecTime = 0x40
40 CaFormatWithReadOnly = 0x80
41 CaFormatWithPermissions = 0x100
42 CaFormatWithSymlinks = 0x200
43 CaFormatWithDeviceNodes = 0x400
44 CaFormatWithFIFOs = 0x800
45 CaFormatWithSockets = 0x1000
46
47 /* DOS file flags */
48 CaFormatWithFlagHidden = 0x2000
49 CaFormatWithFlagSystem = 0x4000
50 CaFormatWithFlagArchive = 0x8000
51
52 /* chattr() flags */
53 CaFormatWithFlagAppend = 0x10000
54 CaFormatWithFlagNoAtime = 0x20000
55 CaFormatWithFlagCompr = 0x40000
56 CaFormatWithFlagNoCow = 0x80000
57 CaFormatWithFlagNoDump = 0x100000
58 CaFormatWithFlagDirSync = 0x200000
59 CaFormatWithFlagImmutable = 0x400000
60 CaFormatWithFlagSync = 0x800000
61 CaFormatWithFlagNoComp = 0x1000000
62 CaFormatWithFlagProjectInherit = 0x2000000
63
64 /* btrfs magic */
65 CaFormatWithSubvolume = 0x4000000
66 CaFormatWithSubvolumeRO = 0x8000000
67
68 /* Extended Attribute metadata */
69 CaFormatWithXattrs = 0x10000000
70 CaFormatWithACL = 0x20000000
71 CaFormatWithSELinux = 0x40000000
72 CaFormatWithFcaps = 0x80000000
73
74 CaFormatExcludeFile = 0x1000000000000000
75 CaFormatSHA512256 = 0x2000000000000000
76 CaFormatExcludeSubmounts = 0x4000000000000000
77 CaFormatExcludeNoDump = 0x8000000000000000
78
79 // Protocol message types
80 CaProtocolHello = 0x3c71d0948ca5fbee
81 CaProtocolIndex = 0xb32a91dd2b3e27f8
82 CaProtocolIndexEOF = 0x4f0932f1043718f5
83 CaProtocolArchive = 0x95d6428a69eddcc5
84 CaProtocolArchiveEOF = 0x450bef663f24cbad
85 CaProtocolRequest = 0x8ab427e0f89d9210
86 CaProtocolChunk = 0x5213dd180a84bc8c
87 CaProtocolMissing = 0xd010f9fac82b7b6c
88 CaProtocolGoodbye = 0xad205dbf1a3686c3
89 CaProtocolAbort = 0xe7d9136b7efea352
90
91 // Provided services
92 CaProtocolReadableStore = 0x1
93 CaProtocolWritableStore = 0x2
94 CaProtocolReadableIndex = 0x4
95 CaProtocolWritableIndex = 0x8
96 CaProtocolReadableArchive = 0x10
97 CaProtocolWritableArchive = 0x20
98
99 // Wanted services
100 CaProtocolPullChunks = 0x40
101 CaProtocolPullIndex = 0x80
102 CaProtocolPullArchive = 0x100
103 CaProtocolPushChunks = 0x200
104 CaProtocolPushIndex = 0x400
105 CaProtocolPushIndexChunks = 0x800
106 CaProtocolPushArchive = 0x1000
107
108 // Protocol request flags
109 CaProtocolRequestHighPriority = 1
110
111 // Chunk properties
112 CaProtocolChunkCompressed = 1
113 )
114
115 var (
116 FormatString = map[uint64]string{
117 CaFormatEntry: "CaFormatEntry",
118 CaFormatUser: "CaFormatUser",
119 CaFormatGroup: "CaFormatGroup",
120 CaFormatXAttr: "CaFormatXAttr",
121 CaFormatACLUser: "CaFormatACLUser",
122 CaFormatACLGroup: "CaFormatACLGroup",
123 CaFormatACLGroupObj: "CaFormatACLGroupObj",
124 CaFormatACLDefault: "CaFormatACLDefault",
125 CaFormatACLDefaultUser: "CaFormatACLDefaultUser",
126 CaFormatACLDefaultGroup: "CaFormatACLDefaultGroup",
127 CaFormatFCaps: "CaFormatFCaps",
128 CaFormatSELinux: "CaFormatSELinux",
129 CaFormatSymlink: "CaFormatSymlink",
130 CaFormatDevice: "CaFormatDevice",
131 CaFormatPayload: "CaFormatPayload",
132 CaFormatFilename: "CaFormatFilename",
133 CaFormatGoodbye: "CaFormatGoodbye",
134 CaFormatGoodbyeTailMarker: "CaFormatGoodbyeTailMarker",
135 CaFormatIndex: "CaFormatIndex",
136 CaFormatTable: "CaFormatTable",
137 CaFormatTableTailMarker: "CaFormatTableTailMarker",
138 }
139 )