Documentation ¶
Index ¶
- type MemoryStorage
- func (m *MemoryStorage) GetFiles(_ context.Context, _ string) (model.FileMetadatas, error)
- func (m *MemoryStorage) GetScanSummary(_ context.Context, _ []string) ([]model.SeveritySummary, error)
- func (m *MemoryStorage) GetVulnerabilities(_ context.Context, _ string) ([]model.Vulnerability, error)
- func (m *MemoryStorage) SaveFile(_ context.Context, metadata *model.FileMetadata) error
- func (m *MemoryStorage) SaveVulnerabilities(_ context.Context, vulnerabilities []model.Vulnerability) error
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
}
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (*MemoryStorage) GetFiles ¶
func (m *MemoryStorage) GetFiles(_ context.Context, _ string) (model.FileMetadatas, error)
func (*MemoryStorage) GetScanSummary ¶
func (m *MemoryStorage) GetScanSummary(_ context.Context, _ []string) ([]model.SeveritySummary, error)
func (*MemoryStorage) GetVulnerabilities ¶
func (m *MemoryStorage) GetVulnerabilities(_ context.Context, _ string) ([]model.Vulnerability, error)
func (*MemoryStorage) SaveFile ¶
func (m *MemoryStorage) SaveFile(_ context.Context, metadata *model.FileMetadata) error
func (*MemoryStorage) SaveVulnerabilities ¶
func (m *MemoryStorage) SaveVulnerabilities(_ context.Context, vulnerabilities []model.Vulnerability) error
Click to show internal directories.
Click to hide internal directories.