validation

package
v0.0.0-...-5b0754e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const KnownChart = "knownchart"

Variables

View Source
var CustomErrors = map[string]customErrorFunc{
	KnownChart: getUnknownChartError,
}

Functions

This section is empty.

Types

type Context

type Context struct {
	KnownCharts kubernetes.KnownCharts
	EnvService  *service.EnvironmentService
}

type CustomValidations

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

func SetupCustomValidations

func SetupCustomValidations(ctx Context) *CustomValidations

func (*CustomValidations) ChartIsKnown

func (cv *CustomValidations) ChartIsKnown(chartName string) bool

func (*CustomValidations) ValidateEnvParameters

func (cv *CustomValidations) ValidateEnvParameters(env *model.Environment) (bool, error)

Jump to

Keyboard shortcuts

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