mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
17 lines
399 B
Go
17 lines
399 B
Go
package statushooks
|
|
|
|
import "context"
|
|
|
|
type SnapshotProgress interface {
|
|
UpdateRowCount(context.Context, int)
|
|
UpdateErrorCount(context.Context, int)
|
|
}
|
|
|
|
func SnapshotError(ctx context.Context) {
|
|
SnapshotProgressFromContext(ctx).UpdateErrorCount(ctx, 1)
|
|
}
|
|
|
|
func UpdateSnapshotProgress(ctx context.Context, completedRows int) {
|
|
SnapshotProgressFromContext(ctx).UpdateRowCount(ctx, completedRows)
|
|
}
|