Documentation
¶
Overview ¶
Package dockerfileextractor provides an extractor for Dockerfile files. It parses Dockerfile instructions line-by-line and produces nodes and edges representing images, stages, ports, and environment variables.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerfileExtractor ¶
type DockerfileExtractor struct{}
DockerfileExtractor extracts nodes and edges from Dockerfiles.
func NewDockerfileExtractor ¶
func NewDockerfileExtractor() *DockerfileExtractor
NewDockerfileExtractor creates a new DockerfileExtractor instance.
func (*DockerfileExtractor) CanHandle ¶
func (e *DockerfileExtractor) CanHandle(path string) bool
CanHandle returns true for files named Dockerfile, Dockerfile.*, or *.dockerfile.
func (*DockerfileExtractor) Extract ¶
func (e *DockerfileExtractor) Extract(ctx context.Context, opts types.ExtractOptions) (*types.ExtractResult, error)
Extract parses Dockerfile instructions and produces nodes and edges.
func (*DockerfileExtractor) Name ¶
func (e *DockerfileExtractor) Name() string
Name returns the identifier for this extractor.
Click to show internal directories.
Click to hide internal directories.