check

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check[T any](parserBuilder dep_tree.NodeParserBuilder[T], cfg *Config) error

Types

type Config

type Config struct {
	Path                      string
	Entrypoints               []string            `yaml:"entrypoints"`
	AllowCircularDependencies bool                `yaml:"allowCircularDependencies"`
	Aliases                   map[string][]string `yaml:"aliases"`
	WhiteList                 map[string][]string `yaml:"allow"`
	BlackList                 map[string][]string `yaml:"deny"`
}

func (*Config) Check

func (c *Config) Check(from, to string) (bool, error)

func (*Config) Init

func (c *Config) Init(path string)

func (*Config) Validate

func (c *Config) Validate(start string, destinations func(from string) []string) ([]string, error)

type Error

type Error []error

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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