Documentation ¶
Index ¶
- Variables
- func CreateMemoryFs(files []types.File) (*memoryfs.FS, map[string]ppConsts.Platform, error)
- func MatchResultSeverity(severity string) buildsecurity.SeverityEnum
- func MatchResultType(resultType string) buildsecurity.Result_TypeEnum
- func MatchTriggeredBy(triggeredBy string) buildsecurity.TriggeredByEnum
- func Scan(ctx context.Context, opts flag.Options, cmdName, path string) (*trivyTypes.Report, []*buildsecurity.Pipeline, error)
- func ScanPipelines(ctx context.Context, repositoryPipelines []*buildsecurity.Pipeline, ...) (trivyTypes.Results, error)
- type Severities
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSeverities = Severities{"UNKNOWN", "LOW", "MEDIUM", "HIGH", "CRITICAL"}
Functions ¶
func CreateMemoryFs ¶ added in v0.61.0
This function is copied from trivy.
func MatchResultSeverity ¶
func MatchResultSeverity(severity string) buildsecurity.SeverityEnum
func MatchResultType ¶
func MatchResultType(resultType string) buildsecurity.Result_TypeEnum
func MatchTriggeredBy ¶ added in v0.24.0
func MatchTriggeredBy(triggeredBy string) buildsecurity.TriggeredByEnum
func Scan ¶
func Scan(ctx context.Context, opts flag.Options, cmdName, path string) (*trivyTypes.Report, []*buildsecurity.Pipeline, error)
func ScanPipelines ¶ added in v0.61.0
func ScanPipelines(ctx context.Context, repositoryPipelines []*buildsecurity.Pipeline, files []types.File) (trivyTypes.Results, error)
Types ¶
type Severities ¶
type Severities []string
func (Severities) Any ¶
func (s Severities) Any(checkSev string) bool
Click to show internal directories.
Click to hide internal directories.