Documentation
¶
Index ¶
- type DataSync
- func NewInspectorOCSFSyncer(ctx context.Context, inspectorClient *inspector2.Client, ...) DataSync
- func NewSnykOCSFSyncer(ctx context.Context, snykClient *snyk.Client, datastore datastore.Datastore) (DataSync, error)
- func NewTenableOCSFSyncer(ctx context.Context, tenableClient *tenable.Client, ...) (DataSync, error)
- type InspectorOCSFSyncer
- type SnykOCSFSyncer
- type TenableOCSFSyncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSync ¶
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.
type InspectorOCSFSyncer ¶
type InspectorOCSFSyncer struct {
// contains filtered or unexported fields
}
func (*InspectorOCSFSyncer) Sync ¶
func (s *InspectorOCSFSyncer) Sync(ctx context.Context) error
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 ¶
func (s *TenableOCSFSyncer) ToOCSF(ctx context.Context, finding tenable.Finding, existingFinding *ocsf.VulnerabilityFinding) (ocsf.VulnerabilityFinding, error)
ToOCSF converts a Tenable finding into an OCSF vulnerability finding