-
Notifications
You must be signed in to change notification settings - Fork 0
/
webdavtypes.go
76 lines (61 loc) · 1.67 KB
/
webdavtypes.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package webdavtypes
import "encoding/xml"
type LockScope struct {
Value xml.Name `xml:",any"`
}
type LockType struct {
Value xml.Name `xml:",any"`
}
type LockEntry struct {
LockScope LockScope `xml:"lockscope"`
LockType LockType `xml:"locktype"`
}
type Supportedlock struct {
Lockentry LockEntry `xml:"lockentry"`
}
type Owner struct {
Href string `xml:"href"`
}
type LockToken struct {
Href string `xml:"href"`
}
type LockRoot struct {
Href string `xml:"href"`
}
type ResourceType struct {
Value xml.Name `xml:",any"`
}
type ActiveLock struct {
LockType LockType `xml:"locktype"`
LockScope LockScope `xml:"lockscope"`
Depth string `xml:"depth"`
Owner Owner `xml:"owner"`
Timeout string `xml:"timeout"`
LockToken LockToken `xml:"locktoken"`
LockRoot LockRoot `xml:"lockroot"`
}
type LockDiscovery struct {
ActiveLock ActiveLock `xml:"activelock"`
}
type Prop struct {
Displayname string `xml:"displayname"`
Getlastmodified string `xml:"getlastmodified"`
Getcontentlength int64 `xml:"getcontentlength"`
Getcontenttype string `xml:"getcontenttype"`
Getetag string `xml:"getetag"`
Supportedlock Supportedlock `xml:"supportedlock"`
Resourcetype ResourceType `xml:"resourcetype"`
LockDiscovery LockDiscovery `xml:"lockdiscovery"`
Win32LastModifiedTime string `xml:"Win32LastModifiedTime"`
}
type Propstat struct {
Prop Prop `xml:"prop"`
Status string `xml:"status"`
}
type Response struct {
Href string `xml:"href"`
Propstat Propstat `xml:"propstat"`
}
type Multistatus struct {
Response []Response `xml:"response"`
}