syncers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSync

type DataSync interface {
	Sync(ctx context.Context) error
}

func NewInspectorOCSFSyncer

func NewInspectorOCSFSyncer(ctx context.Context, inspectorClient *inspector2.Client, datastore datastore.Datastore) DataSync

NewInspectorOCSFSyncer creates a new InspectorOCSFSyncer It initializes the Inspector client and datastore.

func NewSnykOCSFSyncer

func NewSnykOCSFSyncer(ctx context.Context, snykClient *snyk.Client, datastore datastore.Datastore) (DataSync, error)

NewSnykOCSFSyncer creates a new SnykOCSFSyncer It initializes the Snyk client and datastore, and fetches the organization details.

func NewTenableOCSFSyncer

func NewTenableOCSFSyncer(ctx context.Context, tenableClient *tenable.Client, datastore datastore.Datastore) (DataSync, error)

NewTenableOCSFSyncer creates a new TenableOCSFSyncer

type InspectorOCSFSyncer

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

func (*InspectorOCSFSyncer) Sync

Sync synchronizes Inspector data with the OCSF datastore It fetches all findings from Inspector, builds OCSF findings, and saves them to the datastore.

func (*InspectorOCSFSyncer) ToOCSF

func (s *InspectorOCSFSyncer) ToOCSF(ctx context.Context, inspectorFinding types.Finding, existingFinding *ocsf.VulnerabilityFinding) (ocsf.VulnerabilityFinding, error)

ToOCSF converts a Inspector finding into an OCSF vulnerability finding.

type SnykOCSFSyncer

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

func (*SnykOCSFSyncer) Sync

func (s *SnykOCSFSyncer) Sync(ctx context.Context) error

Sync synchronizes Snyk data with the OCSF datastore It fetches all issues from Snyk, builds OCSF findings, and saves them to the datastore.

func (*SnykOCSFSyncer) ToOCSF

func (s *SnykOCSFSyncer) ToOCSF(ctx context.Context, issue snyk.Issue, project *snyk.Project, existingFinding *ocsf.VulnerabilityFinding) (ocsf.VulnerabilityFinding, error)

ToOCSF converts a Snyk issue into an OCSF vulnerability finding.

type TenableOCSFSyncer

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

TenableOCSFSyncer is responsible for syncing Tenable vulnerability findings to OCSF format

func (*TenableOCSFSyncer) Sync

func (s *TenableOCSFSyncer) Sync(ctx context.Context) error

Sync synchronizes Tenable data with the OCSF datastore

func (*TenableOCSFSyncer) ToOCSF

ToOCSF converts a Tenable finding into an OCSF vulnerability finding

Jump to

Keyboard shortcuts

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