Documentation ¶
Overview ¶
Package recognizer implements functions that are used by every cobra cli command. Uses the enricher and model packages to return a result.
Index ¶
- func Analyze(path string) ([]model.Language, error)
- func AnalyzeFile(configFile string, targetLanguage string) (model.Language, error)
- func DetectComponents(path string) ([]model.Component, error)
- func DetectComponentsFromFilesList(files []string, settings model.DetectionSettings, ctx *context.Context) []model.Component
- func DetectComponentsInRoot(path string) ([]model.Component, error)
- func DetectComponentsInRootWithPathAndPortStartegy(path string, portDetectionStrategy []model.PortDetectionAlgorithm) ([]model.Component, error)
- func DetectComponentsInRootWithSettings(settings model.DetectionSettings) ([]model.Component, error)
- func DetectComponentsWithPathAndPortStartegy(path string, portDetectionStrategy []model.PortDetectionAlgorithm) ([]model.Component, error)
- func DetectComponentsWithSettings(settings model.DetectionSettings) ([]model.Component, error)
- func SelectDevFileFromRegistry(path string, url string) (model.DevFileType, error)
- func SelectDevFileFromTypes(path string, devFileTypes []model.DevFileType) (int, error)
- func SelectDevFileUsingLanguagesFromTypes(languages []model.Language, devFileTypes []model.DevFileType) (int, error)
- func SelectDevFilesFromRegistry(path string, url string) ([]model.DevFileType, error)
- func SelectDevFilesFromTypes(path string, devFileTypes []model.DevFileType) ([]int, error)
- func SelectDevFilesUsingLanguagesFromTypes(languages []model.Language, devFileTypes []model.DevFileType) ([]int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeFile ¶
func DetectComponentsFromFilesList ¶
func DetectComponentsFromFilesList(files []string, settings model.DetectionSettings, ctx *context.Context) []model.Component
DetectComponentsFromFilesList detect components by analyzing all files. Uses the settings to perform component detection on files.
func DetectComponentsInRootWithSettings ¶
func DetectComponentsInRootWithSettings(settings model.DetectionSettings) ([]model.Component, error)
func DetectComponentsWithSettings ¶
func DetectComponentsWithSettings(settings model.DetectionSettings) ([]model.Component, error)
func SelectDevFileFromRegistry ¶
func SelectDevFileFromRegistry(path string, url string) (model.DevFileType, error)
func SelectDevFileFromTypes ¶
func SelectDevFileFromTypes(path string, devFileTypes []model.DevFileType) (int, error)
func SelectDevFilesFromRegistry ¶
func SelectDevFilesFromRegistry(path string, url string) ([]model.DevFileType, error)
func SelectDevFilesFromTypes ¶
func SelectDevFilesFromTypes(path string, devFileTypes []model.DevFileType) ([]int, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.