Documentation
¶
Overview ¶
Package webdav is a webdav client library.
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Copy(oldPath, newPath string) error
- func (c *Client) Delete(path string) error
- func (c *Client) Get(path string) (*Download, error)
- func (c *Client) List(path string) ([]Item, error)
- func (c *Client) Mkcol(path string) error
- func (c *Client) Move(oldPath, newPath string) error
- func (c *Client) Put(path string, contentLength int64, headers map[string]string, body io.Reader) error
- type Download
- type Item
Constants ¶
View Source
const ListFilesPayload = `` /* 419-byte string literal not displayed */
Variables ¶
View Source
var ( // ErrInvalidAuth is used when an authentication error occurs (invalid // credentials). ErrInvalidAuth = errors.New("invalid authentication") // ErrAlreadyExist is used when trying to create a directory that already // exists. ErrAlreadyExist = errors.New("it already exists") // ErrParentNotFound is used when trying to create a directory and the // parent directory does not exist. ErrParentNotFound = errors.New("parent directory does not exist") // ErrNotFound is used when the given file/directory has not been found. ErrNotFound = errors.New("file/directory not found") // ErrInternalServerError is used when something unexpected happens. ErrInternalServerError = errors.New("internal server error") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Click to show internal directories.
Click to hide internal directories.