progresslog

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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