lint

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 19 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 Validate added in v0.32.0

func Validate(ctx context.Context, createOpts types.ZarfCreateOptions) (*Validator, error)

Validate 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