Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanJob ¶
type ScanJob struct { Key ScanJobKey `json:"key"` // Must be unique Status ScanJobStatus `json:"status"` Error string `json:"error"` Report harbor.ScanReport `json:"report"` }
type ScanJobKey ¶ added in v0.31.0
type ScanJobKey struct { ID string `json:"id"` MIMEType api.MIMEType `json:"mime_type"` MediaType api.MediaType `json:"media_type"` // it can be empty }
ScanJobKey uniquely identifies a scan job. If MIMEType indicates SBOM, MediaType is not empty.
func (*ScanJobKey) String ¶ added in v0.31.0
func (s *ScanJobKey) String() string
type ScanJobStatus ¶
type ScanJobStatus int
const ( Queued ScanJobStatus = iota Pending Finished Failed )
func (ScanJobStatus) String ¶
func (s ScanJobStatus) String() string
Click to show internal directories.
Click to hide internal directories.