syfttype

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyftArtifact

type SyftArtifact struct {
	Id        string                    `json:"id"`
	Name      string                    `json:"name"`
	Version   string                    `json:"version"`
	Type      string                    `json:"type"`
	FoundBy   string                    `json:"foundBy"`
	Language  string                    `json:"language"`
	Purl      string                    `json:"purl"`
	Cpes      []SyftCpe                 `json:"cpes"`
	Locations []grypetype.GrypeLocation `json:"location"`
}

`json:""`

type SyftCpe

type SyftCpe struct {
	Cpe    string `json:"cpe"`
	Source string `json:"source"`
}

type SyftDescriptor

type SyftDescriptor struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type SyftDigest added in v0.9.11

type SyftDigest struct {
	Algorithm string `json:"algorithm"`
	Value     string `json:"value"`
}

type SyftDistro

type SyftDistro struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

type SyftFile

type SyftFile struct {
}

type SyftMetadata

type SyftMetadata struct {
	UserInput string       `json:"userInput"`
	ImageId   string       `json:"imageId"`
	ImageSize uint64       `json:"imageSize"`
	Path      string       `json:"path"`
	Digests   []SyftDigest `json:"digests"`
}

type SyftSbomType

type SyftSbomType struct {
	Source     SyftSource     `json:"source"`
	Distro     SyftDistro     `json:"distro"`
	Artifacts  []SyftArtifact `json:"artifacts"`
	Descriptor SyftDescriptor `json:"descriptor"`
}

output of grype -o json

func (*SyftSbomType) FromBytes

func (rx *SyftSbomType) FromBytes(input []byte) error

parse []bytes to model

func (*SyftSbomType) ToBytes

func (rx *SyftSbomType) ToBytes() []byte

return model as []byte

type SyftSource

type SyftSource struct {
	ID       string       `json:"id"`
	Name     string       `json:"name"`
	Version  string       `json:"version"`
	Metadata SyftMetadata `json:"metadata"`
}

Jump to

Keyboard shortcuts

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