plg_backend_dav

package
v0.2.2-0...-091e9c0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CARDDAV string = "carddav"
	CALDAV  string = "caldav"
)

Variables

View Source
var DavCache AppCache

Functions

This section is empty.

Types

type Dav

type Dav struct {
	// contains filtered or unexported fields
}

func (Dav) Cat

func (this Dav) Cat(path string) (io.ReadCloser, error)

func (Dav) Init

func (this Dav) Init(params map[string]string, app *App) (IBackend, error)

func (Dav) LoginForm

func (this Dav) LoginForm() Form

func (Dav) Ls

func (this Dav) Ls(path string) ([]os.FileInfo, error)

func (Dav) Meta

func (this Dav) Meta(path string) Metadata

func (Dav) Mkdir

func (this Dav) Mkdir(path string) error

func (Dav) Mv

func (this Dav) Mv(from string, to string) error

func (Dav) Rm

func (this Dav) Rm(path string) error

func (Dav) Save

func (this Dav) Save(path string, file io.Reader) error

func (Dav) Touch

func (this Dav) Touch(path string) error

type DavCollection

type DavCollection struct {
	Url  string `xml:"href"`
	Name string `xml:"propstat>prop>displayname,omitempty"`
	User string `xml:"propstat>prop>current-user-principal>href,omitempty"`
	Type struct {
		Inner string `xml:",innerxml"`
	} `xml:"propstat>prop>resourcetype,omitempty"`
}

type DavResource

type DavResource struct {
	Url   string `xml:"href"`
	Name  string `xml:"-"`
	Time  int64  `xml:"-"`
	Vcard string `xml:"propstat>prop>address-data,omitempty"`
	Ical  string `xml:"propstat>prop>calendar-data,omitempty"`
}

Jump to

Keyboard shortcuts

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