-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.go
More file actions
40 lines (29 loc) · 1.34 KB
/
progress.go
File metadata and controls
40 lines (29 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package blob
import blobcore "github.com/meigma/blob/core"
// Re-export progress types from core package.
type (
// ProgressEvent represents a progress update during push, pull, or extraction operations.
ProgressEvent = blobcore.ProgressEvent
// ProgressStage identifies the current phase of an operation.
ProgressStage = blobcore.ProgressStage
// ProgressFunc receives progress updates during operations.
// Implementations must be safe for concurrent calls.
ProgressFunc = blobcore.ProgressFunc
)
// Re-export progress stage constants.
const (
// StageEnumerating indicates the operation is walking the directory tree.
StageEnumerating = blobcore.StageEnumerating
// StageCompressing indicates files are being compressed and written.
StageCompressing = blobcore.StageCompressing
// StagePushingIndex indicates the index blob is being uploaded.
StagePushingIndex = blobcore.StagePushingIndex
// StagePushingData indicates the data blob is being uploaded.
StagePushingData = blobcore.StagePushingData
// StageFetchingManifest indicates the manifest is being fetched.
StageFetchingManifest = blobcore.StageFetchingManifest
// StageFetchingIndex indicates the index blob is being fetched.
StageFetchingIndex = blobcore.StageFetchingIndex
// StageExtracting indicates files are being extracted.
StageExtracting = blobcore.StageExtracting
)