Documentation
¶
Index ¶
- Constants
- type BaseImage
- type BaseImageMatch
- type BaseImageRepository
- type Cvss
- type Cwe
- type Descriptor
- type Distro
- type Epss
- type FileSystemSource
- type ImageSource
- type InstructionSourceMap
- type Location
- type Package
- type Platform
- type Provenance
- type ProvenanceBaseImage
- type RetryableExecutionError
- type SBOM
- type Secret
- type SecretFinding
- type SecretSource
- type Source
- type SourceMap
- type Stream
- type VCS
- type VulnerabilitiesByPurl
- type VulnerabilitiesByPurls
- type Vulnerability
- type VulnerabilityReport
Constants ¶
View Source
const ( BuildKitMaxMode = "buildkit_max_mode" BuildKitMinMode = "buildkit_min_mode" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseImage ¶
type BaseImage struct { CreatedAt string `graphql:"createdAt" json:"created_at,omitempty"` Digest string `graphql:"digest" json:"digest,omitempty"` Repository BaseImageRepository `graphql:"repository" json:"repository"` Tags []struct { Current bool `graphql:"current" json:"current"` Name string `graphql:"name" json:"name,omitempty"` Supported bool `graphql:"supported" json:"supported"` } `graphql:"tags" json:"tags,omitempty"` DockerFile struct { Commit struct { Repository struct { Org string `graphql:"orgName" json:"org,omitempty"` Repo string `graphql:"repoName" json:"repo,omitempty"` } `graphql:"repository" json:"repository,omitempty"` Sha string `graphql:"sha" json:"sha,omitempty"` } `json:"commit,omitempty"` Path string `graphql:"path" json:"path,omitempty"` } `graphql:"dockerFile" json:"docker_file,omitempty"` PackageCount int `graphql:"packageCount" json:"package_count,omitempty"` VulnerabilityReport *VulnerabilityReport `graphql:"vulnerabilityReport" json:"vulnerability_report"` Platform struct { Arch string `graphql:"architecture"` OS string `graphql:"os"` Variant string `graphql:"variant"` } `graphql:"platform"` }
type BaseImageMatch ¶
type BaseImageRepository ¶
type BaseImageRepository struct { Badge string `graphql:"badge" json:"badge,omitempty"` Host string `graphql:"hostName" json:"host,omitempty"` Repo string `graphql:"repoName" json:"repo,omitempty"` SupportedTags []string `graphql:"supportedTags" json:"supported_tags,omitempty"` PreferredTags []string `graphql:"preferredTags" json:"preferred_tags,omitempty"` }
type Descriptor ¶
type FileSystemSource ¶
type ImageSource ¶
type ImageSource struct { Name string `json:"name"` Digest string `json:"digest"` Tags *[]string `json:"tags,omitempty"` Manifest *v1.Manifest `json:"manifest,omitempty"` Config *v1.ConfigFile `json:"config,omitempty"` RawManifest string `json:"raw_manifest"` RawConfig string `json:"raw_config"` Distro Distro `json:"distro"` Platform Platform `json:"platform"` Size int64 `json:"size"` Details *BaseImage `json:"details,omitempty"` }
type InstructionSourceMap ¶
type InstructionSourceMap struct { Digests []string `json:"digests,omitempty"` DiffIDs []string `json:"diff_ids,omitempty"` Instruction string `json:"instruction,omitempty"` Source string `json:"source,omitempty"` Path string `json:"path,omitempty"` StartLine int `json:"start_line,omitempty"` StartColumn int `json:"start_column,omitempty"` EndLine int `json:"end_line,omitempty"` EndColumn int `json:"end_column,omitempty"` }
type Package ¶
type Package struct { Type string `json:"type"` Namespace string `json:"namespace,omitempty"` Name string `json:"name"` Version string `json:"version"` Purl string `json:"purl"` Author string `json:"author,omitempty"` Description string `json:"description,omitempty"` Licenses []string `json:"licenses,omitempty"` Url string `json:"url,omitempty"` Size int `json:"size,omitempty"` InstalledSize int `json:"installed_size,omitempty"` Locations []Location `json:"locations"` Files []Location `json:"files,omitempty"` Parent string `json:"parent,omitempty"` }
type Provenance ¶
type Provenance struct { SourceMap *SourceMap `json:"source_map,omitempty"` VCS *VCS `json:"vcs,omitempty"` BaseImage *ProvenanceBaseImage `json:"base_image,omitempty"` Stream *Stream `json:"stream,omitempty"` Mode string `json:"mode,omitempty"` }
type ProvenanceBaseImage ¶
type RetryableExecutionError ¶ added in v0.0.23
type RetryableExecutionError string
func (RetryableExecutionError) Error ¶ added in v0.0.23
func (e RetryableExecutionError) Error() string
type SBOM ¶
type SBOM struct { Source Source `json:"source"` Attestations []dsse.Envelope `json:"attestations"` Artifacts []Package `json:"artifacts"` Vulnerabilities []VulnerabilitiesByPurl `json:"vulnerabilities,omitempty"` VexDocuments []vex.VEX `json:"vex_statements,omitempty"` Secrets []Secret `json:"secrets,omitempty"` Descriptor Descriptor `json:"descriptor"` }
type Secret ¶
type Secret struct { Source SecretSource `json:"source"` Findings []SecretFinding `json:"findings"` }
type SecretFinding ¶
type SecretSource ¶
type Source ¶
type Source struct { Type string `json:"type"` Image *ImageSource `json:"image,omitempty"` FileSystem *FileSystemSource `json:"file_system,omitempty"` BaseImages []BaseImageMatch `json:"base_images,omitempty"` Provenance *Provenance `json:"provenance,omitempty"` }
type SourceMap ¶
type SourceMap struct { Instructions []InstructionSourceMap `json:"instructions,omitempty"` Dockerfile string `json:"dockerfile,omitempty"` Sha string `json:"sha,omitempty"` }
type VulnerabilitiesByPurl ¶
type VulnerabilitiesByPurl struct { Purl string `graphql:"purl" json:"purl,omitempty"` Vulnerabilities []Vulnerability `graphql:"vulnerabilities" json:"vulnerabilities,omitempty"` }
type VulnerabilitiesByPurls ¶ added in v0.0.34
type VulnerabilitiesByPurls struct {
VulnerabilitiesByPackage []VulnerabilitiesByPurl `graphql:"vulnerabilitiesByPackage(context: $context, packageUrls: $purls)"`
}
type Vulnerability ¶
type Vulnerability struct { Source string `graphql:"source" json:"source,omitempty"` SourceId string `graphql:"sourceId" json:"source_id,omitempty"` Description string `graphql:"description" json:"description,omitempty"` VulnerableRange string `graphql:"vulnerableRange" json:"vulnerable_range,omitempty"` FixedBy string `graphql:"fixedBy" json:"fixed_by,omitempty"` Url string `graphql:"url" json:"url,omitempty"` PublishedAt string `graphql:"publishedAt" json:"published_at,omitempty"` UpdatedAt string `graphql:"updatedAt" json:"updated_at,omitempty"` Cvss Cvss `graphql:"cvss" json:"cvss,omitempty"` Cwes []Cwe `graphql:"cwes" json:"cwes,omitempty"` VexStatements []vex.VEX `graphql:"-" json:"vex_statements,omitempty"` Epss *Epss `graphql:"epss" json:"epss,omitempty"` CisaExploited bool `graphql:"cisaExploited" json:"cisa_exploited,omitempty"` }
type VulnerabilityReport ¶
type VulnerabilityReport struct { Critical int `graphql:"critical" json:"critical,omitempty"` High int `graphql:"high" json:"high,omitempty"` Medium int `graphql:"medium" json:"medium,omitempty"` Low int `graphql:"low" json:"low,omitempty"` Unspecified int `graphql:"unspecified" json:"unspecified,omitempty"` Total int `graphql:"total" json:"total,omitempty"` }
Click to show internal directories.
Click to hide internal directories.