license

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrModuleNotFound  = errors.New("module not found")
	ErrLicenseNotFound = errors.New("no license found")
	ErrLocalModule     = errors.New("license resolution isn't supported for local modules")
)

Functions

func Resolve

func Resolve(module gomod.Module) ([]cdx.License, error)

Types

type SPDXLicense

type SPDXLicense struct {
	ID        string `json:"licenseId"`
	Name      string `json:"name"`
	Reference string `json:"reference"`
}

Jump to

Keyboard shortcuts

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