webdav

package
v0.0.0-...-f81bbf2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAuthentication = errors.New("wrong Username or Password")
)

Error declarations.

Functions

This section is empty.

Types

type WebDAVStorage

type WebDAVStorage struct {
	URL    url.URL
	Client *gowebdav.Client
	knoxite.StorageFilesystem
}

WebDAVStorage stores data on a WebDav Server.

func (*WebDAVStorage) AvailableSpace

func (backend *WebDAVStorage) AvailableSpace() (uint64, error)

AvailableSpace is not available (yet?)

func (*WebDAVStorage) Close

func (backend *WebDAVStorage) Close() error

Close - We do not need to Close this backend.

func (*WebDAVStorage) CreatePath

func (backend *WebDAVStorage) CreatePath(path string) error

CreatePath creates a path on the remote.

func (*WebDAVStorage) DeleteFile

func (backend *WebDAVStorage) DeleteFile(path string) error

DeleteFile deletes a remote file.

func (*WebDAVStorage) DeletePath

func (backend *WebDAVStorage) DeletePath(path string) error

DeletePath deletes a directory and its contents.

func (*WebDAVStorage) Description

func (backend *WebDAVStorage) Description() string

Description returns a user-friendly description for this backend.

func (*WebDAVStorage) Location

func (backend *WebDAVStorage) Location() string

Location returns the type and location of the repository.

func (*WebDAVStorage) NewBackend

func (*WebDAVStorage) NewBackend(u url.URL) (knoxite.Backend, error)

NewBackend returns a WebDAVStorage backend.

func (*WebDAVStorage) Protocols

func (backend *WebDAVStorage) Protocols() []string

Protocols returns the Protocol Schemes supported by this backend.

func (*WebDAVStorage) ReadFile

func (backend *WebDAVStorage) ReadFile(path string) ([]byte, error)

ReadFile reads the file.

func (*WebDAVStorage) Stat

func (backend *WebDAVStorage) Stat(path string) (uint64, error)

Stat returns the file size by using the backends Stat function.

func (*WebDAVStorage) WriteFile

func (backend *WebDAVStorage) WriteFile(path string, data []byte) (size uint64, err error)

WriteFile writes a file.

Jump to

Keyboard shortcuts

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