licenses

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License added in v0.0.8

type License interface {
	Name() string
	ShortID() string
	Deprecated() bool
	OsiApproved() bool
	FsfLibre() bool
	FreeAnyUse() bool
	Restrictive() bool
	Exception() bool
	Source() string
	Custom() bool
	Spdx() bool
	AboutCode() bool
}

func CreateCustomLicense added in v0.1.0

func CreateCustomLicense(id, name string) License

func LookupAboutCodeLicense added in v0.1.8

func LookupAboutCodeLicense(licenseKey string) (License, error)

func LookupExpression added in v0.1.0

func LookupExpression(expression string, customLicenses []License) []License

func LookupSpdxLicense added in v0.1.8

func LookupSpdxLicense(licenseKey string) (License, error)

Jump to

Keyboard shortcuts

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