validate

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllValidators = map[string]utils.Validator{
	"001_default_channel": {
		Description: "Ensure defaultChannel is present in list of channels",
		Runner:      validators.ValidateDefaultChannel,
	},
	"002_label_format": {
		Description: "Ensure `label` to follow the format api.openshift.com/addon-<operator-id>",
		Runner:      validators.ValidateAddonLabel,
	},
	"003_csv_present": {
		Description: "Ensure current csv is present in the index image",
		Runner:      validators.ValidateCSVPresent,
	},
}

name formatting rule: [0-9]{3}_([a-z]*_?)*

Functions

func NewFilter added in v0.4.0

func NewFilter(disabled, enabled string) (*validatorsFilter, error)

func Validate

func Validate(mb utils.MetaBundle, filter *validatorsFilter) (bool, []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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