Expand description
ยงImplementation of container build lints
This module implements bootc container lint.
Structsยง
- Lint ๐
- Lint
Error ๐ - A lint check has failed.
- Lint
Execution ๐Config - Lint
Execution ๐Result
Enumsยง
- Lint
FnTy ๐ - A lint can either operate as it pleases on a target root, or it can be recursive.
- Lint
Type ๐ - The classification of a lint type.
- Root
Type ๐ - Warning
Disposition ๐
Constantsยง
- API_
DIRS ๐ - BASEIMAGE_
REF ๐ - Reference to embedded default baseimage content that should exist.
- DEFAULT_
TRUNCATED_ ๐OUTPUT - Only output this many items by default
- RUNTIME_
ONLY_ ๐DIRS - Directories that should be empty in container images. These are tmpfs at runtime and any content is build-time artifacts.
Staticsยง
- LINTS ๐
- LINT_
API_ ๐DIRS - LINT_
BASEIMAGE_ ๐ROOT - Check ostree-related base image content.
- LINT_
BUILDAH_ ๐INJECTED - LINT_
COMPOSEFS ๐ - LINT_
ETC_ ๐USRUSETC - LINT_
KARGS ๐ - Validate that we can parse the /usr/lib/bootc/kargs.d files.
- LINT_
KERNEL ๐ - LINT_
NONEMPTY_ ๐BOOT - LINT_
RUNTIME_ ๐ONLY_ DIRS - LINT_
SYSUSERS ๐ - LINT_
UTF8 ๐ - LINT_
VARLOG ๐ - LINT_
VAR_ ๐RUN - check for the existence of the /var/run directory if it exists we need to check that it links to /run if not error
- LINT_
VAR_ ๐TMPFILES
Functionsยง
- check_
api_ ๐dirs - check_
baseimage_ ๐root - check_
baseimage_ ๐root_ norecurse - Check for a few files and directories we expect in the base image.
- check_
boot ๐ - check_
buildah_ ๐injected - check_
composefs ๐ - check_
kernel ๐ - check_
parse_ ๐kargs - check_
prepareroot_ ๐composefs_ norecurse - check_
runtime_ ๐only_ dirs - check_
sysusers ๐ - check_
usretc ๐ - check_
utf8 ๐ - check_
var_ ๐run - check_
var_ ๐tmpfiles - check_
varlog ๐ - collect_
nonempty_ ๐regfiles - format_
items ๐ - format_
lint_ ๐err_ from_ items - lint ๐
- lint_
err ๐ - We successfully found a lint failure.
- lint_
inner ๐ - lint_
list ๐ - lint_ok ๐
- Everything is OK - we didnโt encounter a runtime error, and the targeted check passed.
- walk_
configuration ๐ - Create a default WalkConfiguration with noxdev enabled.
Type Aliasesยง
- LintFn ๐
- Lint
Recursive ๐Fn - Lint
Recursive ๐Result - Lint
Result ๐ - The outer error is for unexpected fatal runtime problems; the inner error is for the lint failing in an expected way.