Documentation
¶
Index ¶
- type Client
- func (c *Client) ComplateMultiPartUpload(path string, size types.SizeB, uploadId string, blockMd5List []string) (*file.CreateRes, error)
- func (c *Client) CopyObject(srcFilePath string, destDir string, newName ...string) (*file.FilemanagerItem, error)
- func (c *Client) DeleteObject(srcFilePath string) (*file.FilemanagerItem, error)
- func (c *Client) GetAuthCodeURL(req ...*auth.AuthCodeReq) string
- func (c *Client) GetObject(path string) (io.ReadCloser, error)
- func (c *Client) GetObjectRange(path string, start, end types.SizeB) (io.ReadCloser, error)
- func (c *Client) GetPathFsid(path string) (uint64, error)
- func (c *Client) GetToken(code string, redirectUrl ...string) (*auth.GetTokenRes, error)
- func (c *Client) GetUploadHost(path string, uploadId ...string) (*file.LocateUploadRes, error)
- func (c *Client) InitMultiPartUpload(path string, size types.SizeB, blockList ...string) (*file.PreCreateRes, error)
- func (c *Client) ListObjects(dir string, opt ...*file.ListAllReq) (*file.ListRes, error)
- func (c *Client) ListObjectsStream(dir string, opt ...*file.ListAllReq) <-chan *file.ListItem
- func (c *Client) Mkdir(path string) (*file.CreateRes, error)
- func (c *Client) MoveObject(srcFilePath string, destDir string, newName ...string) (*file.FilemanagerItem, error)
- func (c *Client) PutObject(path string, data io.Reader, ondup ...types.OndupMode) (*file.UploadRes, error)
- func (c *Client) Quota(req ...*user.QuotaReq) (*user.QuotaRes, error)
- func (c *Client) RefreshToken() (*auth.GetTokenRes, error)
- func (c *Client) RenameObject(srcFilePath string, newName string) (*file.FilemanagerItem, error)
- func (c *Client) SetAuth(req *auth.AuthEnv)
- func (c *Client) StatObject(path string) (*file.FilemetasItem, error)
- func (c *Client) StatObjectUseFsId(fsId uint64) (*file.FilemetasItem, error)
- func (c *Client) StatObjects(fsIds ...uint64) (*file.FilemetasRes, error)
- func (c *Client) StatObjectsPro(req *file.FilemetasReq) (*file.FilemetasRes, error)
- func (c *Client) UploadPart(path string, uploadId string, partSeq int, data io.Reader) (*file.UploadChunkRes, error)
- func (c *Client) UserInfo(v2 ...bool) (*user.UserInfoRes, error)
- type FileReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
}
func (*Client) ComplateMultiPartUpload ¶
func (*Client) CopyObject ¶
func (*Client) DeleteObject ¶ added in v0.0.3
func (c *Client) DeleteObject(srcFilePath string) (*file.FilemanagerItem, error)
func (*Client) GetAuthCodeURL ¶
func (c *Client) GetAuthCodeURL(req ...*auth.AuthCodeReq) string
func (*Client) GetObjectRange ¶ added in v0.0.2
func (*Client) GetUploadHost ¶
func (*Client) InitMultiPartUpload ¶
func (*Client) ListObjects ¶
func (*Client) ListObjectsStream ¶
func (*Client) MoveObject ¶
func (*Client) RefreshToken ¶
func (c *Client) RefreshToken() (*auth.GetTokenRes, error)
func (*Client) RenameObject ¶
func (*Client) StatObject ¶
func (c *Client) StatObject(path string) (*file.FilemetasItem, error)
func (*Client) StatObjectUseFsId ¶
func (c *Client) StatObjectUseFsId(fsId uint64) (*file.FilemetasItem, error)
func (*Client) StatObjects ¶
func (c *Client) StatObjects(fsIds ...uint64) (*file.FilemetasRes, error)
func (*Client) StatObjectsPro ¶
func (c *Client) StatObjectsPro(req *file.FilemetasReq) (*file.FilemetasRes, error)
func (*Client) UploadPart ¶
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
func (*FileReader) Close ¶
func (d *FileReader) Close() error
Click to show internal directories.
Click to hide internal directories.