Documentation ¶
Index ¶
- Variables
- type WebDAVStorage
- func (backend *WebDAVStorage) AvailableSpace() (uint64, error)
- func (backend *WebDAVStorage) Close() error
- func (backend *WebDAVStorage) CreatePath(path string) error
- func (backend *WebDAVStorage) DeleteFile(path string) error
- func (backend *WebDAVStorage) DeletePath(path string) error
- func (backend *WebDAVStorage) Description() string
- func (backend *WebDAVStorage) Location() string
- func (*WebDAVStorage) NewBackend(u url.URL) (knoxite.Backend, error)
- func (backend *WebDAVStorage) Protocols() []string
- func (backend *WebDAVStorage) ReadFile(path string) ([]byte, error)
- func (backend *WebDAVStorage) Stat(path string) (uint64, error)
- func (backend *WebDAVStorage) WriteFile(path string, data []byte) (size uint64, err error)
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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.