runsummary

package
v0.0.0-...-c30d438 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunSummary

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

func New

func New() *RunSummary

func NewFrom

func NewFrom(tree pathtree.TreeData) *RunSummary

func (*RunSummary) ApplyChangeRecord

func (rs *RunSummary) ApplyChangeRecord(
	summaryRecord *service.SummaryRecord,
	onError func(error),
)

Updates and/or removes values from the configuration tree.

Does a best-effort job to apply all changes. Errors are passed to `onError` and skipped.

func (*RunSummary) CloneTree

func (rs *RunSummary) CloneTree() (pathtree.TreeData, error)

Clones the tree. This is useful for creating a snapshot of the tree.

func (*RunSummary) Flatten

func (rs *RunSummary) Flatten() ([]*service.SummaryItem, error)

Flatten the summary tree into a slice of SummaryItems.

There is no guarantee for the order of the items in the slice. The order of the items is determined by the order of the tree traversal. The tree traversal is depth-first but based on a map, so the order is not guaranteed.

func (*RunSummary) Serialize

func (rs *RunSummary) Serialize() ([]byte, error)

Serializes the object to send to the backend.

func (*RunSummary) Tree

func (rs *RunSummary) Tree() pathtree.TreeData

Tree returns the tree data.

Jump to

Keyboard shortcuts

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