Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelErr = "ERR" LevelWarn = "WARN" LevelInfo = "INFO" )
View Source
const EnvConfigPath = "OASDIFF_CONFIG"
EnvConfigPath is the environment variable that overrides the default config-file lookup. Lower precedence than the --config flag.
Variables ¶
This section is empty.
Functions ¶
func GetBreakingLevels ¶
func GetBreakingLevels() []string
func GetChangelogTags ¶ added in v1.30.0
func GetChangelogTags() []string
func GetCoverageTags ¶ added in v1.30.0
func GetCoverageTags() []string
func GetSupportedLevels ¶
func GetSupportedLevels() []string
func GetSupportedLevelsLower ¶
func GetSupportedLevelsLower() []string
Types ¶
type Config ¶
type Config struct {
Attributes []string `mapstructure:"attributes"`
Composed bool `mapstructure:"composed"`
FlattenAllof bool `mapstructure:"flatten-allof"`
FlattenParams bool `mapstructure:"flatten-params"`
CaseInsensitiveHeaders bool `mapstructure:"case-insensitive-headers"`
DeprecationDaysBeta uint `mapstructure:"deprecation-days-beta"`
DeprecationDaysStable uint `mapstructure:"deprecation-days-stable"`
Lang string `mapstructure:"lang"`
Color string `mapstructure:"color"`
WarnIgnore string `mapstructure:"warn-ignore"`
ErrIgnore string `mapstructure:"err-ignore"`
Format string `mapstructure:"format"`
FailOn string `mapstructure:"fail-on"`
Level string `mapstructure:"level"`
FailOnDiff bool `mapstructure:"fail-on-diff"`
SeverityLevels string `mapstructure:"severity-levels"`
StabilityLevel string `mapstructure:"stability-level"`
ExcludeElements []string `mapstructure:"exclude-elements"`
ExcludeExtensions []string `mapstructure:"exclude-extensions"`
Severity []string `mapstructure:"severity"`
Tags []string `mapstructure:"tags"`
MatchPath string `mapstructure:"match-path"`
UnmatchPath string `mapstructure:"unmatch-path"`
FilterExtension string `mapstructure:"filter-extension"`
PrefixBase string `mapstructure:"prefix-base"`
PrefixRevision string `mapstructure:"prefix-revision"`
StripPrefixBase string `mapstructure:"strip-prefix-base"`
StripPrefixRevision string `mapstructure:"strip-prefix-revision"`
IncludePathParams bool `mapstructure:"include-path-params"`
MatchInlineRefs bool `mapstructure:"match-inline-refs"`
AllowExternalRefs bool `mapstructure:"allow-external-refs"`
AutoUpgrade bool `mapstructure:"auto-upgrade"`
Fetch bool `mapstructure:"fetch"`
Template string `mapstructure:"template"`
}
type IViper ¶
type IViper interface {
SetConfigName(in string)
SetConfigFile(in string)
AddConfigPath(in string)
ReadInConfig() error
ConfigFileUsed() string
GetString(key string) string
Set(key string, value any)
BindPFlag(key string, flag *pflag.Flag) error
UnmarshalExact(rawVal any, opts ...viper.DecoderConfigOption) error
}
type ReturnError ¶
type ReturnError struct {
Code int
// contains filtered or unexported fields
}
func (*ReturnError) Unwrap ¶ added in v1.30.0
func (e *ReturnError) Unwrap() error
Embedding an interface promotes only its own methods, so without this a ReturnError is opaque to errors.Is and errors.As.
Source Files
¶
- breaking_changes.go
- breaking_files.go
- changelog.go
- checks.go
- checks_changelog.go
- checks_coverage.go
- checks_validate.go
- cmd_flags.go
- diff.go
- enum.go
- enum_slice.go
- errors.go
- flag_errors.go
- flags.go
- flatten.go
- git_diff_driver.go
- handlers.go
- level.go
- open_review.go
- run.go
- schema.go
- summary.go
- tags.go
- upgrade.go
- validate.go
- viper.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package populatetest fills reflect values with non-zero samples derived from their types.
|
Package populatetest fills reflect values with non-zero samples derived from their types. |
Click to show internal directories.
Click to hide internal directories.