imageworkflow

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineSource added in v0.21.0

func DetermineSource() workflow.Step

func GetAnnotations

func GetAnnotations() workflow.Step

func GetAttestationManifests added in v0.20.0

func GetAttestationManifests() workflow.Step

func GetDockerHubRepository

func GetDockerHubRepository() workflow.Step

func GetDockerHubRepositoryOwner

func GetDockerHubRepositoryOwner() workflow.Step

func GetDockerHubVulnerabilities

func GetDockerHubVulnerabilities() workflow.Step

func GetGitHubAdvisoriesForRepository

func GetGitHubAdvisoriesForRepository() workflow.Step

func GetGitHubDescription

func GetGitHubDescription() workflow.Step

func GetGitHubRelease

func GetGitHubRelease() workflow.Step

func GetGitHubRepsitory

func GetGitHubRepsitory() workflow.Step

func GetGitLabDescription

func GetGitLabDescription() workflow.Step

func GetGitLabRepositoryREADME

func GetGitLabRepositoryREADME() workflow.Step

func GetGithubPackage

func GetGithubPackage() workflow.Step

func GetGithubPackageREADME

func GetGithubPackageREADME() workflow.Step

func GetLatestReference

func GetLatestReference() workflow.Step

func GetManifest added in v0.16.0

func GetManifest() workflow.Step

func GetOpenSSFScorecard added in v0.18.0

func GetOpenSSFScorecard() workflow.Step

func GetProvenanceAttestations added in v0.20.0

func GetProvenanceAttestations() workflow.Step

func GetQuayVulnerabilities

func GetQuayVulnerabilities() workflow.Step

func GetSBOMAttestations added in v0.20.0

func GetSBOMAttestations() workflow.Step

func New

func New(httpClient httputil.Requester, data *Data) workflow.Workflow

func ScanSBOM added in v0.20.0

func ScanSBOM() workflow.Step

func SetupRegistryClient

func SetupRegistryClient() workflow.Step

Types

type Data

type Data struct {
	sync.Mutex
	ImageReference  oci.Reference
	Created         *time.Time
	Image           string
	LatestReference *oci.Reference
	LatestCreated   *time.Time
	Tags            []string
	Description     string
	FullDescription Result[*models.ImageDescription]
	ReleaseNotes    Result[*models.ImageReleaseNotes]
	Links           []models.ImageLink
	Vulnerabilities []models.ImageVulnerability
	Graph           models.Graph
	Scorecard       Result[*models.ImageScorecard]
	Provenance      Result[*models.ImageProvenance]
	SBOM            Result[*models.ImageSBOM]
	RegistryAuth    *httputil.AuthMux
}
func (d *Data) InsertLink(link models.ImageLink)
func (d *Data) InsertLinks(links []models.ImageLink)

func (*Data) InsertTag

func (d *Data) InsertTag(tag string)

func (*Data) InsertVulnerabilities

func (d *Data) InsertVulnerabilities(vulnerabilities []models.ImageVulnerability)

func (*Data) InsertVulnerability

func (d *Data) InsertVulnerability(vulnerability models.ImageVulnerability)

type Result added in v0.20.0

type Result[T any] struct {
	OK    bool
	Value T
}

Result is a simple type useful to note values that may be empty both when successful and unsuccessful. The zero value of a result is an unsuccessful result.

Jump to

Keyboard shortcuts

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