Documentation
¶
Index ¶
- func New(api pkg.DriveApi) pkg.Drive
- type DirFile
- type FS
- func (f *FS) Copy(target string, source ...string) error
- func (f *FS) Delete(name ...string) error
- func (f *FS) Download(local string, cloud ...string) error
- func (f *FS) GetDownloadUrl(cloud string) (string, error)
- func (f *FS) Login(username, password string) error
- func (f *FS) Mkdir(name string) error
- func (f *FS) Move(target string, source ...string) error
- func (f *FS) NewFile(info pkg.File) fs.File
- func (f *FS) Open(name string) (fs.File, error)
- func (f *FS) ReadDir(name string) ([]fs.DirEntry, error)
- func (f *FS) Share(prifix, cloud string) (func(http.ResponseWriter, *http.Request), error)
- func (f *FS) Space() (pkg.Space, error)
- func (f *FS) Stat(name string) (fs.FileInfo, error)
- func (client *FS) Upload(cfg pkg.UploadConfig, cloud string, locals ...string) error
- func (client *FS) UploadFrom(file pkg.Upload) error
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FS ¶ added in v0.6.0
type FS struct {
// contains filtered or unexported fields
}
func (*FS) GetDownloadUrl ¶ added in v0.6.2
Click to show internal directories.
Click to hide internal directories.