Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadResult ¶
type LoadResult struct {
// Artifacts is the merged set of all Gemara artifacts loaded
// from configured sources.
Artifacts *requirement.ArtifactSet
// Resolved maps policy IDs to their fully resolved policies.
Resolved map[string]*requirement.ResolvedPolicy
}
LoadResult holds the artifacts and resolved policies produced by LoadAndResolve.
func LoadAndResolve ¶
func LoadAndResolve( ctx context.Context, sources []config.GemaraSourceEntry, cacheDir string, ) (*LoadResult, error)
LoadAndResolve loads Gemara artifacts from all configured sources, merges them into a single ArtifactSet, and resolves all policies against the merged set.
Click to show internal directories.
Click to hide internal directories.