lint

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package lint contains functions for verifying zarf yaml files are valid

Package lint contains functions for verifying zarf yaml files are valid

Index

Constants

This section is empty.

Variables

View Source
var ZarfSchema fs.ReadFileFS

ZarfSchema is exported so main.go can embed the schema file

Functions

func GroupFindingsByPath added in v0.36.0

func GroupFindingsByPath(findings []types.PackageFinding, severity types.Severity, packageName string) map[string][]types.PackageFinding

GroupFindingsByPath groups findings by their package path

func HasSeverity added in v0.36.0

func HasSeverity(findings []types.PackageFinding, severity types.Severity) bool

HasSeverity returns true if the findings contain a severity equal to or greater than the given severity

func Validate added in v0.32.0

func Validate(ctx context.Context, pkg types.ZarfPackage, createOpts types.ZarfCreateOptions) ([]types.PackageFinding, error)

Validate the given Zarf package. The Zarf package should not already be composed when sent to this function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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