storage

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStorage

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

MemoryStorage is scans' results representation

func NewMemoryStorage

func NewMemoryStorage() *MemoryStorage

NewMemoryStorage creates a new MemoryStorage empty and returns it

func (*MemoryStorage) GetFiles

GetFiles returns a collection of files saved on MemoryStorage

func (*MemoryStorage) GetVulnerabilities

func (m *MemoryStorage) GetVulnerabilities(_ context.Context, _ string) ([]model.Vulnerability, error)

GetVulnerabilities returns a collection of vulnerabilities saved on MemoryStorage

func (*MemoryStorage) SaveFile

func (m *MemoryStorage) SaveFile(_ context.Context, metadata *model.FileMetadata) error

SaveFile adds a new file metadata to files collection

func (*MemoryStorage) SaveVulnerabilities

func (m *MemoryStorage) SaveVulnerabilities(_ context.Context, vulnerabilities []model.Vulnerability) error

SaveVulnerabilities adds a list of vulnerabilities to vulnerabilities collection

Jump to

Keyboard shortcuts

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