impact

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package impact maps changed paths to the units they affect: a deploy row, a module, a chart.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map[T cmp.Ordered] struct {
	// Owned maps each unit to the path prefixes it owns.
	Owned map[T][]string

	// Shared are path prefixes every unit depends on (a shared module, an include).
	Shared []string

	// DispatchOnly units are never selected by a change; they run only on request.
	DispatchOnly []T
}

Map says which paths belong to which units.

func (Map[T]) Affected

func (m Map[T]) Affected(changed []string) []T

Affected returns the units changed touches, sorted: every unit (but the dispatch-only ones) when a path is under a Shared prefix, else each unit owning a prefix a path is under. A prefix covers itself and everything below it; "" and "." cover every path.

Jump to

Keyboard shortcuts

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