Documentation
¶
Index ¶
- func Serve(addr string, client pkg.Drive)
- type CloudFileSystem
- func (f *CloudFileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (f *CloudFileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (f *CloudFileSystem) RemoveAll(ctx context.Context, name string) error
- func (f *CloudFileSystem) Rename(ctx context.Context, oldName, newName string) error
- func (h *CloudFileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (f *CloudFileSystem) Stat(ctx context.Context, name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudFileSystem ¶
type CloudFileSystem struct { Prefix string // contains filtered or unexported fields }
func (*CloudFileSystem) RemoveAll ¶
func (f *CloudFileSystem) RemoveAll(ctx context.Context, name string) error
func (*CloudFileSystem) Rename ¶
func (f *CloudFileSystem) Rename(ctx context.Context, oldName, newName string) error
func (*CloudFileSystem) ServeHTTP ¶ added in v0.6.0
func (h *CloudFileSystem) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.