Documentation
¶
Index ¶
Constants ¶
View Source
const ( SeverityCritical = Severity("CRITICAL") SeverityHigh = Severity("HIGH") SeverityMedium = Severity("MEDIUM") SeverityLow = Severity("LOW") SeverityUnassigned = Severity("UNASSIGNED") )
View Source
const DependencytrackSourceName = "dependencytrack"
Variables ¶
View Source
var ( ErrNoMetrics = fmt.Errorf("no metrics found") ErrNoProject = fmt.Errorf("no project found") )
Functions ¶
This section is empty.
Types ¶
type DependencyTrackConfig ¶
type DependencyTrackConfig struct {
Url string `envconfig:"DEPENDENCYTRACK_URL"`
Username string `envconfig:"DEPENDENCYTRACK_USERNAME" default:"v13s"`
Password string `envconfig:"DEPENDENCYTRACK_PASSWORD"`
}
func (DependencyTrackConfig) GetUrl ¶
func (d DependencyTrackConfig) GetUrl() string
type Source ¶
type Source interface {
Delete(ctx context.Context, imageName string, imageTag string) error
GetVulnerabilities(ctx context.Context, imageName, imageTag string, includeSuppressed bool) ([]*Vulnerability, error)
GetVulnerabilitySummary(ctx context.Context, imageName, imageTag string) (*VulnerabilitySummary, error)
IsTaskInProgress(ctx context.Context, processToken string) (bool, error)
MaintainSuppressedVulnerabilities(ctx context.Context, suppressed []*SuppressedVulnerability) error
Name() string
ProjectExists(ctx context.Context, imageName, imageTag string) (bool, error)
UploadAttestation(ctx context.Context, imageName string, imageTag string, att []byte) (*UploadAttestationResponse, error)
}
func New ¶
func New(config SourceConfig, log logrus.FieldLogger) (Source, error)
func NewDependencytrackSource ¶
func NewDependencytrackSource(client dependencytrack.Client, log *logrus.Entry) Source
func SetupSources ¶
func SetupSources(configs []SourceConfig, log logrus.FieldLogger) ([]Source, error)
type SourceConfig ¶
type SourceConfig interface {
GetUrl() string
}
type SuppressedVulnerability ¶
type Vulnerability ¶
type VulnerabilityMetadata ¶
type VulnerabilityMetadata any
type VulnerabilitySummary ¶
Click to show internal directories.
Click to hide internal directories.