progresslog

package
v0.8.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*ProgressLog)

func WithLogFrequency

func WithLogFrequency(logFrequency time.Duration) Option

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithSequentialMode

func WithSequentialMode(sequential bool) Option

WithSequentialMode enables/disables mutex protection for sequential sync.

type ProgressLog

type ProgressLog struct {
	// contains filtered or unexported fields
}

func NewProgressCounts

func NewProgressCounts(ctx context.Context, opts ...Option) *ProgressLog

func (*ProgressLog) AddEntitlementsProgress

func (p *ProgressLog) AddEntitlementsProgress(resourceType string, count int)

AddEntitlementsProgress safely adds to the entitlements progress count for a specific resource type.

func (*ProgressLog) AddGrantsProgress

func (p *ProgressLog) AddGrantsProgress(resourceType string, count int)

AddGrantsProgress safely adds to the grants progress count for a specific resource type.

func (*ProgressLog) AddResourceTypes

func (p *ProgressLog) AddResourceTypes(count int)

AddResourceTypes safely adds to the resource types count.

func (*ProgressLog) AddResources

func (p *ProgressLog) AddResources(resourceType string, count int)

AddResources safely adds to the resources count for a specific resource type.

func (*ProgressLog) LogEntitlementsProgress

func (p *ProgressLog) LogEntitlementsProgress(ctx context.Context, resourceType string)

func (*ProgressLog) LogExpandProgress

func (p *ProgressLog) LogExpandProgress(ctx context.Context, actions []*expand.EntitlementGraphAction)

func (*ProgressLog) LogGrantsProgress

func (p *ProgressLog) LogGrantsProgress(ctx context.Context, resourceType string)

func (*ProgressLog) LogResourceTypesProgress

func (p *ProgressLog) LogResourceTypesProgress(ctx context.Context)

func (*ProgressLog) LogResourcesProgress

func (p *ProgressLog) LogResourcesProgress(ctx context.Context, resourceType string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL