Documentation ¶
Index ¶
- type Client
- func (c *Client) Bind(path, segment, href string) error
- func (c *Client) CreateNewCalendar(path string, calendar *cent.MKCalendar) error
- func (c *Client) Delete(path string) error
- func (c *Client) DeleteEvent(path string) error
- func (c *Client) Do(req *Request) (*Response, error)
- func (c *Client) Exists(path string) (bool, error)
- func (c *Client) Features(path string) ([]string, error)
- func (c *Client) GetEvents(path string) ([]*components.Event, error)
- func (c *Client) GetGroupMembers(path string) ([]string, error)
- func (c *Client) GetPrincipalGroups(path string) ([]string, error)
- func (c *Client) GetResourceBindings(path string) ([]string, error)
- func (c *Client) GrantPrincipals(path, principal string, privileges []string) error
- func (c *Client) MakeCalendar(path string) error
- func (c *Client) PutCalendars(path string, calendars ...*components.Calendar) error
- func (c *Client) PutEvents(path string, events ...*components.Event) error
- func (c *Client) QueryEvents(path string, query *cent.CalendarQuery) (events []*components.Event, oerr error)
- func (c *Client) QueryFreeBusy(start time.Time, end time.Time, emails []string) (calendars []*components.Calendar, oerr error)
- func (c *Client) Server() *Server
- func (c *Client) SupportsFeature(name string, path string) (bool, error)
- func (c *Client) ValidateServer(path string) error
- func (c *Client) WebDAV() *webdav.Client
- type Request
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
a client for making WebDAV requests
func NewDefaultClient ¶
creates a new client for communicating with a WebDAV server uses the default HTTP client from net/http
func (*Client) CreateNewCalendar ¶
func (c *Client) CreateNewCalendar(path string, calendar *cent.MKCalendar) error
func (*Client) DeleteEvent ¶
func (*Client) Features ¶
fetches a list of CalDAV features supported by the server returns an error if the server does not support DAV
func (*Client) GetEvents ¶
func (c *Client) GetEvents(path string) ([]*components.Event, error)
attempts to fetch an event on the remote CalDAV server
func (*Client) GetPrincipalGroups ¶
func (*Client) GetResourceBindings ¶
func (*Client) GrantPrincipals ¶
func (*Client) MakeCalendar ¶
creates a new calendar collection on a given path
func (*Client) PutCalendars ¶
func (c *Client) PutCalendars(path string, calendars ...*components.Calendar) error
creates or updates one or more calendars on the remote CalDAV server
func (*Client) PutEvents ¶
func (c *Client) PutEvents(path string, events ...*components.Event) error
creates or updates one or more events on the remote CalDAV server
func (*Client) QueryEvents ¶
func (c *Client) QueryEvents(path string, query *cent.CalendarQuery) (events []*components.Event, oerr error)
attempts to fetch an event on the remote CalDAV server
func (*Client) QueryFreeBusy ¶
func (c *Client) QueryFreeBusy(start time.Time, end time.Time, emails []string) (calendars []*components.Calendar, oerr error)
attempts to fetch an event on the remote CalDAV server
func (*Client) SupportsFeature ¶
fetches a list of CalDAV features and checks if a certain one is supported by the server returns an error if the server does not support DAV
func (*Client) ValidateServer ¶
fetches a list of CalDAV features and checks if a certain one is supported by the server returns an error if the server does not support DAV
type Response ¶
a WebDAV response object
func NewResponse ¶
creates a new WebDAV response object