Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidEscapedModulePath = errors.New("invalid escaped module path") ErrModuleNotFound = errors.New("module not found in proxy") )
View Source
var ( ErrorLicenseNotFound = errors.New("license not found") ErrorLicenseUnknown = errors.New("license type unknown") )
View Source
var (
ErrorGoModFileNotFound = errors.New("module file (go.mod) not found")
)
Functions ¶
Types ¶
type AttributionsFile ¶
type AttributionsFile struct {
ModuleName string
ModuleLicense string
// The module dependency tree
Tree *Tree
}
AttribnutionsFile represent the data that should be rendered in a ATTRIBUTIONS.md file.
type License ¶
type License struct {
// The name of the license
Name string
// If the name of the license if unkown, this field will be
// filled
Data []byte
}
License represents a sotfware distribution and usage license
type LicenseType ¶
type LicenseType int
type Module ¶
type Module struct {
// Version contains the identifiers of a public Go module.
// The unique identifier of a module is in format $path@$version
Version *module.Version
// LicenseBytes is the license of the module.
License *License
// Is the list of the required modules found in a go.mod file.
Dependencies []*Module
}
Module represent a Go module version, license and dependencies.
Click to show internal directories.
Click to hide internal directories.