Versions in this module Expand all Collapse all v0 v0.0.40 Sep 2, 2024 Changes in this version + const Constraint_CAI + const Constraint_CEP + const Constraint_CRIP + const Constraint_CRL + const Constraint_DBPDB + const Constraint_PEA + const Constraint_RT + const Constraint_USS + const Constraint_all + var Safeguard_CRIP = Safeguard + func AddSafeguardCRIP() + func GetScheme() *runtime.Scheme + func IsDirectory(path string) (bool, error) + func IsYAML(path string) bool + type FileCrawler struct + Safeguards []Safeguard + func (fc FileCrawler) ReadConstraint(name string) (*unstructured.Unstructured, error) + func (fc FileCrawler) ReadConstraintTemplate(name string) (*templates.ConstraintTemplate, error) + func (fc FileCrawler) ReadConstraintTemplates() ([]*templates.ConstraintTemplate, error) + func (fc FileCrawler) ReadConstraints() ([]*unstructured.Unstructured, error) + func (fc FileCrawler) ReadManifests(path string) ([]*unstructured.Unstructured, error) + type ManifestFile struct + Name string + Path string + func GetManifestFiles(p string) ([]ManifestFile, error) + type ManifestResult struct + Name string + ObjectViolations map[string][]string + ViolationsCount int + func GetManifestResults(ctx context.Context, manifestFiles []ManifestFile) ([]ManifestResult, error) + type Safeguard struct