Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
// Check runs bandeps in the current directory with the configuration.
Check(
ctx context.Context,
envStdioContainer app.EnvStdioContainer,
externalConfig ExternalConfig,
) ([]Violation, error)
}
Checker is a checker.
type ExternalBanConfig ¶
type ExternalBanConfig struct {
// Packages are the package expressions to get dependencies for.
Packages ExternalPackageConfig `json:"packages,omitempty" yaml:"packages,omitempty"`
// Deps are package expressions that cannot be depended on for Packages.
Deps ExternalPackageConfig `json:"deps,omitempty" yaml:"deps,omitempty"`
// Note is a note to print out regarding why this ban exists.
Note string `json:"note,omitempty" yaml:"note,omitempty"`
}
ExternalBanConfig is an external ban configuration.
type ExternalConfig ¶
type ExternalConfig struct {
Bans []ExternalBanConfig `json:"bans,omitempty" yaml:"bans,omitempty"`
}
ExternalConfig is an external configuration.
type ExternalPackageConfig ¶
type ExternalPackageConfig struct {
// Use are the package expressions to list with go list.
Use []string `json:"use,omitempty" yaml:"use,omitempty"`
// Except are the package expressions that should be excluded from Use.
Except []string `json:"except,omitempty" yaml:"except,omitempty"`
}
ExternalPackageConfig is an external package configuration.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.