Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionMap ¶
ActionMap is a map of string -> action.
func NewMnemonicFileMap ¶
NewMnemonicFileMap creates a new actionOutputMap were the key is the primary output file(s) of the action. In the strategy, the last action having the mnemonic wins.
func NewOutputFilesMap ¶
NewOutputFilesMap creates a new actionOutputMap were the key is the primary output file(s) of the action.
type ActionMapper ¶
ActionMapper is a function that creates an ActionMap from a list of Actions.
type Graph ¶
type Graph struct {
Name string
Container *anpb.ActionGraphContainer
Artifacts artifact.PathMap
Targets target.Map
DepSetOfFiles depset.Map
DepSetResolver depset.Resolver
Actions []*dipb.Action
}
Graph holds compiled data about the action graph container.
func (*Graph) GetPrimaryTarget ¶
GetPrimaryTarget returns the most common target from the actions in the graph, or empty string if there are no actions.
type OutputPair ¶
type OutputPair struct {
Output string
Action *dipb.Action // representative of before/after
Before *dipb.Action
After *dipb.Action
// contains filtered or unexported fields
}
func (*OutputPair) Diff ¶
func (p *OutputPair) Diff() string
func (*OutputPair) UnifiedDiff ¶
func (p *OutputPair) UnifiedDiff() gotextdiff.Unified
type OutputPairs ¶
type OutputPairs []*OutputPair
func Partition ¶
func Partition(before, after ActionMap) (beforeOnly, afterOnly, both OutputPairs)
func (OutputPairs) Len ¶
func (p OutputPairs) Len() int
func (OutputPairs) Less ¶
func (p OutputPairs) Less(i, j int) bool
func (OutputPairs) Swap ¶
func (p OutputPairs) Swap(i, j int)