linter

package
v0.0.0-...-dc1648f Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUppercase  = errors.New("uppercase name")
	ErrInvalidLowercase  = errors.New("lowercase name")
	ErrRequiredAttribute = errors.New("required attribute is not set")
)
View Source
var (
	ErrInvalidWorkspace = errors.New("invalid workspace definition")
	ErrInvalidParam     = errors.New("invalid param definition")
	ErrInvalidResult    = errors.New("invalid results definition")
)

Functions

func GetNestedSlice

func GetNestedSlice(u *unstructured.Unstructured, fields ...string) ([]interface{}, error)

Types

type Linter

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

Linter enforce linting rules on the informed Tekton resource file.

func NewLinter

func NewLinter(cfg *config.Config, resourceFile string) (*Linter, error)

NewLinter instantiate the resource linter by reading and decoding the resource file.

func (*Linter) Enforce

func (l *Linter) Enforce() error

Enforce lint workspaces, params and results.

Jump to

Keyboard shortcuts

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