Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountTracker ¶ added in v0.2.0
type CountTracker struct {
// contains filtered or unexported fields
}
CountTracker renders a single "[tag] N found." line that refreshes in place. Used for long-running iterations over a single scope (e.g. object listing in one bucket). Safe for concurrent Update.
func NewCountTracker ¶ added in v0.2.0
func NewCountTracker() *CountTracker
func (*CountTracker) Finish ¶ added in v0.2.0
func (t *CountTracker) Finish()
Finish returns the cursor to column 0 so subsequent output starts cleanly. Call via defer.
func (*CountTracker) Update ¶ added in v0.2.0
func (t *CountTracker) Update(tag string, count int)
Update refreshes the in-place counter line for tag.
type RegionTracker ¶ added in v0.1.7
type RegionTracker struct {
// contains filtered or unexported fields
}
RegionTracker renders one "[region] N found." line per region iteration, collapsing zero-count regions into a single refreshing line and printing a new line for regions that actually returned items. Safe for concurrent Update.
func NewRegionTracker ¶ added in v0.1.7
func NewRegionTracker() *RegionTracker
func (*RegionTracker) Count ¶ added in v0.1.7
func (t *RegionTracker) Count() int
Count returns the total number of items observed across regions.
func (*RegionTracker) Finish ¶ added in v0.1.7
func (t *RegionTracker) Finish()
Finish clears the in-place progress line if the last Update did not print a newline. Call via defer.
func (*RegionTracker) Update ¶ added in v0.1.7
func (t *RegionTracker) Update(region string, newItems int)
Update prints progress for a region and updates internal state.