Documentation
¶
Overview ¶
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS> doc: https://pan.baidu.com/union/doc/pkuo3snyp
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
Index ¶
- Constants
- Variables
- func Execute()
- type Action
- type AuthCommand
- type DownloadCommand
- type FileAction
- type GlobalArg
- type ListCommand
- type LoginCommand
- type ManageCommand
- type QueryArg
- type QueryCommand
- type RootCommand
- type SyncAddCommand
- type SyncCommand
- type SyncExecCommand
- type TestCommand
- type UploadCommand
Constants ¶
View Source
const ( ORDER_TIME = "time" ORDER_NAME = "name" ORDER_SIZE = "size" )
View Source
const (
ActionSync bdpan.SelectAction = iota
)
Variables ¶
View Source
var (
Log = bdpan.GetLogger()
)
View Source
var (
ORDERS = []string{ORDER_NAME, ORDER_TIME, ORDER_SIZE}
)
Functions ¶
Types ¶
type AuthCommand ¶
type AuthCommand struct {
}
func (AuthCommand) Run ¶
func (a AuthCommand) Run() error
type DownloadCommand ¶
func NewDownloadCommand ¶
func NewDownloadCommand(c *cobra.Command) *DownloadCommand
func (DownloadCommand) Download ¶
func (d DownloadCommand) Download(file *bdpan.FileInfoDto) error
func (DownloadCommand) Run ¶
func (d DownloadCommand) Run() error
type FileAction ¶ added in v0.4.1
type FileAction struct {
File *bdpan.FileInfoDto
Name string
Icon string
Action Action
Desc string
}
func NewBackFileAction ¶ added in v0.4.1
func NewBackFileAction(dir string) FileAction
func NewFileActions ¶ added in v0.4.1
func NewFileActions(file *bdpan.FileInfoDto) []FileAction
func NewSystemDirAction ¶ added in v0.4.1
func NewSystemDirAction(dir string) FileAction
func NewViewFileActions ¶ added in v0.4.1
func NewViewFileActions(files []*bdpan.FileInfoDto) []FileAction
type ListCommand ¶
type ListCommand struct {
Dir string
IsRecursion bool
IsDesc bool
Start int32
Limit int32
Order string
}
func NewListCommand ¶
func NewListCommand(c *cobra.Command) *ListCommand
func (ListCommand) Run ¶
func (l ListCommand) Run() error
type LoginCommand ¶
type LoginCommand struct {
}
func (LoginCommand) Run ¶
func (l LoginCommand) Run() error
type ManageCommand ¶
type ManageCommand struct {
// contains filtered or unexported fields
}
func (ManageCommand) Copy ¶
func (m ManageCommand) Copy() error
func (ManageCommand) Exec ¶
func (m ManageCommand) Exec(args []string) error
type QueryCommand ¶
func NewQueryCommand ¶
func NewQueryCommand(cmd *cobra.Command) *QueryCommand
func (QueryCommand) Run ¶
func (q QueryCommand) Run() error
type RootCommand ¶
func (*RootCommand) Run ¶ added in v0.4.1
func (r *RootCommand) Run() error
type SyncAddCommand ¶
type SyncAddCommand struct {
Remote string
Local string
IsBackup bool // 是否为备份
HasHide bool //是否备份隐藏文件
}
func (SyncAddCommand) Run ¶
func (s SyncAddCommand) Run() error
type SyncCommand ¶
func (SyncCommand) Run ¶
func (s SyncCommand) Run() error
type SyncExecCommand ¶
type SyncExecCommand struct {
*SyncCommand
// contains filtered or unexported fields
}
func (SyncExecCommand) Run ¶
func (s SyncExecCommand) Run() error
type TestCommand ¶
func (TestCommand) Init ¶
func (t TestCommand) Init()
type UploadCommand ¶
type UploadCommand struct {
From string
To string
IsSync bool
IsRecursion bool // 是否递归子文件夹文件
IsIncludeHide bool // 是否上传隐藏文件
// contains filtered or unexported fields
}
func NewUploadCommand ¶
func NewUploadCommand(c *cobra.Command) *UploadCommand
func (UploadCommand) Run ¶
func (u UploadCommand) Run() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.