Documentation ¶
Index ¶
- Constants
- func Bucket() string
- func Check(fileQueue <-chan *RepoFile, objectPrefix string, l echo.Logger) <-chan *RepoFile
- func CheckRepoHandler() echo.HandlerFunc
- func Filter(fileQueue <-chan *RepoFile, filterPrefix []string) (<-chan *RepoFile, <-chan uint32)
- func InitHandler(repo string, e *echo.Echo)
- func InitUploader(bucket string, workerNumb int, opts ...StorageFactory)
- func RegenerateSummary(objectPrefix string) error
- func Sync(objectQueue <-chan *RepoFile, objectPrefix string, srcDir string, ...) <-chan *uploadStatus
- func Untar(tarReader *tar.Reader, dstDir string, l echo.Logger) <-chan *RepoFile
- func UpdateSummary() echo.HandlerFunc
- func UploadRepoHandler() echo.HandlerFunc
- type RepoCtx
- type RepoFile
- type SendReport
- type StorageFactory
- type SyncReport
Constants ¶
View Source
const (
FilesToCheckMaxNumb int = 500
)
Variables ¶
This section is empty.
Functions ¶
func CheckRepoHandler ¶
func CheckRepoHandler() echo.HandlerFunc
func InitHandler ¶
func InitHandler(repo string, e *echo.Echo)
func InitUploader ¶
func InitUploader(bucket string, workerNumb int, opts ...StorageFactory)
func RegenerateSummary ¶
func UpdateSummary ¶
func UpdateSummary() echo.HandlerFunc
func UploadRepoHandler ¶
func UploadRepoHandler() echo.HandlerFunc
Types ¶
type RepoCtx ¶
func RepoBaseHandler ¶
type SendReport ¶
type SyncReport ¶
type SyncReport struct { UploadedFileNumb uint32 `json:"uploaded"` SyncedFileNumb uint32 `json:"synced"` UploadSyncedFileNumb uint32 `json:"upload_synced"` SyncFailedNumb uint32 `json:"sync_failed"` }
func Wait ¶
func Wait(reportQueue <-chan uint32, statusQueue <-chan *uploadStatus) *SyncReport
Click to show internal directories.
Click to hide internal directories.