webdav

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package webdav implements the WebDAV filesystem plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Copy

func (c *Client) Copy(_ context.Context, src, dst string) error

func (*Client) Home

func (c *Client) Home(context.Context) (string, error)

func (*Client) MapError

func (c *Client) MapError(err error) error

func (*Client) Mkdir

func (c *Client) Mkdir(_ context.Context, p string) error

func (*Client) Move

func (c *Client) Move(_ context.Context, src, dst string) error

func (*Client) Open

func (c *Client) Open(_ context.Context, p string) (io.ReadCloser, error)

func (*Client) OpenRange

func (c *Client) OpenRange(_ context.Context, p string, offset, length int64) (io.ReadCloser, error)

func (*Client) ReadDir

func (c *Client) ReadDir(_ context.Context, p string) ([]os.FileInfo, error)

func (*Client) Remove

func (c *Client) Remove(_ context.Context, p string, _ bool) error

func (*Client) Rename

func (c *Client) Rename(_ context.Context, from, to string) error

func (*Client) Stat

func (c *Client) Stat(_ context.Context, p string) (os.FileInfo, error)

func (*Client) Write

func (c *Client) Write(_ context.Context, p string, r io.Reader) error

type Plugin

type Plugin struct{}

func New

func New() *Plugin

func (*Plugin) Connect

func (p *Plugin) Connect(_ context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

func (*Plugin) Manifest

func (p *Plugin) Manifest() plugin.Manifest

func (*Plugin) Routes

func (p *Plugin) Routes() []plugin.Route

type Session

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

func (*Session) Close

func (s *Session) Close() error

func (*Session) Filesystem

func (s *Session) Filesystem() (filesystem.Client, error)

func (*Session) HealthCheck

func (s *Session) HealthCheck(context.Context) error

func (*Session) OpenChannel

Jump to

Keyboard shortcuts

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