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.
Click to show internal directories.
Click to hide internal directories.