Documentation
¶
Index ¶
- type Option
- type ProgressLog
- func (p *ProgressLog) AddEntitlementsProgress(resourceType string, count int)
- func (p *ProgressLog) AddGrantsProgress(resourceType string, count int)
- func (p *ProgressLog) AddResourceTypes(count int)
- func (p *ProgressLog) AddResources(resourceType string, count int)
- func (p *ProgressLog) LogEntitlementsProgress(ctx context.Context, resourceType string)
- func (p *ProgressLog) LogExpandProgress(ctx context.Context, actions []*expand.EntitlementGraphAction)
- func (p *ProgressLog) LogGrantsProgress(ctx context.Context, resourceType string)
- func (p *ProgressLog) LogResourceTypesProgress(ctx context.Context)
- func (p *ProgressLog) LogResourcesProgress(ctx context.Context, resourceType string)
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 WithLogger ¶
func WithSequentialMode ¶
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)
Click to show internal directories.
Click to hide internal directories.