lint

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 11 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 embed.FS

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

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator holds the warnings/errors and messaging that we get from validation

func ValidateZarfSchema

func ValidateZarfSchema(path string) (*Validator, error)

ValidateZarfSchema validates a zarf file against the zarf schema, returns *validator with warnings or errors if they exist along with an error if the validation itself failed

func (Validator) DisplayFormattedMessage

func (v Validator) DisplayFormattedMessage()

DisplayFormattedMessage message sent to user based on validator results

func (Validator) IsSuccess

func (v Validator) IsSuccess() bool

IsSuccess returns true if there are not any errors

Jump to

Keyboard shortcuts

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