Documentation
¶
Index ¶
- func Download() *cli.Command
- func Prompt() *cli.Command
- func SaveURL() *cli.Command
- func Upload() *cli.Command
- type Cli
- func (r *Cli) CheckSaveURLJob(jobID string) (status string, err error)
- func (r *Cli) Download(path string) (io.ReadCloser, error)
- func (r *Cli) GenContentHash(localContent []byte) string
- func (r *Cli) GetMetadata(path string) (files.IsMetadata, error)
- func (r *Cli) ListFolder(path string, recursive, includeDeleted bool, ...) error
- func (r *Cli) ListLocal(dir string, f func(path string, info os.FileInfo) error) error
- func (r *Cli) SaveURL(filename, fileURL string) (jobID string, err error)
- func (r *Cli) TryCheckLocalContentHash(local interface{}, remoteContentHash string) bool
- func (r *Cli) Upload(localFile, remotePath string, blockSuccessCallback func(idx int)) (*UploadResult, error)
- func (r *Cli) WriteToLocal(filename string, body io.Reader) error
- type Meta
- type UploadResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func (*Cli) CheckSaveURLJob ¶
func (*Cli) GenContentHash ¶
func (*Cli) GetMetadata ¶
func (r *Cli) GetMetadata(path string) (files.IsMetadata, error)
func (*Cli) ListFolder ¶
func (*Cli) TryCheckLocalContentHash ¶
type UploadResult ¶
type UploadResult struct {
Exist bool
}
Click to show internal directories.
Click to hide internal directories.