spdx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOCUMENT     = "DOCUMENT"
	NOASSERTION  = "NOASSERTION"
	NONE         = "NONE"
	Organization = "Organization"
	Person       = "Person"
	Tool         = "Tool"

	// Identifier categories
	CategorySecurity       = "SECURITY"
	CategoryPackageManager = "PACKAGE-MANAGER"
	CategoryPersistentID   = "PERSISTENT-ID"
	CategoryOther          = "OTHER"

	ExtRefTypePurl   = "purl"
	ExtRefTypeCPE22  = "cpe22Type"
	ExtRefTypeCPE23  = "cpe23Type"
	ExtRefTypeGitoid = "gitoid"
)

Variables

This section is empty.

Functions

func ParseActorString

func ParseActorString(s string) (actorType, actorName, actorEmail string)

ParseActorString parses an SPDX "actor string", it is a specially formatted string that contains the type of actor (Person/Organization), their name and optionally an email address. For example, the following string:

"Person: Debian OpenLDAP Maintainers (pkg-openldap-devel@lists.alioth.debian.org)"

would return: "Organization", "Debian OpenLDAP Maintainers", "pkg-openldap-devel@lists.alioth.debian.org"

Types

This section is empty.

Jump to

Keyboard shortcuts

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