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, envContainer app.EnvContainer, externalConfig ExternalConfig, ) ([]Violation, error) }
Checker is a checker.
func NewChecker ¶
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"` }
ExternalConfig is an external ban configuation.
type ExternalConfig ¶
type ExternalConfig struct {
Bans []ExternalBanConfig `json:"bans,omitempty" yaml:"bans,omitempty"`
}
ExternalConfig is an external configuation.
type ExternalPackageConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.