model

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ArchiveMIMETypeSet = strset.New(

		[]string{

			"application/x-archive",
			"application/x-cpio",
			"application/x-shar",
			"application/x-iso9660-image",
			"application/x-sbx",
			"application/x-tar",

			"application/x-bzip2",
			"application/gzip",
			"application/x-lzip",
			"application/x-lzma",
			"application/x-lzop",
			"application/x-snappy-framed",
			"application/x-xz",
			"application/x-compress",
			"application/zstd",

			"application/x-7z-compressed",
			"application/x-ace-compressed",
			"application/x-astrotite-afa",
			"application/x-alz-compressed",
			"application/vnd.android.package-archive",
			"application/x-freearc",
			"application/x-arj",
			"application/x-b1",
			"application/vnd.ms-cab-compressed",
			"application/x-cfs-compressed",
			"application/x-dar",
			"application/x-dgc-compressed",
			"application/x-apple-diskimage",
			"application/x-gca-compressed",
			"application/java-archive",
			"application/x-lzh",
			"application/x-lzx",
			"application/x-rar-compressed",
			"application/x-stuffit",
			"application/x-stuffitx",
			"application/x-gtar",
			"application/x-ms-wim",
			"application/x-xar",
			"application/zip",
			"application/x-zoo",
		}...,
	)

	ExecutableMIMETypeSet = strset.New(
		[]string{
			"application/x-executable",
			"application/x-mach-binary",
			"application/x-elf",
			"application/x-sharedlib",
			"application/vnd.microsoft.portable-executable",
			"application/x-executable",
		}...,
	)
)

Functions

func IsArchive

func IsArchive(mimeType string) bool

func IsExecutable

func IsExecutable(mimeType string) bool

func License

func License(p pkg.Package) string

func ToSyftModel

func ToSyftModel(doc *spdx.Document) (*sbom.SBOM, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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