scc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SCCClient

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

type SCCServiceClient

type SCCServiceClient interface {
	// contains filtered or unexported methods
}

func NewSCCClient

func NewSCCClient(ctx context.Context, credentialPath string, l logging.Logger) (SCCServiceClient, error)

type SccAsset added in v0.14.0

type SccAsset struct {
	Type               string `json:"type,omitempty"`
	Service            string `json:"service,omitempty"`
	Location           string `json:"location,omitempty"`
	FullName           string `json:"full_name,omitempty"`
	DisplayName        string `json:"display_name,omitempty"`
	ParentDisplayName  string `json:"parent_display_name,omitempty"`
	ProjectDisplayName string `json:"project_display_name,omitempty"`
	Organization       string `json:"organization,omitempty"`
}

type SccFinding added in v0.11.0

type SccFinding struct {
	Asset         *SccAsset                `json:"asset"`
	Finding       *sccv2pb.Finding         `json:"finding"`
	SccDetailURL  string                   `json:"scc_detail_url"`
	Vulnerability *vulnmodel.Vulnerability `json:"vulnerability,omitempty"`
	RiskenTriage  *triage.RiskenTriage     `json:"risken_triage,omitempty"`
}

type SqsHandler

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

func NewSqsHandler

func NewSqsHandler(
	fc finding.FindingServiceClient,
	ac alert.AlertServiceClient,
	gc google.GoogleServiceClient,
	sccc SCCServiceClient,
	vc *vuln.Client,
	includeLowSeverity bool,
	reduceScoreFindingClass []string,
	l logging.Logger,
) *SqsHandler

func (*SqsHandler) GetVulnerability added in v0.14.0

func (s *SqsHandler) GetVulnerability(ctx context.Context, cveID string) (*model.Vulnerability, error)

func (*SqsHandler) HandleMessage

func (s *SqsHandler) HandleMessage(ctx context.Context, sqsMsg *types.Message) error

Jump to

Keyboard shortcuts

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