Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor struct
func (*Extractor) ExtractsWithContext ¶
func (e *Extractor) ExtractsWithContext(ctx context.Context, filenames []string, headers bool) (errors []error)
ExtractsWithContext runs the license classifier over the given file; ensure that it will respect the timeout in the provided context.
func (*Extractor) GetResults ¶
func (e *Extractor) GetResults() LicenseTypes
GetResults returns the results of the classifications.
type LicenseType ¶
LicenseType is the assumed type of the unknown license.
type LicenseTypes ¶
type LicenseTypes []*LicenseType
LicenseTypes is a list of LicenseType objects.
func (LicenseTypes) Len ¶
func (lt LicenseTypes) Len() int
func (LicenseTypes) Less ¶
func (lt LicenseTypes) Less(i, j int) bool
func (LicenseTypes) Swap ¶
func (lt LicenseTypes) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.