plg_backend_webdav

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebDav

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

func (WebDav) Cat

func (w WebDav) Cat(path string) (io.ReadCloser, error)

func (WebDav) Init

func (w WebDav) Init(params map[string]string, app *App) (IBackend, error)

func (WebDav) LoginForm

func (w WebDav) LoginForm() Form

func (WebDav) Ls

func (w WebDav) Ls(path string) ([]os.FileInfo, error)

func (WebDav) Mkdir

func (w WebDav) Mkdir(path string) error

func (WebDav) Mv

func (w WebDav) Mv(from string, to string) error

func (WebDav) Rm

func (w WebDav) Rm(path string) error

func (WebDav) Save

func (w WebDav) Save(path string, file io.Reader) error

func (WebDav) Touch

func (w WebDav) Touch(path string) error

type WebDavParams

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

type WebDavResp

type WebDavResp struct {
	Responses []struct {
		Href  string `xml:"href"`
		Props []struct {
			Name     string   `xml:"prop>displayname,omitempty"`
			Type     xml.Name `xml:"prop>resourcetype>collection,omitempty"`
			Size     int64    `xml:"prop>getcontentlength,omitempty"`
			Modified string   `xml:"prop>getlastmodified,omitempty"`
		} `xml:"propstat"`
	} `xml:"response"`
}

Jump to

Keyboard shortcuts

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