mass_driver.scanners.basic_scanners

A few basic scanners to get people started

Module Contents

Functions

has_dir

Check target directory exists under repo

has_file

Check file dir_to_check exists under repo

rootlevel_files

Detect some files at the root of the repo

dockerfile_from_scanner

Report the repo’s Dockerfile’s FROM line(s)

API

mass_driver.scanners.basic_scanners.has_dir(repo: pathlib.Path, target: str) bool[source]

Check target directory exists under repo

mass_driver.scanners.basic_scanners.has_file(repo: pathlib.Path, target: str) bool[source]

Check file dir_to_check exists under repo

mass_driver.scanners.basic_scanners.rootlevel_files(repo: pathlib.Path) dict[str, Any][source]

Detect some files at the root of the repo

mass_driver.scanners.basic_scanners.dockerfile_from_scanner(repo: pathlib.Path) dict[str, Any][source]

Report the repo’s Dockerfile’s FROM line(s)