Documentation
¶
Index ¶
- type DjangoDetector
- func (d DjangoDetector) DoFrameworkDetection(language *model.Language, files *[]string)
- func (d DjangoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (d DjangoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (d DjangoDetector) GetConfigDjangoFilenames() []string
- func (d DjangoDetector) GetDjangoFilenames() []string
- func (d DjangoDetector) GetSupportedFrameworks() []string
- type FlaskDetector
- func (f FlaskDetector) DoFrameworkDetection(language *model.Language, files *[]string)
- func (f FlaskDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
- func (f FlaskDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
- func (f FlaskDetector) GetConfigFlaskFilenames() []string
- func (f FlaskDetector) GetFlaskFilenames() []string
- func (f FlaskDetector) GetSupportedFrameworks() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DjangoDetector ¶
type DjangoDetector struct{}
func (DjangoDetector) DoFrameworkDetection ¶
func (d DjangoDetector) DoFrameworkDetection(language *model.Language, files *[]string)
DoFrameworkDetection uses a tag to check for the framework name with django files and django config files
func (DjangoDetector) DoPortsDetection ¶
func (d DjangoDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for the port in /manage.py
func (DjangoDetector) GetApplicationFileInfos ¶ added in v1.2.0
func (d DjangoDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
func (DjangoDetector) GetConfigDjangoFilenames ¶ added in v1.2.0
func (d DjangoDetector) GetConfigDjangoFilenames() []string
func (DjangoDetector) GetDjangoFilenames ¶ added in v1.2.0
func (d DjangoDetector) GetDjangoFilenames() []string
func (DjangoDetector) GetSupportedFrameworks ¶
func (d DjangoDetector) GetSupportedFrameworks() []string
type FlaskDetector ¶
type FlaskDetector struct{}
func (FlaskDetector) DoFrameworkDetection ¶
func (f FlaskDetector) DoFrameworkDetection(language *model.Language, files *[]string)
DoFrameworkDetection uses a tag to check for the framework name with flask files and flask config files
func (FlaskDetector) DoPortsDetection ¶
func (f FlaskDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for the port in app/__init__.py, app.py or /wsgi.py
func (FlaskDetector) GetApplicationFileInfos ¶ added in v1.2.0
func (f FlaskDetector) GetApplicationFileInfos(componentPath string, ctx *context.Context) []model.ApplicationFileInfo
func (FlaskDetector) GetConfigFlaskFilenames ¶ added in v1.2.0
func (f FlaskDetector) GetConfigFlaskFilenames() []string
func (FlaskDetector) GetFlaskFilenames ¶ added in v1.2.0
func (f FlaskDetector) GetFlaskFilenames() []string
func (FlaskDetector) GetSupportedFrameworks ¶
func (f FlaskDetector) GetSupportedFrameworks() []string
Click to show internal directories.
Click to hide internal directories.