docker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package docker provides Docker-related analysis capabilities.

Package docker provides Docker-related analysis capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCommand

type DockerCommand struct {
	Instruction string
	Arguments   string
	Line        int
}

DockerCommand represents a command in a Dockerfile.

type DockerfileAnalyzer

type DockerfileAnalyzer struct{}

DockerfileAnalyzer analyzes Dockerfiles for container compatibility issues.

func NewDockerfileAnalyzer

func NewDockerfileAnalyzer() *DockerfileAnalyzer

NewDockerfileAnalyzer creates a new Dockerfile analyzer.

func (*DockerfileAnalyzer) Analyze

func (a *DockerfileAnalyzer) Analyze(dockerfilePath string) ([]rules.Finding, error)

Analyze analyzes a Dockerfile for compatibility issues.

type ImageInfo

type ImageInfo struct {
	ID           string   `json:"Id"`
	RepoTags     []string `json:"RepoTags"`
	Architecture string   `json:"Architecture"`
	OS           string   `json:"Os"`
	Config       struct {
		Env        []string `json:"Env"`
		Entrypoint []string `json:"Entrypoint"`
		Cmd        []string `json:"Cmd"`
		WorkingDir string   `json:"WorkingDir"`
	} `json:"Config"`
	RootFS struct {
		Type   string   `json:"Type"`
		Layers []string `json:"Layers"`
	} `json:"RootFS"`
}

ImageInfo contains information about a Docker image.

type ImageInspector

type ImageInspector struct{}

ImageInspector inspects Docker images for compatibility issues.

func NewImageInspector

func NewImageInspector() *ImageInspector

NewImageInspector creates a new Docker image inspector.

func (*ImageInspector) Analyze

func (i *ImageInspector) Analyze(imageName string) ([]rules.Finding, error)

Analyze analyzes a Docker image for compatibility issues.

type LddOutput

type LddOutput struct {
	Library    string
	Address    string
	NotFound   bool
	StaticLink bool
}

LddOutput represents the output of ldd command.

type Stage

type Stage struct {
	Name      string
	BaseImage string
	Line      int
	Commands  []DockerCommand
}

Stage represents a stage in a multi-stage Dockerfile.

Jump to

Keyboard shortcuts

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