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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPortsForJBossFrameworks

func GetPortsForJBossFrameworks(pomFilePath, pluginArtifactId, pluginGroupId string) string

GetPortsForJBossFrameworks tries to detect any port information inside javaOpts of configuration of a given profiles plugin

Types

type ApplicationPropertiesFile

type ApplicationPropertiesFile struct {
	Dir  string
	File string
}

type ApplicationProsServer

type ApplicationProsServer struct {
	Server struct {
		Port int `yaml:"port,omitempty"`
		Http struct {
			Port int `yaml:"port,omitempty"`
		} `yaml:"http,omitempty"`
	} `yaml:"server,omitempty"`
}

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 MicronautApplicationProps

type MicronautApplicationProps struct {
	Micronaut struct {
		Server struct {
			Port int `yaml:"port,omitempty"`
			SSL  struct {
				Enabled bool `yaml:"enabled,omitempty"`
				Port    int  `yaml:"port,omitempty"`
			} `yaml:"ssl,omitempty"`
		} `yaml:"server,omitempty"`
	} `yaml:"micronaut,omitempty"`
}

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 QuarkusHttpPort struct {
	Port             int    `yaml:"port,omitempty"`
	InsecureRequests string `yaml:"insecure-requests,omitempty"`
	SSLPort          int    `yaml:"ssl-port,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	Port int `json:"http.server.port,omitempty"`
}

type ServerXml

type ServerXml struct {
	HttpEndpoint struct {
		HttpPort  string `xml:"httpPort,attr"`
		HttpsPort string `xml:"httpsPort,attr"`
	} `xml:"httpEndpoint"`
}

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

Jump to

Keyboard shortcuts

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