Documentation ¶
Index ¶
- func DoGoPortsDetection(component *model.Component, ctx *context.Context)
- func GetPortFromFileGo(rules model.PortMatchRules, text string) []int
- func GetPortWithMatchIndexesGo(content string, matchIndexes []int, toBeReplaced string) int
- type ApplicationPropertiesFile
- type BeegoDetector
- func (b BeegoDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (b BeegoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (b BeegoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (b BeegoDetector) GetSupportedFrameworks() []string
- type EchoDetector
- func (e EchoDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (e EchoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (e EchoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (e EchoDetector) GetSupportedFrameworks() []string
- type FastHttpDetector
- func (f FastHttpDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (f FastHttpDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (f FastHttpDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (f FastHttpDetector) GetSupportedFrameworks() []string
- type GinDetector
- func (g GinDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (g GinDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (g GinDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (g GinDetector) GetSupportedFrameworks() []string
- type GoFiberDetector
- func (g GoFiberDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (g GoFiberDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (g GoFiberDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (g GoFiberDetector) GetSupportedFrameworks() []string
- type MuxDetector
- func (m MuxDetector) DoFrameworkDetection(language *model.Language, goMod *modfile.File)
- func (m MuxDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (m MuxDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (m MuxDetector) GetSupportedFrameworks() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortFromFileGo ¶
func GetPortFromFileGo(rules model.PortMatchRules, text string) []int
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) GetApplicationFileInfos ¶ added in v1.2.0
func (b BeegoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
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) GetApplicationFileInfos ¶ added in v1.2.0
func (e EchoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
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) GetApplicationFileInfos ¶ added in v1.2.0
func (f FastHttpDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
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) GetApplicationFileInfos ¶ added in v1.2.0
func (g GinDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
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) GetApplicationFileInfos ¶ added in v1.2.0
func (g GoFiberDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
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) GetApplicationFileInfos ¶ added in v1.2.0
func (m MuxDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
func (MuxDetector) GetSupportedFrameworks ¶
func (m MuxDetector) GetSupportedFrameworks() []string
Click to show internal directories.
Click to hide internal directories.