recognizer

package
v0.0.0-...-26c3d7a Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(path string) ([]model.Language, error)

func AnalyzeFile

func AnalyzeFile(configFile string, targetLanguage string) (model.Language, error)

func DetectComponents

func DetectComponents(path string) ([]model.Component, error)

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 DetectComponentsInRoot

func DetectComponentsInRoot(path string) ([]model.Component, error)

func DetectComponentsInRootWithPathAndPortStartegy

func DetectComponentsInRootWithPathAndPortStartegy(path string, portDetectionStrategy []model.PortDetectionAlgorithm) ([]model.Component, error)

func DetectComponentsInRootWithSettings

func DetectComponentsInRootWithSettings(settings model.DetectionSettings) ([]model.Component, error)

func DetectComponentsWithPathAndPortStartegy

func DetectComponentsWithPathAndPortStartegy(path string, portDetectionStrategy []model.PortDetectionAlgorithm) ([]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 SelectDevFileUsingLanguagesFromTypes

func SelectDevFileUsingLanguagesFromTypes(languages []model.Language, 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)

func SelectDevFilesUsingLanguagesFromTypes

func SelectDevFilesUsingLanguagesFromTypes(languages []model.Language, devFileTypes []model.DevFileType) ([]int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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