Documentation ¶
Overview ¶
Package validation provides validation for Bundles
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinErrors ¶
JoinErrors joins a collection of errors together for convenience, returning nil if there were no errors in the slice.
Types ¶
type ComponentValidator ¶ added in v0.5.0
type ComponentValidator struct {
// contains filtered or unexported fields
}
ComponentValidator validates a set of components
func NewComponentValidator ¶ added in v0.5.0
func NewComponentValidator(c []*bundle.ComponentPackage, set *bundle.ComponentSet) *ComponentValidator
NewComponentValidator creates a new component Validator. The set of component packages is required, but if the component set is nil.
func (*ComponentValidator) Validate ¶ added in v0.5.0
func (v *ComponentValidator) Validate() []error
Validate validates components and components sets, providing as many errors as it can.
Click to show internal directories.
Click to hide internal directories.