job

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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"`
}

func (*ScanJob) ID

func (s *ScanJob) ID() string

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

Jump to

Keyboard shortcuts

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