v1

package
v0.3.79 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeNameMetadataKey          = "kubescape.io/node-name"
	ScannerMemoryLimitAnnotation = "kubescape.io/scanner-memory-limit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPSbomFailureReporter added in v0.3.79

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

HTTPSbomFailureReporter sends scan failure reports to careportreceiver via HTTP POST. Uses the same endpoint and auth as kubevuln: POST /k8s/v2/scanFailure with X-API-KEY header.

func NewHTTPSbomFailureReporter added in v0.3.79

func NewHTTPSbomFailureReporter(eventReceiverURL, accessKey, accountID, clusterName string) *HTTPSbomFailureReporter

NewHTTPSbomFailureReporter creates a reporter that POSTs to the given event receiver URL. eventReceiverURL is the base URL (e.g., "http://event-receiver-http.kubescape.svc.cluster.local:8080"). accessKey is the cluster access key for the X-API-KEY header.

func (*HTTPSbomFailureReporter) ReportSbomFailure added in v0.3.79

func (r *HTTPSbomFailureReporter) ReportSbomFailure(ctx context.Context, report scanfailure.ScanFailureReport) error

type SbomManager

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

func CreateSbomManager

func CreateSbomManager(ctx context.Context, cfg config.Config, socketPath string, storageClient storage.SbomClient, k8sObjectCache objectcache.K8sObjectCache, scannerClient sbomscanner.SBOMScannerClient, failureReporter sbommanager.SbomFailureReporter) (*SbomManager, error)

func (*SbomManager) ContainerCallback

func (s *SbomManager) ContainerCallback(notif containercollection.PubSubEvent)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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