cmd

package
v0.0.4 Latest Latest
Warning

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

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

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

func Execute

func Execute()

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.

type Tree

type Tree struct {
	Root *Module
}

Tree represents the dependency tree of a Go module

func (*Tree) String

func (tree *Tree) String() string

Jump to

Keyboard shortcuts

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