enricher

package
v0.0.0-...-80d5f3f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoGoPortsDetection

func DoGoPortsDetection(component *model.Component, ctx *context.Context)

func GetPortFromFileGo

func GetPortFromFileGo(rules model.PortMatchRules, text string) []int

func GetPortFromFilesGo

func GetPortFromFilesGo(matchRegexRules model.PortMatchRules, files []string) []int

GetPortFromFilesGo loops through a list of paths and tries to find a port matching the given set PortMatchRules

func GetPortWithMatchIndexesGo

func GetPortWithMatchIndexesGo(content string, matchIndexes []int, toBeReplaced string) int

Types

type ApplicationPropertiesFile

type ApplicationPropertiesFile struct {
	Dir  string
	File string
}

type BeegoDetector

type BeegoDetector struct{}

func (BeegoDetector) DoFrameworkDetection

func (b BeegoDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (BeegoDetector) DoPortsDetection

func (b BeegoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

DoPortsDetection searches for the port in conf/app.conf

func (BeegoDetector) GetSupportedFrameworks

func (b BeegoDetector) GetSupportedFrameworks() []string

type EchoDetector

type EchoDetector struct{}

func (EchoDetector) DoFrameworkDetection

func (e EchoDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (EchoDetector) DoPortsDetection

func (e EchoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

func (EchoDetector) GetSupportedFrameworks

func (e EchoDetector) GetSupportedFrameworks() []string

type FastHttpDetector

type FastHttpDetector struct{}

func (FastHttpDetector) DoFrameworkDetection

func (f FastHttpDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (FastHttpDetector) DoPortsDetection

func (f FastHttpDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

func (FastHttpDetector) GetSupportedFrameworks

func (f FastHttpDetector) GetSupportedFrameworks() []string

type GinDetector

type GinDetector struct{}

func (GinDetector) DoFrameworkDetection

func (g GinDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (GinDetector) DoPortsDetection

func (g GinDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

func (GinDetector) GetSupportedFrameworks

func (g GinDetector) GetSupportedFrameworks() []string

type GoFiberDetector

type GoFiberDetector struct{}

func (GoFiberDetector) DoFrameworkDetection

func (g GoFiberDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (GoFiberDetector) DoPortsDetection

func (g GoFiberDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

func (GoFiberDetector) GetSupportedFrameworks

func (g GoFiberDetector) GetSupportedFrameworks() []string

type MuxDetector

type MuxDetector struct{}

func (MuxDetector) DoFrameworkDetection

func (m MuxDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)

DoFrameworkDetection uses a tag to check for the framework name

func (MuxDetector) DoPortsDetection

func (m MuxDetector) DoPortsDetection(component *model.Component, ctx *context.Context)

func (MuxDetector) GetSupportedFrameworks

func (m MuxDetector) GetSupportedFrameworks() []string

Jump to

Keyboard shortcuts

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