Documentation ¶
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) Readdir(count int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteAt(p []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type FileInfo
- type FileSystemClient
- func (c *FileSystemClient) Chmod(name string, mode os.FileMode) error
- func (c *FileSystemClient) Chown(name string, uid, gid int) error
- func (c *FileSystemClient) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (c *FileSystemClient) Create(name string) (afero.File, error)
- func (c *FileSystemClient) Mkdir(name string, perm os.FileMode) error
- func (c *FileSystemClient) MkdirAll(path string, perm os.FileMode) error
- func (c *FileSystemClient) Name() string
- func (c *FileSystemClient) Open(name string) (afero.File, error)
- func (c *FileSystemClient) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (c *FileSystemClient) Remove(name string) error
- func (c *FileSystemClient) RemoveAll(path string) error
- func (c *FileSystemClient) Rename(oldname, newname string) error
- func (c *FileSystemClient) Stat(name string) (os.FileInfo, error)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Info *FileInfo `json:"info"` // contains filtered or unexported fields }
func NewFile ¶
func NewFile(fs *FileSystemClient, path string) *File
type FileInfo ¶
type FileSystemClient ¶
type FileSystemClient struct { Auth string // contains filtered or unexported fields }
func (*FileSystemClient) Chmod ¶
func (c *FileSystemClient) Chmod(name string, mode os.FileMode) error
func (*FileSystemClient) Create ¶
func (c *FileSystemClient) Create(name string) (afero.File, error)
func (*FileSystemClient) Mkdir ¶
func (c *FileSystemClient) Mkdir(name string, perm os.FileMode) error
func (*FileSystemClient) MkdirAll ¶
func (c *FileSystemClient) MkdirAll(path string, perm os.FileMode) error
func (*FileSystemClient) Name ¶
func (c *FileSystemClient) Name() string
func (*FileSystemClient) Remove ¶
func (c *FileSystemClient) Remove(name string) error
func (*FileSystemClient) RemoveAll ¶
func (c *FileSystemClient) RemoveAll(path string) error
func (*FileSystemClient) Rename ¶
func (c *FileSystemClient) Rename(oldname, newname string) error
type Plugin ¶
type Plugin struct { RPCClient *youplustoolkitrpc.YouPlusRPCClient Client *youplus.Client Entity *entry.EntityClient AuthUrl string AuthFromToken func(token string) (commons.AuthUser, error) }
func (*Plugin) GetAuthUserByToken ¶
func (*Plugin) TokenTypeName ¶
Click to show internal directories.
Click to hide internal directories.