linter

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCyclicalDependency = errors.New("linter: cyclical step dependency detected")

ErrCyclicalDependency is returned when a Pipeline step defines a cyclical dependency, which would result in an infinite execution loop.

View Source
var ErrCyclicalPipelineDependency = errors.New("linter: cyclical pipeline dependency detected")

ErrCyclicalPipelineDependency is returned when a Pipeline defines a cyclical dependency, which would result in an infinite execution loop.

View Source
var ErrDuplicatePipelineName = errors.New("linter: duplicate pipeline names")

ErrDuplicatePipelineName is returned when two Pipeline resources have the same name.

View Source
var ErrDuplicateStepName = errors.New("linter: duplicate step names")

ErrDuplicateStepName is returned when two Pipeline steps have the same name.

View Source
var ErrMissingDependency = errors.New("linter: invalid or unknown step dependency")

ErrMissingDependency is returned when a Pipeline step defines dependencies that are invlid or unknown.

View Source
var ErrMissingPipelineDependency = errors.New("linter: invalid or unknown pipeline dependency")

ErrMissingPipelineDependency is returned when a Pipeline defines dependencies that are invlid or unknown.

View Source
var ErrPipelineSelfDependency = errors.New("linter: pipeline cannot have a dependency on itself")

ErrPipelineSelfDependency is returned when a Pipeline defines a dependency on itself.

Functions

func Lint

func Lint(resource yaml.Resource, trusted bool) error

Lint performs lint operations for a resource.

func Manifest

func Manifest(manifest *yaml.Manifest, trusted bool) error

Manifest performs lint operations for a manifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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