Documentation
¶
Index ¶
- Constants
- Variables
- type AlipanConfig
- type Config
- type FileInfo
- type FileSystem
- func (fs *FileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) (err error)
- func (fs *FileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (result webdav.File, err error)
- func (fs *FileSystem) RemoveAll(ctx context.Context, name string) (err error)
- func (fs *FileSystem) Rename(ctx context.Context, oldName, newName string) (err error)
- func (fs *FileSystem) Stat(ctx context.Context, name string) (fi os.FileInfo, err error)
- type ReadableFile
- func (readableFile *ReadableFile) Close() error
- func (readableFile *ReadableFile) Read(p []byte) (n int, err error)
- func (readableFile *ReadableFile) Readdir(count int) (result []fs.FileInfo, err error)
- func (readableFile *ReadableFile) Seek(offset int64, whence int) (int64, error)
- func (readableFile *ReadableFile) Stat() (fi fs.FileInfo, err error)
- func (readableFile *ReadableFile) Write(p []byte) (n int, err error)
- type Uploader
- type WritableFile
- func (writableFile *WritableFile) Close() (err error)
- func (writableFile *WritableFile) Read(p []byte) (n int, err error)
- func (writableFile *WritableFile) Readdir(count int) ([]fs.FileInfo, error)
- func (writableFile *WritableFile) Seek(offset int64, whence int) (int64, error)
- func (writableFile *WritableFile) Stat() (fs.FileInfo, error)
- func (writableFile *WritableFile) Write(p []byte) (n int, err error)
Constants ¶
View Source
const ALIYUNDRIVE_HOST = "https://www.aliyundrive.com"
Variables ¶
View Source
var ErrMaxWriteByteExceed = fmt.Errorf("exceed max write byte")
Functions ¶
This section is empty.
Types ¶
type AlipanConfig ¶ added in v0.2.0
type Config ¶ added in v0.2.0
type Config struct {
AlipanConfig AlipanConfig `json:"alipan" yaml:"alipan"`
}
type FileInfo ¶ added in v0.2.0
type FileInfo struct { *alipanopen.File // contains filtered or unexported fields }
func NewFileInfo ¶ added in v0.2.0
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFileSystem ¶
func NewFileSystem(config AlipanConfig) (*FileSystem, error)
func (*FileSystem) RemoveAll ¶
func (fs *FileSystem) RemoveAll(ctx context.Context, name string) (err error)
type ReadableFile ¶ added in v0.2.0
type ReadableFile struct {
// contains filtered or unexported fields
}
func NewReadableFile ¶ added in v0.2.0
func NewReadableFile(fi *FileInfo, fs *FileSystem) *ReadableFile
func (*ReadableFile) Close ¶ added in v0.2.0
func (readableFile *ReadableFile) Close() error
func (*ReadableFile) Read ¶ added in v0.2.0
func (readableFile *ReadableFile) Read(p []byte) (n int, err error)
func (*ReadableFile) Readdir ¶ added in v0.2.0
func (readableFile *ReadableFile) Readdir(count int) (result []fs.FileInfo, err error)
func (*ReadableFile) Seek ¶ added in v0.2.0
func (readableFile *ReadableFile) Seek(offset int64, whence int) (int64, error)
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
func (*Uploader) CloseAndWait ¶
type WritableFile ¶ added in v0.2.0
type WritableFile struct {
// contains filtered or unexported fields
}
func NewWritableFile ¶ added in v0.2.0
func NewWritableFile(fi *FileInfo, fs *FileSystem) (*WritableFile, error)
func (*WritableFile) Close ¶ added in v0.2.0
func (writableFile *WritableFile) Close() (err error)
func (*WritableFile) Read ¶ added in v0.2.0
func (writableFile *WritableFile) Read(p []byte) (n int, err error)
func (*WritableFile) Readdir ¶ added in v0.2.0
func (writableFile *WritableFile) Readdir(count int) ([]fs.FileInfo, error)
func (*WritableFile) Seek ¶ added in v0.2.0
func (writableFile *WritableFile) Seek(offset int64, whence int) (int64, error)
Click to show internal directories.
Click to hide internal directories.