v1alpha1

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const APIVersion string = "v1alpha1"

Variables

This section is empty.

Functions

func ConvertV1alpha1UpdateManifestToUnversionedUpdateManifest

func ConvertV1alpha1UpdateManifestToUnversionedUpdateManifest(scannerOutput []byte) (*unversioned.UpdateManifest, error)

Types

type Config

type Config struct {
	Arch string `json:"arch"`
}

type Metadata

type Metadata struct {
	OS     OS     `json:"os"`
	Config Config `json:"config"`
}

type OS

type OS struct {
	Type    string `json:"type"`
	Version string `json:"version"`
}

type UpdateManifest

type UpdateManifest struct {
	APIVersion string         `json:"apiVersion"`
	Metadata   Metadata       `json:"metadata"`
	Updates    UpdatePackages `json:"updates"`
}

type UpdatePackage

type UpdatePackage struct {
	Name             string `json:"name"`
	InstalledVersion string `json:"installedVersion"`
	FixedVersion     string `json:"fixedVersion"`
	VulnerabilityID  string `json:"vulnerabilityID"`
}

type UpdatePackages

type UpdatePackages []UpdatePackage

Jump to

Keyboard shortcuts

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