validation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package validation provides validation for Bundles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinErrors

func JoinErrors(errs []error) error

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.

Jump to

Keyboard shortcuts

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