carddav: support address book creation/deletion
Now that the handling for multiple address books is in place, this commit adds initial support for creation and deletion of address books. These operations obviously require support from the backend, so the interface gains two new methods. All properties of the address book passed to `CreateAddressBook()` may be unset (e.g. when a client sends a MKCOL request without a body), except for the path, which is always set. It is up to the backend to put any desired default values in place.
This commit is contained in:
committed by
Simon Ser
parent
80d77a977a
commit
71bd967b43
@@ -211,3 +211,11 @@ func (r *reportReq) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
|
||||
return d.DecodeElement(v, &start)
|
||||
}
|
||||
|
||||
type mkcolReq struct {
|
||||
XMLName xml.Name `xml:"DAV: mkcol"`
|
||||
ResourceType internal.ResourceType `xml:"set>prop>resourcetype"`
|
||||
DisplayName string `xml:"set>prop>displayname"`
|
||||
Description addressbookDescription `xml:"set>prop>addressbook-description"`
|
||||
// TODO this could theoretically contain all addressbook properties?
|
||||
}
|
||||
|
Reference in New Issue
Block a user