Documentation ¶
Index ¶
- func GetPortsForJBossFrameworks(pomFilePath, pluginArtifactId, pluginGroupId string) string
- type ApplicationPropertiesFile
- type ApplicationProsServer
- type JBossEAPDetector
- type MicronautApplicationProps
- type MicronautDetector
- type OpenLibertyDetector
- type QuarkusApplicationYaml
- type QuarkusDetector
- type QuarkusHttp
- type QuarkusHttpPort
- type ServerConfig
- type ServerXml
- type SpringDetector
- type VertxConf
- type VertxDetector
- type WildFlyDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPortsForJBossFrameworks ¶
GetPortsForJBossFrameworks tries to detect any port information inside javaOpts of configuration of a given profiles plugin
Types ¶
type ApplicationProsServer ¶
type JBossEAPDetector ¶
type JBossEAPDetector struct{}
func (JBossEAPDetector) DoFrameworkDetection ¶
func (o JBossEAPDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId and artifactId to check for the framework name
func (JBossEAPDetector) DoPortsDetection ¶
func (o JBossEAPDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
func (JBossEAPDetector) GetSupportedFrameworks ¶
func (o JBossEAPDetector) GetSupportedFrameworks() []string
type MicronautDetector ¶
type MicronautDetector struct{}
func (MicronautDetector) DoFrameworkDetection ¶
func (m MicronautDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId to check for the framework name
func (MicronautDetector) DoPortsDetection ¶
func (m MicronautDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for the port in src/main/resources/application.yaml
func (MicronautDetector) GetSupportedFrameworks ¶
func (m MicronautDetector) GetSupportedFrameworks() []string
type OpenLibertyDetector ¶
type OpenLibertyDetector struct{}
func (OpenLibertyDetector) DoFrameworkDetection ¶
func (o OpenLibertyDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId to check for the framework name
func (OpenLibertyDetector) DoPortsDetection ¶
func (o OpenLibertyDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for the port in src/main/liberty/config/server.xml and /server.xml
func (OpenLibertyDetector) GetSupportedFrameworks ¶
func (o OpenLibertyDetector) GetSupportedFrameworks() []string
type QuarkusApplicationYaml ¶
type QuarkusApplicationYaml struct {
Quarkus QuarkusHttp `yaml:"quarkus,omitempty"`
}
type QuarkusDetector ¶
type QuarkusDetector struct{}
func (QuarkusDetector) DoFrameworkDetection ¶
func (q QuarkusDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId to check for the framework name
func (QuarkusDetector) DoPortsDetection ¶
func (q QuarkusDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for ports in the env var, .env file, and src/main/resources/application.properties, or src/main/resources/application.yaml
func (QuarkusDetector) GetSupportedFrameworks ¶
func (q QuarkusDetector) GetSupportedFrameworks() []string
type QuarkusHttp ¶
type QuarkusHttp struct {
Http QuarkusHttpPort `yaml:"http,omitempty"`
}
type QuarkusHttpPort ¶
type ServerConfig ¶
type ServerConfig struct {
Port int `json:"http.server.port,omitempty"`
}
type SpringDetector ¶
type SpringDetector struct{}
func (SpringDetector) DoFrameworkDetection ¶
func (s SpringDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId to check for the framework name
func (SpringDetector) DoPortsDetection ¶
func (s SpringDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for ports in the env var and src/main/resources/application.properties, or src/main/resources/application.yaml
func (SpringDetector) GetSupportedFrameworks ¶
func (s SpringDetector) GetSupportedFrameworks() []string
type VertxConf ¶
type VertxConf struct { Port int `json:"http.port,omitempty"` ServerConfig ServerConfig `json:"http.server,omitempty"` }
type VertxDetector ¶
type VertxDetector struct{}
func (VertxDetector) DoFrameworkDetection ¶
func (v VertxDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId to check for the framework name
func (VertxDetector) DoPortsDetection ¶
func (v VertxDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection searches for the port in json files under src/main/conf/
func (VertxDetector) GetSupportedFrameworks ¶
func (v VertxDetector) GetSupportedFrameworks() []string
type WildFlyDetector ¶
type WildFlyDetector struct{}
func (WildFlyDetector) DoFrameworkDetection ¶
func (o WildFlyDetector) DoFrameworkDetection(language *model.Language, config string)
DoFrameworkDetection uses the groupId and artifactId to check for the framework name
func (WildFlyDetector) DoPortsDetection ¶
func (o WildFlyDetector) DoPortsDetection(component *model.Component, ctx *context.Context)
DoPortsDetection for wildfly fetches the pom.xml and tries to find any javaOpts under the wildfly-maven-plugin profiles. If there is one it looks if jboss.http.port is defined.
func (WildFlyDetector) GetSupportedFrameworks ¶
func (o WildFlyDetector) GetSupportedFrameworks() []string