Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLanguage ¶
func DetectLanguage(process process.Details, containerURL string) (common.ProgramLanguageDetails, error)
DetectLanguage returns the detected language for the process or common.UnknownProgrammingLanguage if the language could not be detected, in which case error == nil if error or language detectors disagree common.UnknownProgrammingLanguage is also returned
func VerifyLanguage ¶ added in v1.0.142
func VerifyLanguage(process process.Details, lang common.ProgrammingLanguage) bool
Types ¶
type ErrLanguageDetectionConflict ¶ added in v1.0.70
type ErrLanguageDetectionConflict struct {
// contains filtered or unexported fields
}
func (ErrLanguageDetectionConflict) Error ¶ added in v1.0.70
func (e ErrLanguageDetectionConflict) Error() string
type LanguageInspector ¶ added in v1.0.97
type LanguageInspector interface {
Inspect(process *process.Details) (common.ProgrammingLanguage, bool)
}
type VersionInspector ¶ added in v1.0.97
Click to show internal directories.
Click to hide internal directories.