sshwebdav

package
v0.0.0-...-2b0ba1f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrReadOnlyFS = errors.New("read-only file system")

Functions

func NewFileSystem

func NewFileSystem(sftpClient *sftp.Client, root string) (webdav.FileSystem, webdav.LockSystem, error)

Types

type Opt

type Opt func(*SSHWebDAV) error

func WithSSHConfig

func WithSSHConfig(sshConfig string) Opt

func WithSSHIdentity

func WithSSHIdentity(sshIdentity string) Opt

func WithSSHOptions

func WithSSHOptions(sshOptions []string) Opt

type SSHWebDAV

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

func New

func New(sshURL, webdavURL *url.URL, opts ...Opt) (*SSHWebDAV, error)

func (*SSHWebDAV) Serve

func (x *SSHWebDAV) Serve() error

Jump to

Keyboard shortcuts

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