clair

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "clair"

Variables

This section is empty.

Functions

func Convert

func Convert(ctx context.Context, c *gabs.Container) ([]*data.Vulnerability, error)

Convert converts Clair JSON to a list of common vulnerabilities.

Types

type Converter

type Converter struct{}

Converter implements the converter.Converter interface for Clair scanner output.

func New

func New() *Converter

New creates a new Clair converter.

func (*Converter) CanHandle

func (c *Converter) CanHandle(container *gabs.Container) bool

CanHandle returns true if the JSON container is Clair output. Clair v4 output has manifest_hash and vulnerabilities at the top level.

func (*Converter) Convert

func (c *Converter) Convert(ctx context.Context, container *gabs.Container) ([]*data.Vulnerability, error)

Convert transforms Clair JSON output into normalized vulnerabilities.

func (*Converter) Name

func (c *Converter) Name() string

Name returns the converter identifier.

Jump to

Keyboard shortcuts

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