utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobToSPDX

func BlobToSPDX(bytes []byte) (*spdx.Document, error)

func LoadAllowedLicenses

func LoadAllowedLicenses(licenses []string) map[string]struct{}

Types

type PackageLicense

type PackageLicense struct {
	PackageName    string
	PackageLicense string
}

func FilterPackageLicenses

func FilterPackageLicenses(packageLicenses []PackageLicense, allowedLicenses map[string]struct{}) []PackageLicense

func GetPackageLicenses

func GetPackageLicenses(doc spdx.Document) []PackageLicense

Jump to

Keyboard shortcuts

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