Documentation
¶
Index ¶
- Variables
- func EmptyFS() hackpadfs.FS
- func IsWriteMode(mode int) bool
- func Parse(v string) (_ hackpadfs.FS, err error)
- type ROfs
- func (fs *ROfs) Chmod(name string, mode hackpadfs.FileMode) error
- func (fs *ROfs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *ROfs) Mkdir(name string, perm hackpadfs.FileMode) error
- func (fs *ROfs) MkdirAll(path string, perm hackpadfs.FileMode) error
- func (fs *ROfs) Open(name string) (hackpadfs.File, error)
- func (fs *ROfs) OpenFile(name string, flag int, perm hackpadfs.FileMode) (hackpadfs.File, error)
- func (fs *ROfs) Remove(name string) error
- func (fs *ROfs) Rename(oldname, newname string) error
- func (fs *ROfs) Stat(name string) (hackpadfs.FileInfo, error)
- type WebDavFS
- func (w *WebDavFS) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (w *WebDavFS) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (_ webdav.File, err error)
- func (w *WebDavFS) RemoveAll(ctx context.Context, name string) error
- func (w *WebDavFS) Rename(ctx context.Context, oldName, newName string) error
- func (w *WebDavFS) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type WebDavFile
- func (w *WebDavFile) Close() error
- func (w *WebDavFile) Read(p []byte) (n int, err error)
- func (w *WebDavFile) Readdir(count int) (fi []fs.FileInfo, err error)
- func (w *WebDavFile) Seek(offset int64, whence int) (int64, error)
- func (w *WebDavFile) Stat() (fs.FileInfo, error)
- func (w *WebDavFile) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyFS = errors.New("Empty FS")
View Source
var ErrReadOnlyFS = errors.New("Read-only filesystem")
Functions ¶
func IsWriteMode ¶
Types ¶
type ROfs ¶
type ROfs struct {
// contains filtered or unexported fields
}
type WebDavFS ¶
type WebDavFS struct {
// contains filtered or unexported fields
}
func NewWebDavFS ¶
type WebDavFile ¶
type WebDavFile struct {
// contains filtered or unexported fields
}
func (*WebDavFile) Close ¶
func (w *WebDavFile) Close() error
Click to show internal directories.
Click to hide internal directories.