aa

package
v0.0.0-...-48dbf4f Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Occurrence

type Occurrence struct {
	Name          string `json:"name"`
	ResourceUri   string `json:"resourceUri"`
	Project       string `json:"project"`
	Registry      string `json:"registry"`
	CreationTime  string `json:"createTime"`
	Vulnerability struct {
		Severity     string  `json:"severity"`
		CvssScore    float64 `json:"cvssScore"`
		PackageIssue []struct {
			AffectedPackage string `json:"affectedPackage"`
			AffectedVersion struct {
				Name string `json:"name"`
			} `json:"affectedVersion"`
			FixedPackage      string `json:"fixedPackage"`
			PackageType       string `json:"packageType"`
			EffectiveSeverity string `json:"effectiveSeverity"`
		} `json:"packageIssue"`
		ShortDescription string `json:"shortDescription"`
	} `json:"vulnerability"`
}

Occurrence is the payload of a vulnerability occurrence.

func GetOccurrence

func GetOccurrence(ctx context.Context, name string) (*Occurrence, error)

GetOccurrence gets an occurrence by name.

type VulnerabilityMessage

type VulnerabilityMessage struct {
	Name string `json:"name"`
	Kind string `json:"kind"`
}

VulnerabilityMessage is the payload of a vulnerability message.

Jump to

Keyboard shortcuts

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