entities

package
v0.0.0-...-21b7097 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ace

type Ace struct {
	XMLName    xml.Name   `xml:"DAV: ace"`
	Principals *Principal `xml:"principal,omitempty"`
	Grant      *Grant     `xml:"grant,omitempty"`
}

func NewGrantPrincipalsAce

func NewGrantPrincipalsAce(principal string, privileges []string) *Ace

type Acl

type Acl struct {
	XMLName xml.Name `xml:"DAV: acl"`
	Ace     *Ace     `xml:"ace,omitempty"`
}

func NewGrantPrincipalsAcl

func NewGrantPrincipalsAcl(principal string, privileges []string) *Acl

type AllProp

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

a propfind property representing all properties

type Bind

type Bind struct {
	XMLName xml.Name `xml:"DAV: bind"`
	Segment string   `xml:"segment"`
	Href    string   `xml:"href"`
}

func NewBind

func NewBind(segment, href string) *Bind

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 Grant

type Grant struct {
	XMLName    xml.Name     `xml:"DAV: grant"`
	Privileges []*Privilege `xml:"privilege,omitempty"`
}

func NewGrantPrivileges

func NewGrantPrivileges(privileges []string) *Grant

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 Principal

type Principal struct {
	Href string `xml:"href,omitempty"`
}

type Privilege

type Privilege struct {
	Write *Write `xml:"write,omitempty"`
	Read  *Read  `xml:"read,omitempty"`
}

func NewPrivilege

func NewPrivilege(privilege string) *Privilege

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"`
	GroupMemberSet       []string      `xml:"group-member-set>href"`
	PrincipalGroups      []string      `xml:"group-membership>href"`
	ParentSet            []string      `xml:"parent-set>parent>segment"`
	CurrentUserPrincipal *Principal    `xml:"current-user-principal,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

func NewCurrentUserPrincipalPropFind

func NewCurrentUserPrincipalPropFind() *Propfind

method for current user principal search

func NewDisplayNamePropFind

func NewDisplayNamePropFind() *Propfind

func NewGroupMemberSetPropFind

func NewGroupMemberSetPropFind() *Propfind

func NewParentSetPropFind

func NewParentSetPropFind() *Propfind

func NewPrincipalGroupsPropFind

func NewPrincipalGroupsPropFind() *Propfind

type Read

type Read struct {
	xml.Name
}

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

type Write

type Write struct {
	xml.Name
}

Jump to

Keyboard shortcuts

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