-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.go
61 lines (58 loc) · 2.54 KB
/
api.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package webhdfs
const (
PathPrefix = "/webhdfs/v1/"
)
var (
MaxHTTPBodyLengthDumped = 100
)
const (
OpOpen = "OPEN"
OpGetFileStatus = "GETFILESTATUS"
OpListStatus = "LISTSTATUS"
OpListStatusBatch = "LISTSTATUS_BATCH"
OpGetContentSummary = "GETCONTENTSUMMARY"
OpGetQuotaUsage = "GETQUOTAUSAGE"
OpGetFileChecksum = "GETFILECHECKSUM"
OpGetHomeDirectory = "GETHOMEDIRECTORY"
OpGetDelegationToken = "GETDELEGATIONTOKEN"
OpGetTrashRoot = "GETTRASHROOT"
OpGetXAttr = "GETXATTRS"
OpGetXAttrs = "GETXATTRS"
OpGetAllXAttrs = "GETXATTRS"
OpListXAttrs = "LISTXATTRS"
OpCheckAccess = "CHECKACCESS"
OpGetAllStoragePolicy = "GETALLSTORAGEPOLICY"
OpGetStoragePolicy = "GETSTORAGEPOLICY"
OpGetSnapshotDiff = "GETSNAPSHOTDIFF"
OpGetSnapshottableDirectoryList = "GETSNAPSHOTTABLEDIRECTORYLIST"
OpGetFileBlockLocations = "GETFILEBLOCKLOCATIONS"
OpGetECPolicy = "GETECPOLICY"
OpCreate = "CREATE"
OpMkdirs = "MKDIRS"
OpCreateSymlink = "CREATESYMLINK"
OpRename = "RENAME"
OpSetReplication = "SETREPLICATION"
OpSetOwner = "SETOWNER"
OpSetPermission = "SETPERMISSION"
OpSetTimes = "SETTIMES"
OpRenewDelegationToken = "RENEWDELEGATIONTOKEN"
OpCancelDelegationToken = "CANCELDELEGATIONTOKEN"
OpAllowSnapshot = "ALLOWSNAPSHOT"
OpDisallowSnapshot = "DISALLOWSNAPSHOT"
OpCreateSnapshot = "CREATESNAPSHOT"
OpRenameSnapshot = "RENAMESNAPSHOT"
OpSetXAttr = "SETXATTR"
OpRemoveXAttr = "REMOVEXATTR"
OpSetStoragePolicy = "SETSTORAGEPOLICY"
OpSatisfyStoragePolicy = "SATISFYSTORAGEPOLICY"
OpEnableECPolicy = "ENABLEECPOLICY"
OpDisableECPolicy = "DISABLEECPOLICY"
OpSetECPolicy = "SETECPOLICY"
OpAppend = "APPEND"
OpConcat = "CONCAT"
OpTruncate = "TRUNCATE"
OpUnsetStoragePolicy = "UNSETSTORAGEPOLICY"
OpUnsetECPolicy = "UNSETECPOLICY"
OpDelete = "DELETE"
OpDeleteSnapshot = "DELETESNAPSHOT"
)