Documentation
¶
Overview ¶
Package app contains shared orchestration used by the Astrix CLI and daemon.
Index ¶
- func CurrentDiff(ctx context.Context, root string) (string, error)
- func Impact(root, diff string) (astgraph.ImpactSet, []ingress.FileChange, error)
- func PolicyGate(path string) (*policy.Gate, error)
- func ResolveProjectProfile(root, astrixfile string) (runner.ProjectProfile, error)
- func RunTests(ctx context.Context, root string, impact astgraph.ImpactSet) error
- func ValidateAstrixfile(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentDiff ¶
CurrentDiff returns the staged and unstaged unified diff against HEAD.
func PolicyGate ¶
PolicyGate loads and compiles an Astrixfile into an embedded OPA gate.
func ResolveProjectProfile ¶
func ResolveProjectProfile(root, astrixfile string) (runner.ProjectProfile, error)
ResolveProjectProfile applies environment overrides, then .ax stage values, then manifest-based project defaults.
func RunTests ¶
RunTests runs either all Go tests or the packages containing the selected test nodes.
func ValidateAstrixfile ¶
ValidateAstrixfile parses, checks and compiles the configured policy module.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.