Documentation
¶
Overview ¶
Package trivy contains API Schema definitions for the Trivy scanner
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type BackendResponse
- type CVSSScore
- type ImageConfig
- type ImageDetails
- type ImageHistory
- type ImageMetadata
- type ImageOS
- type ImageResult
- type ImageRootfs
- type ImageRuntimeConfig
- type ImageVisibility
- type Result
- type SingleReport
- type Target
- type Time
- type Version
- type Vulnerability
- type VulnerabilityDBStruct
- type VulnerabilityDataSource
- type VulnerabilityInfo
- type VulnerabilityLayer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetOpenAPIDefinitions ¶ added in v0.0.5
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type BackendResponse ¶ added in v0.0.7
type BackendResponse struct {
Report SingleReport `json:"report"`
TrivyVersion Version `json:"trivyVersion"`
ImageDetails ImageDetails `json:"image_details"`
ErrorMessage string `json:"error_message"`
}
func (*BackendResponse) DeepCopy ¶ added in v0.0.7
func (in *BackendResponse) DeepCopy() *BackendResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackendResponse.
func (*BackendResponse) DeepCopyInto ¶ added in v0.0.7
func (in *BackendResponse) DeepCopyInto(out *BackendResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CVSSScore ¶
type CVSSScore struct {
V2Vector string `json:"v2Vector,omitempty" tv:"V2Vector,omitempty"`
V3Vector string `json:"v3Vector,omitempty" tv:"V3Vector,omitempty"`
V2Score float64 `json:"v2Score,omitempty" tv:"V2Score,omitempty"`
V3Score float64 `json:"v3Score,omitempty" tv:"V3Score,omitempty"`
}
func (*CVSSScore) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CVSSScore.
func (*CVSSScore) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageConfig ¶
type ImageConfig struct {
Architecture string `json:"architecture" tv:"architecture"`
Author string `json:"author,omitempty" tv:"author,omitempty"`
Container string `json:"container,omitempty" tv:"container,omitempty"`
Created Time `json:"created" tv:"created"`
DockerVersion string `json:"dockerVersion,omitempty" tv:"docker_version,omitempty"`
History []ImageHistory `json:"history" tv:"history"`
Os string `json:"os" tv:"os"`
Rootfs ImageRootfs `json:"rootfs" tv:"rootfs"`
Config ImageRuntimeConfig `json:"config" tv:"config"`
}
func (*ImageConfig) DeepCopy ¶
func (in *ImageConfig) DeepCopy() *ImageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageConfig.
func (*ImageConfig) DeepCopyInto ¶
func (in *ImageConfig) DeepCopyInto(out *ImageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageDetails ¶ added in v0.0.8
type ImageDetails struct {
Name string `json:"name,omitempty"`
// Tag & Digest is optional field. One of these fields may not present
// +optional
Tag string `json:"tag,omitempty"`
// +optional
Digest string `json:"digest,omitempty"`
// +kubebuilder:default="Public"
Visibility ImageVisibility `json:"visibility,omitempty"`
}
func (*ImageDetails) DeepCopy ¶ added in v0.0.8
func (in *ImageDetails) DeepCopy() *ImageDetails
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageDetails.
func (*ImageDetails) DeepCopyInto ¶ added in v0.0.8
func (in *ImageDetails) DeepCopyInto(out *ImageDetails)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageHistory ¶
type ImageHistory struct {
Created Time `json:"created" tv:"created"`
CreatedBy string `json:"createdBy" tv:"created_by"`
EmptyLayer bool `json:"emptyLayer,omitempty" tv:"empty_layer,omitempty"`
Comment string `json:"comment,omitempty" tv:"comment,omitempty"`
}
func (*ImageHistory) DeepCopy ¶
func (in *ImageHistory) DeepCopy() *ImageHistory
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageHistory.
func (*ImageHistory) DeepCopyInto ¶
func (in *ImageHistory) DeepCopyInto(out *ImageHistory)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageMetadata ¶
type ImageMetadata struct {
Os ImageOS `json:"os" tv:"OS"`
ImageID string `json:"imageID" tv:"ImageID"`
DiffIDs []string `json:"diffIDs" tv:"DiffIDs"`
RepoTags []string `json:"repoTags" tv:"RepoTags"`
RepoDigests []string `json:"repoDigests" tv:"RepoDigests"`
ImageConfig ImageConfig `json:"imageConfig" tv:"ImageConfig"`
}
func (*ImageMetadata) DeepCopy ¶
func (in *ImageMetadata) DeepCopy() *ImageMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageMetadata.
func (*ImageMetadata) DeepCopyInto ¶
func (in *ImageMetadata) DeepCopyInto(out *ImageMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageOS ¶
type ImageOS struct {
Family string `json:"family" tv:"Family"`
Name string `json:"name" tv:"Name"`
}
func (*ImageOS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageOS.
func (*ImageOS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageResult ¶
type ImageResult struct {
Image string `json:"image,omitempty"`
Targets []Target `json:"targets,omitempty"`
}
func (*ImageResult) DeepCopy ¶
func (in *ImageResult) DeepCopy() *ImageResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageResult.
func (*ImageResult) DeepCopyInto ¶
func (in *ImageResult) DeepCopyInto(out *ImageResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRootfs ¶
type ImageRootfs struct {
Type string `json:"type" tv:"type"`
DiffIds []string `json:"diffIDs" tv:"diff_ids"`
}
func (*ImageRootfs) DeepCopy ¶
func (in *ImageRootfs) DeepCopy() *ImageRootfs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRootfs.
func (*ImageRootfs) DeepCopyInto ¶
func (in *ImageRootfs) DeepCopyInto(out *ImageRootfs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRuntimeConfig ¶
type ImageRuntimeConfig struct {
Cmd []string `json:"cmd" tv:"Cmd"`
Env []string `json:"env,omitempty" tv:"Env,omitempty"`
Image string `json:"image,omitempty" tv:"Image,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" tv:"Entrypoint,omitempty"`
Labels map[string]string `json:"labels,omitempty" tv:"Labels,omitempty"`
ArgsEscaped bool `json:"argsEscaped,omitempty" tv:"ArgsEscaped,omitempty"`
StopSignal string `json:"stopSignal,omitempty" tv:"StopSignal,omitempty"`
}
func (*ImageRuntimeConfig) DeepCopy ¶
func (in *ImageRuntimeConfig) DeepCopy() *ImageRuntimeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRuntimeConfig.
func (*ImageRuntimeConfig) DeepCopyInto ¶
func (in *ImageRuntimeConfig) DeepCopyInto(out *ImageRuntimeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageVisibility ¶ added in v0.0.7
type ImageVisibility string
+kubebuilder:validation:Enum=Public;Private;Unknown
const ( ImageVisibilityPublic ImageVisibility = "Public" ImageVisibilityPrivate ImageVisibility = "Private" ImageVisibilityUnknown ImageVisibility = "Unknown" )
type Result ¶
type Result struct {
Target string `json:"target" tv:"Target"`
Class string `json:"class" tv:"Class"`
Type string `json:"type" tv:"Type"`
Vulnerabilities []Vulnerability `json:"vulnerabilities,omitempty" tv:"Vulnerabilities,omitempty"`
}
func (*Result) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Result.
func (*Result) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SingleReport ¶
type SingleReport struct {
SchemaVersion int `json:"schemaVersion" tv:"SchemaVersion"`
ArtifactName string `json:"artifactName" tv:"ArtifactName"`
ArtifactType string `json:"artifactType" tv:"ArtifactType"`
Metadata ImageMetadata `json:"metadata" tv:"Metadata"`
Results []Result `json:"results" tv:"Results"`
}
func (*SingleReport) DeepCopy ¶
func (in *SingleReport) DeepCopy() *SingleReport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleReport.
func (*SingleReport) DeepCopyInto ¶
func (in *SingleReport) DeepCopyInto(out *SingleReport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Target ¶
type Target struct {
Layer *VulnerabilityLayer `json:"layer,omitempty"`
InstalledVersion string `json:"installedVersion,omitempty"`
Target string `json:"target"`
Class string `json:"class"`
Type string `json:"type"`
}
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Time ¶
func (*Time) DeepCopyInto ¶
DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
func (Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
type Version ¶
type Version struct {
Version string `json:"version" tv:"Version"`
VulnerabilityDB VulnerabilityDBStruct `json:"vulnerabilityDB" tv:"VulnerabilityDB"`
}
func (*Version) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Version.
func (*Version) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Vulnerability ¶
type Vulnerability struct {
VulnerabilityID string `json:"vulnerabilityID" tv:"VulnerabilityID"`
PkgName string `json:"pkgName" tv:"PkgName"`
PkgID string `json:"pkgID,omitempty" tv:"PkgID,omitempty"`
InstalledVersion string `json:"-" tv:"InstalledVersion"`
Layer VulnerabilityLayer `json:"-" tv:"Layer"`
SeveritySource string `json:"severitySource" tv:"SeveritySource"`
PrimaryURL string `json:"primaryURL" tv:"PrimaryURL"`
DataSource VulnerabilityDataSource `json:"dataSource" tv:"DataSource"`
Title string `json:"title,omitempty" tv:"Title,omitempty"`
Description string `json:"description" tv:"Description"`
Severity string `json:"severity" tv:"Severity"`
CweIDs []string `json:"cweIDs,omitempty" tv:"CweIDs,omitempty"`
Cvss map[string]CVSSScore `json:"cvss,omitempty" tv:"CVSS,omitempty"`
References []string `json:"references" tv:"References"`
PublishedDate *Time `json:"publishedDate,omitempty" tv:"PublishedDate,omitempty"`
LastModifiedDate *Time `json:"lastModifiedDate,omitempty" tv:"LastModifiedDate,omitempty"`
FixedVersion string `json:"fixedVersion,omitempty" tv:"FixedVersion,omitempty"`
}
func (*Vulnerability) DeepCopy ¶
func (in *Vulnerability) DeepCopy() *Vulnerability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vulnerability.
func (*Vulnerability) DeepCopyInto ¶
func (in *Vulnerability) DeepCopyInto(out *Vulnerability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VulnerabilityDBStruct ¶
type VulnerabilityDBStruct struct {
UpdatedAt Time `json:"updatedAt" tv:"UpdatedAt"`
}
func (*VulnerabilityDBStruct) DeepCopy ¶
func (in *VulnerabilityDBStruct) DeepCopy() *VulnerabilityDBStruct
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityDBStruct.
func (*VulnerabilityDBStruct) DeepCopyInto ¶
func (in *VulnerabilityDBStruct) DeepCopyInto(out *VulnerabilityDBStruct)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VulnerabilityDataSource ¶
type VulnerabilityDataSource struct {
ID string `json:"ID"`
Name string `json:"Name"`
URL string `json:"URL"`
}
func (*VulnerabilityDataSource) DeepCopy ¶
func (in *VulnerabilityDataSource) DeepCopy() *VulnerabilityDataSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityDataSource.
func (*VulnerabilityDataSource) DeepCopyInto ¶
func (in *VulnerabilityDataSource) DeepCopyInto(out *VulnerabilityDataSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VulnerabilityInfo ¶ added in v0.0.5
type VulnerabilityInfo struct {
VulnerabilityID string `json:"vulnerabilityID"`
Title string `json:"title,omitempty"`
Severity string `json:"severity"`
PrimaryURL string `json:"primaryURL"`
Occurrence int `json:"occurrence"`
// +optional
Results []ImageResult `json:"results,omitempty" tv:"-"`
R map[string]ImageResult `json:"-" tv:"-"`
}
func (*VulnerabilityInfo) DeepCopy ¶ added in v0.0.5
func (in *VulnerabilityInfo) DeepCopy() *VulnerabilityInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityInfo.
func (*VulnerabilityInfo) DeepCopyInto ¶ added in v0.0.5
func (in *VulnerabilityInfo) DeepCopyInto(out *VulnerabilityInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VulnerabilityLayer ¶
type VulnerabilityLayer struct {
Digest string `json:"digest,omitempty" tv:"Digest,omitempty"`
DiffID string `json:"diffID" tv:"DiffID"`
}
func (*VulnerabilityLayer) DeepCopy ¶
func (in *VulnerabilityLayer) DeepCopy() *VulnerabilityLayer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VulnerabilityLayer.
func (*VulnerabilityLayer) DeepCopyInto ¶
func (in *VulnerabilityLayer) DeepCopyInto(out *VulnerabilityLayer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.