carddav: add AddressBook.Info

This commit is contained in:
emersion
2017-09-09 16:45:31 +02:00
parent 8d4a1ede86
commit 1152b72a07
2 changed files with 18 additions and 4 deletions

View File

@@ -13,6 +13,12 @@ var (
ErrNotFound = errors.New("carddav: not found")
)
type AddressBookInfo struct {
Name string
Description string
MaxResourceSize int
}
type AddressObject interface {
ID() string
Card() (vcard.Card, error)
@@ -20,6 +26,7 @@ type AddressObject interface {
}
type AddressBook interface {
Info() (*AddressBookInfo, error)
GetAddressObject(id string) (AddressObject, error)
ListAddressObjects() ([]AddressObject, error)
}