action

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAction

func NewAction(id string, in *anpb.Action, artifacts artifact.PathMap, targets target.Map, deps depset.Resolver) (*dipb.Action, error)

Types

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
	OutputMap      OutputMap
}

Graph holds compiled data about the action graph container.

func NewGraph

func NewGraph(name string, container *anpb.ActionGraphContainer) (*Graph, error)

type OutputMap

type OutputMap map[string]*dipb.Action

OutputMap is a map of string -> action were the key is the primary output file(s) of the action.

func NewOutputMap

func NewOutputMap(actions []*dipb.Action) OutputMap

NewOutputMap creates a new actionOutputMap.

type OutputPair

type OutputPair struct {
	Output string
	Action *dipb.Action // representative of before/after
	Before *dipb.Action
	After  *dipb.Action
}

func (*OutputPair) Diff

func (p *OutputPair) Diff() string

func (*OutputPair) UnifiedDiff

func (p *OutputPair) UnifiedDiff() string

type OutputPairs

type OutputPairs []*OutputPair

func Partition

func Partition(before, after OutputMap) (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)

Jump to

Keyboard shortcuts

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