entities

package
v0.2.2-0...-9678459 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllProp

type AllProp struct {
	XMLName xml.Name `xml:"allprop"`
}

a propfind property representing all properties

type Error

type Error struct {
	XMLName     xml.Name `xml:"DAV: error"`
	Description string   `xml:"error-description,omitempty"`
	Message     string   `xml:"message,omitempty"`
}

a WebDAV error

func (*Error) Error

func (e *Error) Error() string

type Multistatus

type Multistatus struct {
	XMLName   xml.Name    `xml:"DAV: multistatus"`
	Responses []*Response `xml:"response,omitempty"`
}

a request to find properties on an an entity or collection

type Prop

type Prop struct {
	XMLName        xml.Name      `xml:"DAV: prop"`
	GetContentType string        `xml:"getcontenttype,omitempty"`
	DisplayName    string        `xml:"displayname,omitempty"`
	ResourceType   *ResourceType `xml:",omitempty"`
	CTag           string        `xml:"http://calendarserver.org/ns/ getctag,omitempty"`
	ETag           string        `xml:"http://calendarserver.org/ns/ getetag,omitempty"`
}

a property of a resource

type PropStat

type PropStat struct {
	XMLName xml.Name `xml:"propstat"`
	Status  string   `xml:"status"`
	Prop    *Prop    `xml:",omitempty"`
}

metadata about a property

type Propfind

type Propfind struct {
	XMLName xml.Name `xml:"DAV: propfind"`
	AllProp *AllProp `xml:",omitempty"`
	Props   []*Prop  `xml:"prop,omitempty"`
}

a request to find properties on an an entity or collection

func NewAllPropsFind

func NewAllPropsFind() *Propfind

a convenience method for searching all properties

type ResourceType

type ResourceType struct {
	XMLName    xml.Name                `xml:"resourcetype"`
	Collection *ResourceTypeCollection `xml:",omitempty"`
	Calendar   *ResourceTypeCalendar   `xml:",omitempty"`
}

the type of a resource

type ResourceTypeCalendar

type ResourceTypeCalendar struct {
	XMLName xml.Name `xml:"urn:ietf:params:xml:ns:caldav calendar"`
}

A calendar resource type

type ResourceTypeCollection

type ResourceTypeCollection struct {
	XMLName xml.Name `xml:"collection"`
}

A collection resource type

type Response

type Response struct {
	XMLName   xml.Name    `xml:"response"`
	Href      string      `xml:"href"`
	PropStats []*PropStat `xml:"propstat,omitempty"`
}

a multistatus response entity

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL