Documentation
¶
Index ¶
- func GetCVESummaryK8sResourceName(ctx context.Context) (string, error)
- func GetCVESummaryK8sResourceNamespace(ctx context.Context) (string, error)
- type APIServerStore
- func (a *APIServerStore) GetApplicationProfile(ctx context.Context, namespace string, name string) (v1beta1.ApplicationProfile, error)
- func (a *APIServerStore) GetCVE(ctx context.Context, ...) (domain.CVEManifest, error)
- func (a *APIServerStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
- func (a *APIServerStore) GetSBOM(ctx context.Context, name, SBOMCreatorVersion string) (domain.SBOM, error)
- func (a *APIServerStore) StoreCVE(ctx context.Context, cve domain.CVEManifest, withRelevancy bool) error
- func (a *APIServerStore) StoreCVESummary(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, ...) error
- func (a *APIServerStore) StoreSBOM(ctx context.Context, sbom domain.SBOM) error
- func (a *APIServerStore) StoreVEX(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, ...) error
- type BrokenStore
- func (b BrokenStore) GetApplicationProfile(ctx context.Context, _ string, _ string) (v1beta1.ApplicationProfile, error)
- func (b BrokenStore) GetCVE(ctx context.Context, _ string, _ string, _ string, _ string) (domain.CVEManifest, error)
- func (b BrokenStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
- func (b BrokenStore) GetSBOM(ctx context.Context, _ string, _ string) (domain.SBOM, error)
- func (b BrokenStore) StoreCVE(ctx context.Context, _ domain.CVEManifest, _ bool) error
- func (b BrokenStore) StoreCVESummary(ctx context.Context, _ domain.CVEManifest, _ domain.CVEManifest, _ bool) error
- func (b BrokenStore) StoreSBOM(ctx context.Context, _ domain.SBOM) error
- func (b BrokenStore) StoreVEX(ctx context.Context, _ domain.CVEManifest, _ domain.CVEManifest, _ bool) error
- type MemoryStore
- func (m *MemoryStore) GetApplicationProfile(ctx context.Context, namespace string, name string) (v1beta1.ApplicationProfile, error)
- func (m *MemoryStore) GetCVE(ctx context.Context, ...) (domain.CVEManifest, error)
- func (m *MemoryStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
- func (m *MemoryStore) GetSBOM(ctx context.Context, name, SBOMCreatorVersion string) (domain.SBOM, error)
- func (m *MemoryStore) StoreApplicationProfile(ctx context.Context, ap v1beta1.ApplicationProfile) error
- func (m *MemoryStore) StoreCVE(ctx context.Context, cve domain.CVEManifest, _ bool) error
- func (m *MemoryStore) StoreCVESummary(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, ...) error
- func (m *MemoryStore) StoreSBOM(ctx context.Context, sbom domain.SBOM) error
- func (m *MemoryStore) StoreVEX(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCVESummaryK8sResourceName ¶ added in v0.2.109
Types ¶
type APIServerStore ¶ added in v0.2.99
type APIServerStore struct { StorageClient spdxv1beta1.SpdxV1beta1Interface Namespace string }
APIServerStore implements both CVERepository and SBOMRepository with in-cluster storage (apiserver) to be used for production
func NewAPIServerStorage ¶ added in v0.2.99
func NewAPIServerStorage(namespace string) (*APIServerStore, error)
NewAPIServerStorage initializes the APIServerStore struct
func NewFakeAPIServerStorage ¶ added in v0.2.99
func NewFakeAPIServerStorage(namespace string) *APIServerStore
func (*APIServerStore) GetApplicationProfile ¶ added in v0.3.48
func (a *APIServerStore) GetApplicationProfile(ctx context.Context, namespace string, name string) (v1beta1.ApplicationProfile, error)
func (*APIServerStore) GetCVE ¶ added in v0.2.99
func (a *APIServerStore) GetCVE(ctx context.Context, name, SBOMCreatorVersion, CVEScannerVersion, CVEDBVersion string) (domain.CVEManifest, error)
func (*APIServerStore) GetCVESummary ¶ added in v0.3.0
func (a *APIServerStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
func (*APIServerStore) StoreCVE ¶ added in v0.2.99
func (a *APIServerStore) StoreCVE(ctx context.Context, cve domain.CVEManifest, withRelevancy bool) error
func (*APIServerStore) StoreCVESummary ¶ added in v0.2.110
func (a *APIServerStore) StoreCVESummary(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, withRelevancy bool) error
func (*APIServerStore) StoreVEX ¶ added in v0.3.0
func (a *APIServerStore) StoreVEX(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, withRelevancy bool) error
type BrokenStore ¶ added in v0.2.99
type BrokenStore struct{}
func NewBrokenStorage ¶ added in v0.2.99
func NewBrokenStorage() *BrokenStore
func (BrokenStore) GetApplicationProfile ¶ added in v0.3.48
func (b BrokenStore) GetApplicationProfile(ctx context.Context, _ string, _ string) (v1beta1.ApplicationProfile, error)
func (BrokenStore) GetCVE ¶ added in v0.2.99
func (b BrokenStore) GetCVE(ctx context.Context, _ string, _ string, _ string, _ string) (domain.CVEManifest, error)
func (BrokenStore) GetCVESummary ¶ added in v0.3.0
func (b BrokenStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
func (BrokenStore) StoreCVE ¶ added in v0.2.99
func (b BrokenStore) StoreCVE(ctx context.Context, _ domain.CVEManifest, _ bool) error
func (BrokenStore) StoreCVESummary ¶ added in v0.2.110
func (b BrokenStore) StoreCVESummary(ctx context.Context, _ domain.CVEManifest, _ domain.CVEManifest, _ bool) error
func (BrokenStore) StoreVEX ¶ added in v0.3.0
func (b BrokenStore) StoreVEX(ctx context.Context, _ domain.CVEManifest, _ domain.CVEManifest, _ bool) error
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore implements both CVERepository and SBOMRepository with in-memory storage (maps) to be used for tests
func NewMemoryStorage ¶
func NewMemoryStorage(getError, storeError bool) *MemoryStore
NewMemoryStorage initializes the MemoryStore struct and its maps
func (*MemoryStore) GetApplicationProfile ¶ added in v0.3.48
func (m *MemoryStore) GetApplicationProfile(ctx context.Context, namespace string, name string) (v1beta1.ApplicationProfile, error)
func (*MemoryStore) GetCVE ¶
func (m *MemoryStore) GetCVE(ctx context.Context, name, SBOMCreatorVersion, CVEScannerVersion, CVEDBVersion string) (domain.CVEManifest, error)
GetCVE returns a CVE manifest from an in-memory map
func (*MemoryStore) GetCVESummary ¶ added in v0.3.0
func (m *MemoryStore) GetCVESummary(ctx context.Context) (*v1beta1.VulnerabilityManifestSummary, error)
GetCVE returns a CVE manifest from an in-memory map
func (*MemoryStore) GetSBOM ¶
func (m *MemoryStore) GetSBOM(ctx context.Context, name, SBOMCreatorVersion string) (domain.SBOM, error)
GetSBOM returns a SBOM from an in-memory map
func (*MemoryStore) StoreApplicationProfile ¶ added in v0.3.48
func (m *MemoryStore) StoreApplicationProfile(ctx context.Context, ap v1beta1.ApplicationProfile) error
func (*MemoryStore) StoreCVE ¶
func (m *MemoryStore) StoreCVE(ctx context.Context, cve domain.CVEManifest, _ bool) error
StoreCVE stores a CVE manifest to an in-memory map
func (*MemoryStore) StoreCVESummary ¶ added in v0.2.110
func (m *MemoryStore) StoreCVESummary(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, withRelevancy bool) error
StoreCVE stores a CVE Summary to an in-memory map
func (*MemoryStore) StoreVEX ¶ added in v0.3.0
func (m *MemoryStore) StoreVEX(ctx context.Context, cve domain.CVEManifest, cvep domain.CVEManifest, withRelevancy bool) error
StoreVEX stores a VEX to an in-memory map