dockerfileextractor

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2026 License: MIT Imports: 7 Imported by: 0

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

Extract parses Dockerfile instructions and produces nodes and edges.

func (*DockerfileExtractor) Name

func (e *DockerfileExtractor) Name() string

Name returns the identifier for this extractor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL