Documentation
¶
Index ¶
- type Resource
- func (r *Resource) Compress() (err error)
- func (r *Resource) Download(progress func(current, total int64)) error
- func (r *Resource) MoveFile() error
- func (r *Resource) SetDeCompressPath(path string)
- func (r *Resource) SetFilterRule(ignore []string)
- func (r *Resource) SetKeepOldFile(keep string)
- func (r *Resource) SetMd5(m string)
- func (r *Resource) SetMoveRule(moveRule map[string]string)
- func (r *Resource) SilentRun(progress func(current, total int64)) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { Remote string Dir string TmpFile string Ext string // contains filtered or unexported fields }
func (*Resource) SetDeCompressPath ¶
func (*Resource) SetFilterRule ¶
func (*Resource) SetKeepOldFile ¶
func (*Resource) SetMoveRule ¶
Click to show internal directories.
Click to hide internal directories.