webdav

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(mounter mounter.Mounter, volID string, configs map[string]string, mntOptions []string, targetPath string) error

func Unmount added in v0.9.2

func Unmount(mounter mounter.Mounter, volID string, configs map[string]string, targetPath string) error

Types

type DavFSConfig added in v0.9.10

type DavFSConfig struct {
	Params map[string]string
}

func NewDefaultDavFSConfig added in v0.9.10

func NewDefaultDavFSConfig() *DavFSConfig

NewDefaultDavFSConfig creates default DavFS config map

func (*DavFSConfig) AddParam added in v0.9.10

func (config *DavFSConfig) AddParam(key string, value string)

func (*DavFSConfig) AddParams added in v0.9.10

func (config *DavFSConfig) AddParams(params map[string]string)

func (*DavFSConfig) SaveToFile added in v0.9.10

func (config *DavFSConfig) SaveToFile(name string) error

type WebDAVConnectionInfo

type WebDAVConnectionInfo struct {
	URL      string
	User     string
	Password string
	Config   map[string]string
}

WebDAVConnectionInfo class

func GetConnectionInfo

func GetConnectionInfo(configs map[string]string) (*WebDAVConnectionInfo, error)

GetConnectionInfo extracts WebDAVConnectionInfo value from param map

func (*WebDAVConnectionInfo) IsAnonymousUser

func (connInfo *WebDAVConnectionInfo) IsAnonymousUser() bool

IsAnonymousUser checks if the user is anonymous

func (*WebDAVConnectionInfo) SetAnonymousUser

func (connInfo *WebDAVConnectionInfo) SetAnonymousUser()

SetAnonymousUser sets anonymous user

Jump to

Keyboard shortcuts

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