validator

package
v0.0.0-...-90e7e3f Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleOptions

type RuleOptions struct {
	Verbose      bool
	SkipCommands map[string]bool
}

RuleOptions is present in each rule to control the options limited to the rule

type StatusLog

type StatusLog struct {
	// totalTested represents number of commands checked
	TotalTested int
	// totalErrors reperesents number of errors
	TotalErrors int
	// errors in command
	Errors []ValidationError
}

StatusLog is used for providing info about validation of commands

type ValidationError

type ValidationError struct {
	Name string
	Err  error
	Rule string
	Cmd  *cobra.Command
}

ValidationError is a default validation error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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