Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct{}
Aggregator handles the business logic for PackExecutionResult operations. It provides methods to manipulate pack results without embedding business logic in the data structure itself.
func NewAggregator ¶
func NewAggregator() *Aggregator
NewAggregator creates a new results aggregator
func (*Aggregator) AddHandlerResult ¶
func (a *Aggregator) AddHandlerResult(per *context.PackExecutionResult, result *context.HandlerResult)
AddHandlerResult adds a handler result and updates statistics
func (*Aggregator) CompletePackResult ¶
func (a *Aggregator) CompletePackResult(per *context.PackExecutionResult)
CompletePackResult marks the pack execution as complete
func (*Aggregator) CreatePackResult ¶
func (a *Aggregator) CreatePackResult(pack *types.Pack) *context.PackExecutionResult
CreatePackResult creates a new pack execution result
Click to show internal directories.
Click to hide internal directories.