graph

package
v0.0.0-...-99b6f83 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileImpact

type FileImpact struct {
	File     string
	Task     string
	Affected bool
	Reason   string
	Input    string
	Relative string
	Ignore   string
}

type Graph

type Graph struct {
	Tasks   map[string]project.Task
	Targets map[string]project.Target
}

func New

func New(tasks []project.Task, targets []project.Target) (*Graph, error)

func (*Graph) AffectedByFiles

func (g *Graph) AffectedByFiles(files []string) []string

func (*Graph) Downstream

func (g *Graph) Downstream(names []string) []string

func (*Graph) ExplainAffectedByFiles

func (g *Graph) ExplainAffectedByFiles(files []string) []FileImpact

func (*Graph) TargetClosure

func (g *Graph) TargetClosure(target string) ([]string, error)

func (*Graph) TopoSort

func (g *Graph) TopoSort(subset []string) ([]string, error)

func (*Graph) Upstream

func (g *Graph) Upstream(names []string) []string

func (*Graph) Validate

func (g *Graph) Validate() error

Jump to

Keyboard shortcuts

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