Documentation ¶
Index ¶
- func DoGoPortsDetection(component *model.Component, ctx *context.Context)
- func GetPortFromFileGo(rules model.PortMatchRules, text string) []int
- func GetPortFromFilesGo(matchRegexRules model.PortMatchRules, files []string) []int
- func GetPortWithMatchIndexesGo(content string, matchIndexes []int, toBeReplaced string) int
- type ApplicationPropertiesFile
- type BeegoDetector
- type EchoDetector
- type FastHttpDetector
- type GinDetector
- type GoFiberDetector
- type MuxDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Types ¶
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
Click to show internal directories.
Click to hide internal directories.