aml

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package aml is the engine's work on the repo's AML as a whole: validating it, and showing its objects. (A single query is the query package's.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(ctx context.Context, node *anfranode.Client, r repo.Repo, sources datasource.DataSources, typ, fqn string) (anfranode.ShowResult, error)

Show shows an object of the repo, read from its compiled AML: the repo when typ and fqn are empty, or the object the catalog identifies by them (for now, a dataset). anfra-node refuses what it cannot find as invalid input, at the arg's path.

Types

type RepoValidation

type RepoValidation struct {
	// Valid: no file failed to compile, and no validator reported an
	// "error"-severity finding.
	Valid bool `json:"valid"`
	// Diagnostics are what could not be read, and why: today, the files that
	// failed to compile. The key core.show uses for the same items.
	Diagnostics []anfranode.CompileError     `json:"diagnostics"`
	Reports     []anfranode.ValidationReport `json:"reports"`
	// Unmatched are the paths that selected no AML file. Not part of the
	// answer: the validate command decides what they mean, as it also selects
	// the repo's Data Apps by them.
	Unmatched []string `json:"-"`
}

RepoValidation is the outcome of validating the repo: its verdict, what in it failed to compile, and the validator suite's findings.

func Validate

func Validate(ctx context.Context, node *anfranode.Client, r repo.Repo, paths []string) (RepoValidation, error)

Validate validates the AML repo via the node sidecar. paths (optional) are the file/dir/glob selectors — expanded in the node; empty validates the whole repo.

Jump to

Keyboard shortcuts

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