webdav

package
v0.0.0-...-1d5d43e Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	http.Client
	Params
}

func Init

func Init(p Params) (*Client, error)

func (*Client) Copy

func (w *Client) Copy(src, dst string) error

func (*Client) Ls

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

func (*Client) Mkdir

func (w *Client) Mkdir(path string) error

func (*Client) Read

func (w *Client) Read(path string) (io.ReadCloser, error)

func (*Client) Rm

func (w *Client) Rm(path string) error

func (*Client) Upload

func (w *Client) Upload(path string, file io.Reader) error

type Params

type Params struct {
	URL               string
	Username          string
	Password          string
	OAuthToken        string
	ConnectionTimeout time.Duration
}

Jump to

Keyboard shortcuts

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