carddav: PUT support

This commit is contained in:
emersion
2017-09-13 19:02:12 +02:00
parent 64f8396654
commit 2a7d999100
3 changed files with 118 additions and 36 deletions

View File

@@ -21,12 +21,14 @@ type AddressBookInfo struct {
type AddressObject interface {
ID() string
Card() (vcard.Card, error)
Stat() (os.FileInfo, error) // can return nil, nil
Card() (vcard.Card, error)
SetCard(vcard.Card) error
}
type AddressBook interface {
Info() (*AddressBookInfo, error)
GetAddressObject(id string) (AddressObject, error)
ListAddressObjects() ([]AddressObject, error)
CreateAddressObject(vcard.Card) (AddressObject, error)
}