package
0.22.0
Repository: https://github.com/fluxcd/go-git-providers.git
Documentation: pkg.go.dev

# Functions

New creates a new validator struct for the given struct name.
NewMultiError returns a new *MultiError instance for the given errors.
TestExpectErrors loops through all expected errors and make sure that errors.Is returns true for all of them.
ValidateTargets runs the ValidateFields() method for each of the targets, and returns the aggregate error.

# Variables

ErrFieldEnumInvalid specifies the case where the given value isn't part of the known values in the enum.
ErrFieldInvalid specifies the case where a field isn't populated in a valid manner.
ErrFieldRequired specifies the case where a required field isn't populated at use time.

# Structs

MultiError is a holder struct for multiple errors returned at once Each of the errors might wrap their own underlying error.

# Interfaces

ValidateTarget is an interface for structs that aren't top-level Objects, i.e.
Validator is an interface that helps with validating objects.