validation

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = Options{CheckDeploySource: true}
)

Functions

func Process

func Process(configs parser.SkaffoldConfigSet, validateConfig Options) error

Process checks if the Skaffold pipeline is valid and returns all encountered errors as a concatenated string

func ProcessWithRunContext

func ProcessWithRunContext(ctx context.Context, runCtx *runcontext.RunContext) error

ProcessWithRunContext checks if the Skaffold pipeline is valid when a RunContext is required. It returns all encountered errors as a concatenated string.

Types

type ErrorWithLocation

type ErrorWithLocation struct {
	Error    error
	Location *configlocations.Location
}

func ProcessToErrorWithLocation

func ProcessToErrorWithLocation(configs parser.SkaffoldConfigSet, validateConfig Options) []ErrorWithLocation

ProcessToErrorWithLocation checks if the Skaffold pipeline is valid and returns all encountered errors as ErrorWithLocation objects

type Options

type Options struct {
	CheckDeploySource bool
}

func GetValidationOpts

func GetValidationOpts(opts config.SkaffoldOptions) Options

Jump to

Keyboard shortcuts

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