adapters

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package adapters provides a registry for scanner output adapters. Each adapter converts a specific scanner's output format to CTIS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry manages registered scanner adapters.

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new adapter registry with built-in adapters.

func (*Registry) AutoDetect

func (r *Registry) AutoDetect(input []byte) (core.Adapter, bool)

AutoDetect tries to find an adapter that can convert the input.

func (*Registry) Convert

func (r *Registry) Convert(ctx context.Context, scannerType string, input []byte, opts *core.AdapterOptions) (*ctis.Report, error)

Convert uses the specified adapter (or auto-detects) to convert input to CTIS.

func (*Registry) Get

func (r *Registry) Get(name string) (core.Adapter, bool)

Get returns an adapter by name.

func (*Registry) List

func (r *Registry) List() []string

List returns all registered adapter names.

func (*Registry) Register

func (r *Registry) Register(adapter core.Adapter)

Register adds an adapter to the registry.

Directories

Path Synopsis
Package gitleaks provides an adapter to convert Gitleaks JSON output to CTIS.
Package gitleaks provides an adapter to convert Gitleaks JSON output to CTIS.
Package nuclei provides an adapter to convert Nuclei JSONL output to CTIS.
Package nuclei provides an adapter to convert Nuclei JSONL output to CTIS.
Package sarif provides an adapter to convert SARIF format to CTIS.
Package sarif provides an adapter to convert SARIF format to CTIS.
Package semgrep provides an adapter to convert Semgrep JSON output to CTIS.
Package semgrep provides an adapter to convert Semgrep JSON output to CTIS.
Package trivy provides an adapter to convert Trivy JSON output to CTIS.
Package trivy provides an adapter to convert Trivy JSON output to CTIS.
Package vuls provides an adapter to convert Vuls JSON output to CTIS.
Package vuls provides an adapter to convert Vuls JSON output to CTIS.

Jump to

Keyboard shortcuts

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