detectillegaldeps

package module
v0.0.0-...-514d7bc Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(yamlPath, basePath string) (*Config, error)

type Detector

type Detector struct {
	Whitelist WhiteList
	// contains filtered or unexported fields
}

func NewDetector

func NewDetector(conf *Config) *Detector

func (*Detector) ApplyRule

func (d *Detector) ApplyRule(from, to string) bool

func (*Detector) Detect

func (d *Detector) Detect() []error

type WhiteList

type WhiteList map[string][]string

func (WhiteList) IsAllowedDeps

func (w WhiteList) IsAllowedDeps(from, to string) bool

type Yaml

type Yaml struct {
	InternalPrefix string              `yaml:"internalPrefix"`
	WhiteList      map[string][]string `yaml:"whitelist"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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