validators

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAddonLabel

func ValidateAddonLabel(metabundle utils.MetaBundle) (bool, error)

ValidateAddonLabel validates whether the 'label' field under an addon.yaml follows the format 'api.openshift.com/addon-<id>'

func ValidateCSVPresent

func ValidateCSVPresent(metabundle utils.MetaBundle) (bool, error)

func ValidateDefaultChannel

func ValidateDefaultChannel(metabundle utils.MetaBundle) (bool, error)

ValidateDefaultChannel validates whether the 'defaultChannel' provided under an addon.yaml also exists under 'channels' field

Types

type ValidatorAddonLabelTestBundle

type ValidatorAddonLabelTestBundle struct{}

func (ValidatorAddonLabelTestBundle) FailingCandidates

func (val ValidatorAddonLabelTestBundle) FailingCandidates() []utils.MetaBundle

func (ValidatorAddonLabelTestBundle) Name

func (ValidatorAddonLabelTestBundle) Run

func (ValidatorAddonLabelTestBundle) SucceedingCandidates

func (val ValidatorAddonLabelTestBundle) SucceedingCandidates() []utils.MetaBundle

type ValidatorDefaultChannelTestBundle

type ValidatorDefaultChannelTestBundle struct{}

func (ValidatorDefaultChannelTestBundle) FailingCandidates

func (val ValidatorDefaultChannelTestBundle) FailingCandidates() []utils.MetaBundle

func (ValidatorDefaultChannelTestBundle) Name

func (ValidatorDefaultChannelTestBundle) Run

func (ValidatorDefaultChannelTestBundle) SucceedingCandidates

func (val ValidatorDefaultChannelTestBundle) SucceedingCandidates() []utils.MetaBundle

Jump to

Keyboard shortcuts

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