validate

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package validate contains functionality for validating that a pipeline template HCL file is valid

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator can validate a pipeline template

func New

func New(pluginManager plugin.Manager) *Validator

New creates a new instance of a Validator

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context, hclConfig config.HCLConfig, variableValues map[string]string) hcl.Diagnostics

Validate will validate a pipeline template and return diagnostics if it's not valid

Jump to

Keyboard shortcuts

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