drive

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.6.0

func New(api pkg.DriveApi) pkg.Drive

Types

type DirFile added in v0.6.0

type DirFile struct {
	// contains filtered or unexported fields
}

func (*DirFile) Close added in v0.6.0

func (a *DirFile) Close() error

func (*DirFile) Read added in v0.6.0

func (a *DirFile) Read([]byte) (int, error)

func (*DirFile) ReadDir added in v0.6.0

func (a *DirFile) ReadDir(n int) ([]fs.DirEntry, error)

func (*DirFile) Stat added in v0.6.0

func (a *DirFile) Stat() (fs.FileInfo, error)

type FS added in v0.6.0

type FS struct {
	// contains filtered or unexported fields
}

func (*FS) Copy added in v0.6.0

func (f *FS) Copy(target string, source ...string) error

func (*FS) Delete added in v0.6.0

func (f *FS) Delete(name ...string) error

func (*FS) Download added in v0.6.0

func (f *FS) Download(local string, cloud ...string) error

func (*FS) Login added in v0.6.0

func (f *FS) Login(username, password string) error

func (*FS) Mkdir added in v0.6.0

func (f *FS) Mkdir(name string) error

func (*FS) Move added in v0.6.0

func (f *FS) Move(target string, source ...string) error

func (*FS) NewFile added in v0.6.0

func (f *FS) NewFile(info pkg.File) fs.File

func (*FS) Open added in v0.6.0

func (f *FS) Open(name string) (fs.File, error)

func (*FS) ReadDir added in v0.6.0

func (f *FS) ReadDir(name string) ([]fs.DirEntry, error)

func (*FS) Share added in v0.6.0

func (f *FS) Share(prifix, cloud string) (func(http.ResponseWriter, *http.Request), error)

func (*FS) Space added in v0.6.0

func (f *FS) Space() (pkg.Space, error)

func (*FS) Stat added in v0.6.0

func (f *FS) Stat(name string) (fs.FileInfo, error)

func (*FS) Upload added in v0.6.0

func (client *FS) Upload(cloud string, locals ...string) error

func (*FS) UploadFrom added in v0.6.0

func (client *FS) UploadFrom(file pkg.Upload) error

type File added in v0.6.0

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close added in v0.6.0

func (a *File) Close() error

func (*File) Read added in v0.6.0

func (a *File) Read([]byte) (int, error)

func (*File) Stat added in v0.6.0

func (a *File) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL