dc_license

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MLicense = app_msg.Apply(&MsgLicense{}).(*MsgLicense)
)

Functions

func Generate

func Generate(c app_control.Control, ui app_ui.UI) error

func MakeTestData

func MakeTestData(path string) error

Types

type LicenseInfo

type LicenseInfo struct {
	Package     string `json:"package"`
	Url         string `json:"url"`
	LicenseType string `json:"license_type"`
	LicenseBody string `json:"license_body"`
}

func Detect

func Detect(c app_control.Control) (inventory []LicenseInfo, err error)

type Licenses

type Licenses struct {
	Project    LicenseInfo   `json:"project"`
	ThirdParty []LicenseInfo `json:"third_party"`
}

func LoadLicenses

func LoadLicenses(c app_control.Control, path string) (licenses Licenses, err error)

type MsgLicense

type MsgLicense struct {
	ErrorLicenseInfoNotFound app_msg.Message
	ToolboxHeader            app_msg.Message
	ThirdPartyHeader         app_msg.Message
	ThirdPartyNotice         app_msg.Message
	ThirdPartyLink           app_msg.Message
	ThirdPartyPackage        app_msg.Message
	ThirdPartyNoBody         app_msg.Message
}

Jump to

Keyboard shortcuts

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