KustomizeScanner

class neophile.scanner.kustomize.KustomizeScanner(root: pathlib.Path)

Bases: neophile.scanner.base.BaseScanner

Scan a source tree for Kustomize version references.

This recognizes external resources in the format:

github.com/<owner>/<repo>(.git)?//<path>?ref=<version>
Parameters:root (pathlib.Path) – The root of the source tree.

Methods Summary

name() The name of the scanner type.
scan() Scan a source tree for version references.

Methods Documentation

name() → str

The name of the scanner type.

Returns:name – A string representing the type of scanner this is. Used for reporting results accumulated from a bunch of scanners.
Return type:str
scan() → List[KustomizeDependency]

Scan a source tree for version references.

Returns:results – A list of all discovered dependencies.
Return type:List[neophile.dependency.kustomize.KustomizeDependency]