kubernetes/cmd/dependencyverifier/dependencyverifier.go

type Unwanted

type UnwantedSpec

type UnwantedStatus

// runCommand runs the cmd and returns the combined stdout and stderr, or an
// error if the command failed.
func runCommand(cmd ...string) (string, error) {}

func runCommandInDir(dir string, cmd []string) (string, error) {}

func readFile(path string) (string, error) {}

func moduleInSlice(a module, list []module, matchVersion bool) bool {}

// converts `go mod graph` output modStr into a map of from->[]to references and the main module
func convertToMap(modStr string) ([]module, map[module][]module) {}

// difference returns a-b and b-a as sorted lists
func difference(a, b []string) ([]string, []string) {}

type module

func (m module) String() string {}

func parseModule(s string) module {}

// option1: dependencyverifier dependencies.json
// it will run `go mod graph` and check it.
func main() {}

func visit(visitor func(m module, via []module), main module, references map[module][]module, effectiveVersions map[string]module) {}

func doVisit(visitor func(m module, via []module), from module, via []module, visited map[module]bool, references map[module][]module, effectiveVersions map[string]module) {}