Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainingGopath ¶
func LookGopath ¶
Types ¶
type LicenseClassifier ¶
type LicenseClassifier struct {
Config Config
}
func (LicenseClassifier) Classify ¶
func (c LicenseClassifier) Classify(path string, importPath string) (LicenseStatus, string, string, error)
type LicenseStatus ¶
type LicenseStatus int
const ( LicenseTypeUnknown LicenseStatus = iota LicenseTypeNoLicense LicenseTypeBanned LicenseTypeAllowed LicenseTypeMarginal )
func (LicenseStatus) Color ¶
func (s LicenseStatus) Color() string
func (LicenseStatus) FailsBuild ¶
func (s LicenseStatus) FailsBuild() bool
func (LicenseStatus) Message ¶
func (s LicenseStatus) Message() string
type PackageLister ¶
type PackageLister struct{}
func (PackageLister) ListDependencies ¶
func (l PackageLister) ListDependencies() ([]string, error)
type StdinLister ¶
type StdinLister struct{}
func (StdinLister) ListDependencies ¶
func (l StdinLister) ListDependencies() ([]string, error)
Click to show internal directories.
Click to hide internal directories.