syfttype

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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