mirror of
https://github.com/turbot/steampipe.git
synced 2026-03-21 16:00:13 -04: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)
|
|
}
|