addlicense

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MPL-2.0, Apache-2.0 Imports: 17 Imported by: 0

README

addlicense

⚠ This is an internally-maintained fork of github.com/google/addLicense. It is meant only for HashiCorp usage and is not supported.


license

Apache 2.0

This is not an official Google product.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ignorePatternList []string,
	spdx spdxFlag,
	license LicenseData,
	licenseFileOverride string,
	verbose bool,
	checkonly bool,
	patterns []string,
	logger *log.Logger,
) error

Run executes addLicense with supplied variables

func ValidSPDX

func ValidSPDX(id string) bool

ValidSPDX takes in a string and returns true if it represents a valid SPDX ID

Types

type LicenseData

type LicenseData struct {
	Year   string // Copyright year(s).
	Holder string // Name of the copyright holder.
	SPDXID string // SPDX Identifier
}

LicenseData specifies the data used to fill out a license template.

Jump to

Keyboard shortcuts

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