Commit Graph

121 Commits

Author SHA1 Message Date
Simon Ser
a892cc58df
internal: only handle relative paths in Client.ResolveHref
Don't prepend the endpoint path in front of absolute paths.
2020-02-12 17:13:12 +01:00
Simon Ser
f9d728aaeb
carddav: add Client.HasSupport 2020-02-05 16:08:15 +01:00
Simon Ser
25678476db
internal: add ETag 2020-02-03 21:48:31 +01:00
Simon Ser
dd1527b97e
carddav: allow created address book objects to have a different path
Closes: https://github.com/emersion/go-webdav/issues/32
2020-01-30 15:20:10 +01:00
Simon Ser
6aea0eda2d
caldav: add Client boilerplate 2020-01-30 13:18:05 +01:00
Simon Ser
feea39c898
carddav: fix server appearing as read-only in Evolution 2020-01-30 00:43:23 +01:00
Simon Ser
8937358ac1
Allow servers to return DAV capabilities in OPTIONS 2020-01-29 18:03:47 +01:00
Simon Ser
5f03e421d3
carddav: fix addressbook-home-set>href namespace 2020-01-29 17:41:28 +01:00
Simon Ser
1f509de404
carddav: honor address-data in addressbook-query 2020-01-27 10:30:19 +01:00
Simon Ser
29cccc7ef9
carddav: add query filter support in server
Closes: https://github.com/emersion/go-webdav/issues/18
2020-01-24 16:34:57 +01:00
Simon Ser
73b67b62b1
carddav: add client support for query filter
References: https://github.com/emersion/go-webdav/issues/18
2020-01-24 12:24:35 +01:00
Simon Ser
5ada08f6ab
carddav: add full query AST 2020-01-24 11:25:58 +01:00
Simon Ser
e56ab47c43
carddav: add negateCondition 2020-01-23 19:32:10 +01:00
Simon Ser
30977aac83
carddav: add matchType 2020-01-23 19:27:31 +01:00
Simon Ser
38b729ad9c
carddav: remove filter.MarshalText
This isn't necessary, we can just straight up let encoding/xml use the
string.
2020-01-23 19:21:00 +01:00
Simon Ser
94f47fa001
carddav: add limit support to addressbook-query
References: https://github.com/emersion/go-webdav/issues/18
2020-01-23 10:35:14 +01:00
Simon Ser
70c3bffdf3
carddav: add filter and limit XML definitions 2020-01-22 20:36:35 +01:00
Simon Ser
cd5945aace
carddav: add AddressBook{Query,MultiGet}.AllProp 2020-01-22 19:18:58 +01:00
Simon Ser
7e29f37bd8
carddav: add allprop and propname support to query and multiget in server 2020-01-22 18:59:01 +01:00
Simon Ser
0a251a8dfb
carddav: add AddressObject.{ModTime,ETag} 2020-01-22 15:35:36 +01:00
Simon Ser
2eb6e89979
carddav: add DELETE support to server 2020-01-22 15:16:41 +01:00
Simon Ser
aa750836d4
carddav: add PUT support to server 2020-01-22 15:14:49 +01:00
Simon Ser
bf97060e19
carddav: don't support PROPPATCH
PROPPATCH can't be used to change an address object's data. For now,
let's not support it.
2020-01-22 14:52:14 +01:00
Simon Ser
6d229f4e8a
webdav: add COPY support to server 2020-01-22 13:00:42 +01:00
Simon Ser
3268102d5a
webdav: add MOVE support to server 2020-01-22 11:43:36 +01:00
Simon Ser
6eeeccb96e
all: encode hrefs, replace hrefs with path in public API
Closes: https://github.com/emersion/go-webdav/issues/14
Closes: https://github.com/emersion/go-webdav/issues/16
2020-01-22 11:07:30 +01:00
Simon Ser
90fe8dedf7
internal: add PROPPATCH support to server 2020-01-21 23:18:27 +01:00
Simon Ser
e9e1f102de
webdav: add MKCOL support to server 2020-01-21 22:05:59 +01:00
Simon Ser
41b68829e8
webdav: add DELETE support to server 2020-01-21 21:46:01 +01:00
Simon Ser
7d6de88179
webdav: add support for PUT to server 2020-01-21 21:19:44 +01:00
Simon Ser
45774fe572
carddav: simplify variable names 2020-01-21 21:04:19 +01:00
Simon Ser
0469c3d389
all: add basic docs 2020-01-21 21:01:18 +01:00
Simon Ser
d21315e9fc
Fix host trailing dot in Discover 2020-01-20 13:17:19 +01:00
Simon Ser
19140af10d
carddav: add Discover 2020-01-20 11:15:22 +01:00
Simon Ser
3a61646ab4
carddav: add current-user-principal to server 2020-01-20 10:56:25 +01:00
Simon Ser
6e0ea58de1
carddav: populate AddressBook.{Name,MaxResourceSize} in client 2020-01-19 15:29:51 +01:00
Simon Ser
c4718a3a49
carddav: add addressbook-home-set to server 2020-01-19 15:10:54 +01:00
Simon Ser
6bac674701
carddav: add max-resource-size to serve 2020-01-19 15:06:09 +01:00
Simon Ser
238e72b73e
carddav: add addressbook-supprted-address-data to server 2020-01-19 15:00:40 +01:00
Simon Ser
edfc2804b5
carddav: add displayname and addressbook-description to server 2020-01-19 14:53:58 +01:00
Simon Ser
797b2f8fc5
carddav: add address-data to server responses 2020-01-19 12:08:53 +01:00
Simon Ser
4a2a520522
carddav: add server support for REPORT addressbook-query 2020-01-19 12:02:18 +01:00
Simon Ser
f3f1c8b58a
internal: introduce DecodeXMLRequest, ServeXML and ServeMultistatus 2020-01-19 11:12:45 +01:00
Simon Ser
60e5d57cda
carddav: implement REPORT addressbook-multiget 2020-01-19 11:05:56 +01:00
Simon Ser
402593c5c6
carddav: define XML names as globals 2020-01-18 12:58:53 +01:00
Simon Ser
34b2ebf940
all: use variables for xml.Name values 2020-01-17 17:09:23 +01:00
Simon Ser
557972089c
carddav: add very basic server implementation 2020-01-17 16:59:29 +01:00
Simon Ser
13d70be046
carddav: rename Address to AddressObject 2020-01-17 16:20:05 +01:00
Simon Ser
cabf33219e
Add Client.SetBasicAuth 2020-01-15 23:45:37 +01:00
Simon Ser
42765234a8
internal: add Depth, Client.Propfind 2020-01-15 12:30:42 +01:00
Simon Ser
2b841a9234
carddav: add support for <addressbook-multiget> 2020-01-15 12:09:42 +01:00
Simon Ser
5fe39bbc13
internal: remove xml.Name arg from Response.DecodeProp
The xml.Name is now retrieved from the interface{} argument via
reflection.
2020-01-15 11:44:27 +01:00
Simon Ser
25ab0b2076
internal: add EncodeProp
This allows to simplify carddav.QueryAddressBook's request marshaling.
2020-01-15 11:17:38 +01:00
Simon Ser
56c162197b
carddav: add Client.QueryAddressBook 2020-01-14 23:44:21 +01:00
Simon Ser
9dfabd89c8
carddav: add Client.FindAddressBooks 2020-01-14 23:13:23 +01:00
Simon Ser
3d05533a31
carddav: add very basic Client 2020-01-14 22:19:54 +01:00
Simon Ser
064cd80a24
Start from scratch 2020-01-14 17:51:33 +01:00
Simon Ser
1be15ec875
carddav: improve error handling 2020-01-08 18:54:29 +01:00
Konstantin Chukhlomin
6f8124dbbf Removed extra logging from carddav 2019-11-16 15:06:28 +01:00
Dmitri Shuralyov
0ad8fa5233
carddav: Remove duplicate package comment
The package comment is already present in carddav.go file.
Having it in both places makes godoc show the documentation text twice.
2018-05-09 14:39:53 -04:00
emersion
f8d9f83cbc
carddav: add AddressObject.Remove 2017-09-14 11:51:57 +02:00
emersion
579a25f989
carddav: cache file contents when opening it 2017-09-14 11:08:16 +02:00
emersion
d2d201e6ad
carddav: remove .vcf extension 2017-09-13 20:09:18 +02:00
emersion
2a7d999100
carddav: PUT support 2017-09-13 19:02:12 +02:00
emersion
fdd2e85cfe
carddav: go fmt 2017-09-11 19:10:53 +02:00
emersion
0581850864
carddav: add support for REPORT addressbook-multiget, fixes #2 2017-09-11 19:10:12 +02:00
emersion
fd5d1f32d2
Add ref to RFC in package doc 2017-09-10 10:39:55 +02:00
emersion
1152b72a07
carddav: add AddressBook.Info 2017-09-09 16:45:31 +02:00
emersion
8d4a1ede86
Use AddressObject.Stat if supported 2017-09-09 16:37:49 +02:00
emersion
7d69432517
carddav: add Stat to AddressObject interface 2017-09-04 12:06:06 +02:00
emersion
163fa1656d
carddav: first commit 2017-09-03 20:11:36 +02:00