plg_backend_dav

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

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

Go to latest
Published: Aug 26, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

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 (d Dav) Cat(path string) (io.ReadCloser, error)

func (Dav) Init

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

func (Dav) LoginForm

func (d Dav) LoginForm() Form

func (Dav) Ls

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

func (Dav) Meta

func (d Dav) Meta(path string) Metadata

func (Dav) Mkdir

func (d Dav) Mkdir(path string) error

func (Dav) Mv

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

func (Dav) Rm

func (d Dav) Rm(path string) error

func (Dav) Save

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

func (Dav) Touch

func (d 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