Documentation
¶
Overview ¶
Package models holds all models defined in the Cupdate API specification.
Index ¶
- type EventType
- type Graph
- type GraphNode
- type Image
- type ImageDescription
- type ImageEvent
- type ImageLink
- type ImagePage
- type ImagePageSummary
- type ImageProvenance
- type ImageReleaseNotes
- type ImageSBOM
- type ImageScorecard
- type ImageScorecardRisk
- type ImageVulnerability
- type JobRun
- type JobRunResult
- type PaginationMetadata
- type ProvenanceBuildInfo
- type RawImage
- type SBOM
- type StepRun
- type StepRunResult
- type WorkflowRun
- type WorkflowRunResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
Reference string `json:"reference"`
Created *time.Time `json:"created,omitempty"`
LatestReference string `json:"latestReference,omitempty"`
LatestCreated *time.Time `json:"latestCreated,omitempty"`
VersionDiffSortable uint64 `json:"-"`
Description string `json:"description,omitempty"`
Tags []string `json:"tags"`
Links []ImageLink `json:"links"`
Vulnerabilities int `json:"vulnerabilities"`
LastModified time.Time `json:"lastModified"`
Image string `json:"image,omitempty"`
}
type ImageDescription ¶
type ImageEvent ¶
type ImagePage ¶
type ImagePage struct {
Images []Image `json:"images"`
Summary ImagePageSummary `json:"summary"`
Pagination PaginationMetadata `json:"pagination"`
}
type ImagePageSummary ¶
type ImageProvenance ¶ added in v0.20.0
type ImageProvenance struct {
BuildInfo []ProvenanceBuildInfo `json:"buildInfo"`
}
type ImageReleaseNotes ¶
type ImageScorecard ¶ added in v0.18.0
type ImageScorecard struct {
ReportURL string `json:"reportUrl"`
Score float32 `json:"score"`
Risk ImageScorecardRisk `json:"risk"`
GenerateAt time.Time `json:"generatedAt"`
}
type ImageScorecardRisk ¶ added in v0.18.0
type ImageScorecardRisk string
const ( ImageScorecardRiskCritical ImageScorecardRisk = "critical" ImageScorecardRiskHigh ImageScorecardRisk = "high" ImageScorecardRiskMedium ImageScorecardRisk = "medium" ImageScorecardRiskLow ImageScorecardRisk = "low" )
type ImageVulnerability ¶
type ImageVulnerability = osv.Vulnerability
type JobRun ¶ added in v0.17.0
type JobRun struct {
Result JobRunResult `json:"result"`
Steps []StepRun `json:"steps"`
DependsOn []string `json:"dependsOn"`
JobID string `json:"jobId,omitempty"`
JobName string `json:"jobName,omitempty"`
Started time.Time `json:"started,omitempty"`
DurationSeconds float64 `json:"duration,omitempty"`
}
type JobRunResult ¶ added in v0.17.0
type JobRunResult string
const ( JobRunResultSucceeded JobRunResult = "succeeded" JobRunResultSkipped JobRunResult = "skipped" JobRunResultFailed JobRunResult = "failed" )
type PaginationMetadata ¶
type ProvenanceBuildInfo ¶ added in v0.20.0
type ProvenanceBuildInfo struct {
ImageDigest string `json:"imageDigest"`
Architecture string `json:"architecture,omitempty"`
ArchitectureVariant string `json:"architectureVariant,omitempty"`
OperatingSystem string `json:"operatingSystem,omitempty"`
Source string `json:"source,omitempty"`
SourceRevision string `json:"sourceRevision,omitempty"`
BuildStartedOn time.Time `json:"buildStartedOn,omitempty"`
BuildFinishedOn time.Time `json:"buildFinishedOn,omitempty"`
Dockerfile string `json:"dockerfile,omitempty"`
BuildArguments map[string]string `json:"buildArguments,omitempty"`
}
type StepRunResult ¶ added in v0.17.0
type StepRunResult string
const ( StepRunResultSucceeded StepRunResult = "succeeded" StepRunResultSkipped StepRunResult = "skipped" StepRunResultFailed StepRunResult = "failed" )
type WorkflowRun ¶ added in v0.17.0
type WorkflowRunResult ¶ added in v0.17.0
type WorkflowRunResult string
const ( WorkflowRunResultSucceeded WorkflowRunResult = "succeeded" WorkflowRunResultFailed WorkflowRunResult = "failed" )
Click to show internal directories.
Click to hide internal directories.