Documentation
¶
Overview ¶
Package adapters provides a registry for scanner output adapters. Each adapter converts a specific scanner's output format to CTIS.
Index ¶
- type Registry
- func (r *Registry) AutoDetect(input []byte) (core.Adapter, bool)
- func (r *Registry) Convert(ctx context.Context, scannerType string, input []byte, ...) (*ctis.Report, error)
- func (r *Registry) Get(name string) (core.Adapter, bool)
- func (r *Registry) List() []string
- func (r *Registry) Register(adapter core.Adapter)
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 ¶
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.
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. |
Click to show internal directories.
Click to hide internal directories.