Documentation
¶
Overview ¶
Package api has type definitions for webdav
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Exception string `xml:"exception,omitempty"` Message string `xml:"message,omitempty"` Status string StatusCode int }
Error is used to desribe webdav errors
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotFound</s:exception> <s:message>File with name Photo could not be located</s:message>
</d:error>
type Multistatus ¶
type Multistatus struct {
Responses []Response `xml:"response"`
}
Multistatus contains responses returned from an HTTP 207 return code
type Prop ¶
type Prop struct { Status string `xml:"DAV: status"` Name string `xml:"DAV: prop>displayname,omitempty"` Type *xml.Name `xml:"DAV: prop>resourcetype>collection,omitempty"` Size int64 `xml:"DAV: prop>getcontentlength,omitempty"` Modified Time `xml:"DAV: prop>getlastmodified,omitempty"` }
Prop is the properties of a response
type Time ¶
Time represents represents date and time information for the webdav API marshalling to and from timeFormat
func (*Time) MarshalXML ¶
MarshalXML turns a Time into XML
func (*Time) UnmarshalXML ¶
UnmarshalXML turns XML into a Time
Click to show internal directories.
Click to hide internal directories.