Documentation
¶
Overview ¶
Package parser provides utilities for parsing container image references from Dockerfiles. This package enables extracting image references embedded in Dockerfile FROM directives, allowing Go code to stay synchronized with Dependabot updates automatically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAllImagesFromDockerfile ¶ added in v5.56.0
ParseAllImagesFromDockerfile extracts all container image references from FROM directives in a Dockerfile. Returns a slice of image references exactly as they appear in the FROM directives (which may be qualified or unqualified). This is useful for Dockerfiles that track multiple related images (e.g., Flux distribution controller images).
func ParseImageFromDockerfile ¶
ParseImageFromDockerfile extracts a container image reference from a Dockerfile using the provided regex pattern. This ensures Go code stays in sync with Dependabot updates automatically. Panics if the Dockerfile cannot be parsed - this catches embedding/format issues at init time.
Types ¶
This section is empty.