Versions in this module Expand all Collapse all v0 v0.0.1 Oct 2, 2022 Changes in this version + func FixSlash(s string) string + func FixSlashes(s string) string + func Join(path0 string, path1 string) string + func PathEscape(path string) string + func ReadConfig(uri, netrc string) (string, string) + func String(r io.Reader) string + type Authenticator interface + Authorize func(*Client, string, string) + Pass func() string + Type func() string + User func() string + type BasicAuth struct + func (b *BasicAuth) Authorize(c *Client, method string, path string) + func (b *BasicAuth) Pass() string + func (b *BasicAuth) Type() string + func (b *BasicAuth) User() string + type Client struct + func NewClient(uri, user, pw string) *Client + func (c *Client) Connect() error + func (c *Client) Copy(oldpath, newpath string, overwrite bool) error + func (c *Client) Mkdir(path string, _ os.FileMode) error + func (c *Client) MkdirAll(path string, _ os.FileMode) error + func (c *Client) Read(path string) ([]byte, error) + func (c *Client) ReadDir(path string) ([]os.FileInfo, error) + func (c *Client) ReadStream(path string) (io.ReadCloser, error) + func (c *Client) Remove(path string) error + func (c *Client) RemoveAll(path string) error + func (c *Client) Rename(oldpath, newpath string, overwrite bool) error + func (c *Client) SetHeader(key, value string) + func (c *Client) SetTimeout(timeout time.Duration) + func (c *Client) SetTransport(transport http.RoundTripper) + func (c *Client) Stat(path string) (os.FileInfo, error) + func (c *Client) Write(path string, data []byte, _ os.FileMode) error + func (c *Client) WriteStream(path string, stream io.Reader, _ os.FileMode) error + type DigestAuth struct + func (d *DigestAuth) Authorize(c *Client, method string, path string) + func (d *DigestAuth) Pass() string + func (d *DigestAuth) Type() string + func (d *DigestAuth) User() string + type File struct + func (f File) ContentType() string + func (f File) ETag() string + func (f File) IsDir() bool + func (f File) ModTime() time.Time + func (f File) Mode() os.FileMode + func (f File) Name() string + func (f File) Size() int64 + func (f File) String() string + func (f File) Sys() interface{} + type NoAuth struct + func (n *NoAuth) Authorize(c *Client, method string, path string) + func (n *NoAuth) Pass() string + func (n *NoAuth) Type() string + func (n *NoAuth) User() string