Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigValidation = fmt.Errorf("error while validating config")
)
View Source
var ErrInvalidFormat = fmt.Errorf("invalid config format")
Functions ¶
Types ¶
type ConfHandler ¶
type ConfigMarshaller ¶
type ConfigMarshaller struct { Format Format ConfHandler }
func NewConfigMarshaller ¶
func NewConfigMarshaller(conf ConfHandler, format Format) ConfigMarshaller
func (ConfigMarshaller) MarshalText ¶
func (cm ConfigMarshaller) MarshalText() (text []byte, err error)
type ConfigValidator ¶
type ConfigValidator struct { ConfHandler // contains filtered or unexported fields }
func NewConfigValidator ¶
func NewConfigValidator(confHandler ConfHandler, mgmtLogger logr.Logger, version string) *ConfigValidator
func (*ConfigValidator) Validate ¶
func (cv *ConfigValidator) Validate() (*ValidationErrors, error)
Validate validates the parsed configuration against the schema for the given versions. ValidationErrors is not nil if any errors occur during validation.
type VErrSlice ¶
type VErrSlice []ValidationErr
type ValidationErr ¶
type ValidationErr struct {
asconfig.ValidationErr
}
func (ValidationErr) Error ¶
func (o ValidationErr) Error() string
Outputs a human readable string of validation error details. error is not nil if validation, or any other type of error occurs.
type ValidationErrors ¶
type ValidationErrors struct {
Errors VErrSlice
}
func (ValidationErrors) Error ¶
func (o ValidationErrors) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.