Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalendarData ¶
type CalendarData struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav calendar-data"` Component *Component `xml:",omitempty"` RecurrenceSetLimit *RecurrenceSetLimit `xml:",omitempty"` ExpandRecurrenceSet *ExpandRecurrenceSet `xml:",omitempty"` Content string `xml:",chardata"` }
CalendarData is a CalDAV calendar data object
func (*CalendarData) CalendarComponent ¶
func (c *CalendarData) CalendarComponent() (*components.Calendar, error)
type CalendarQuery ¶
type CalendarQuery struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav calendar-query"` Prop *Prop `xml:",omitempty"` AllProp *entities.AllProp `xml:",omitempty"` Filter *Filter `xml:",omitempty"` }
CalendarQuery is a CalDAV calendar query object
func NewEventRangeQuery ¶
func NewEventRangeQuery(start, end time.Time) (*CalendarQuery, error)
NewEventRangeQuery creates a new CalDAV query for iCalendar events from a particular time range
type Component ¶
type Component struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav comp"` Properties []*PropertyName `xml:",omitempty"` Components []*Component `xml:",omitempty"` }
Component is an iCalendar specifier for returned calendar data
type ComponentFilter ¶
type ComponentFilter struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav comp-filter"` Name values.ComponentName `xml:"name,attr"` ComponentFilter *ComponentFilter `xml:",omitempty"` TimeRange *TimeRange `xml:",omitempty"` PropertyFilter *PropertyFilter `xml:",omitempty"` ParameterFilter *ParameterFilter `xml:",omitempty"` }
ComponentFilter used to filter down calendar components, such as VCALENDAR > VEVENT
type ExpandRecurrenceSet ¶
type ExpandRecurrenceSet struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav expand"` StartTime *values.DateTime `xml:"start,attr"` EndTime *values.DateTime `xml:"end,attr"` }
ExpandRecurrenceSet used to expand recurring events into individual calendar event data
type Filter ¶
type Filter struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav filter"` ComponentFilter *ComponentFilter `xml:",omitempty"` }
Filter is a CalDAV query filter entity
type Multistatus ¶
type Multistatus struct { XMLName xml.Name `xml:"DAV: multistatus"` Responses []*Response `xml:"response,omitempty"` }
Multistatus is a request to find properties on an an entity or collection
type ParameterFilter ¶
type ParameterFilter struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav param-filter"` Name properties.ParameterName `xml:"name,attr"` TextMatch *TextMatch `xml:",omitempty"` }
ParameterFilter used to restrict component filters to a parameter value
type Prop ¶
type Prop struct { XMLName xml.Name `xml:"DAV: prop"` GetContentType string `xml:"getcontenttype,omitempty"` DisplayName string `xml:"displayname,omitempty"` CalendarData *CalendarData `xml:",omitempty"` ResourceType *entities.ResourceType `xml:",omitempty"` CTag string `xml:"http://calendarserver.org/ns/ getctag,omitempty"` ETag string `xml:"http://calendarserver.org/ns/ getetag,omitempty"` }
Prop is a CalDAV Property resource
type PropStat ¶
type PropStat struct { XMLName xml.Name `xml:"propstat"` Status string `xml:"status"` Prop *Prop `xml:",omitempty"` }
PropStat is metadata about a property
type PropertyFilter ¶
type PropertyFilter struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav prop-filter"` Name properties.PropertyName `xml:"name,attr"` TextMatch *TextMatch `xml:",omitempty"` ParameterFilter *ParameterFilter `xml:",omitempty"` }
PropertyFilter used to restrict component filters to a property value
func NewPropertyMatcher ¶
func NewPropertyMatcher(name properties.PropertyName, content string) *PropertyFilter
NewPropertyMatcher creates a new CalDAV property value matcher
type PropertyName ¶
type PropertyName struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav prop"` Name string `xml:"name,attr"` }
PropertyName used to restrict properties returned in calendar data
type RecurrenceSetLimit ¶
type RecurrenceSetLimit struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav limit-recurrence-set"` StartTime *values.DateTime `xml:"start,attr"` EndTime *values.DateTime `xml:"end,attr"` }
RecurrenceSetLimit used to restrict recurring event data to a particular time range
type Response ¶
type Response struct { XMLName xml.Name `xml:"response"` Href string `xml:"href"` PropStats []*PropStat `xml:"propstat,omitempty"` }
Response is a multistatus response entity
type TextMatch ¶
type TextMatch struct { XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav text-match"` Collation values.TextCollation `xml:"collation,attr,omitempty"` NegateCondition values.HumanBoolean `xml:"attr,negate-condition,omitempty"` Content string `xml:",innerxml"` }
TextMatch used to match properties by text value