Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobDownloader ¶
type BlobDownloader struct {
ServiceContext *sc.ServiceContext
}
func NewBlobDownloader ¶
func NewBlobDownloader(svc *sc.ServiceContext) *BlobDownloader
func (*BlobDownloader) Download ¶
func (bd *BlobDownloader) Download() error
type Downloader ¶
type Downloader interface {
Download() error
}
type ResourceChunk ¶
type RootDownloader ¶
type RootDownloader struct {
ServiceContext *sc.ServiceContext
ArchiveType string
}
func NewRootDownloader ¶
func NewRootDownloader(svc *sc.ServiceContext, archiveType string) *RootDownloader
func (*RootDownloader) Download ¶
func (rd *RootDownloader) Download() error
func (*RootDownloader) IsTar ¶
func (rd *RootDownloader) IsTar() bool
func (*RootDownloader) IsZip ¶
func (rd *RootDownloader) IsZip() bool
type TreeDownloader ¶
type TreeDownloader struct {
ServiceContext *sc.ServiceContext
FileChunks []*ResourceChunk // 最终要下载的所有文件存到此处
GitTreeChunks []*ResourceChunk // 需要递归的顶级目录存到此处
}
func NewTreeDownloader ¶
func NewTreeDownloader(svc *sc.ServiceContext) *TreeDownloader
func (*TreeDownloader) Download ¶
func (td *TreeDownloader) Download() error
Click to show internal directories.
Click to hide internal directories.