Documentation
¶
Index ¶
- type DotNetDetector
- func (d *DotNetDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
- func (d *DotNetDetector) GetFilePatterns() []string
- func (d *DotNetDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
- func (d *DotNetDetector) Name() string
- type GoDetector
- type JavaDetector
- type JavaScriptDetector
- func (j *JavaScriptDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
- func (j *JavaScriptDetector) GetFilePatterns() []string
- func (j *JavaScriptDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
- func (j *JavaScriptDetector) Name() string
- type PHPDetector
- type PythonDetector
- func (p *PythonDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
- func (p *PythonDetector) GetFilePatterns() []string
- func (p *PythonDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
- func (p *PythonDetector) Name() string
- type RubyDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DotNetDetector ¶
type DotNetDetector struct{}
DotNetDetector detects .NET/C# projects and OpenTelemetry usage
func NewDotNetDetector ¶
func NewDotNetDetector() *DotNetDetector
NewDotNetDetector creates a new .NET language detector
func (*DotNetDetector) GetAllPackages ¶
func (d *DotNetDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the project
func (*DotNetDetector) GetFilePatterns ¶
func (d *DotNetDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for .NET projects
func (*DotNetDetector) GetOTelLibraries ¶
func (d *DotNetDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in .NET projects
func (*DotNetDetector) Name ¶
func (d *DotNetDetector) Name() string
Name returns the language name key used by the analyzer We align with enry's C# output and overall tool usage by handling "c#" as the map key.
type GoDetector ¶
type GoDetector struct{}
GoDetector detects Go projects and OpenTelemetry usage
func NewGoDetector ¶
func NewGoDetector() *GoDetector
NewGoDetector creates a new Go language detector
func (*GoDetector) GetAllPackages ¶
GetAllPackages finds all packages/dependencies used in the Go project
func (*GoDetector) GetFilePatterns ¶
func (g *GoDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for Go files
func (*GoDetector) GetOTelLibraries ¶
func (g *GoDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in Go projects
type JavaDetector ¶
type JavaDetector struct{}
JavaDetector detects Java projects and OpenTelemetry usage
func NewJavaDetector ¶
func NewJavaDetector() *JavaDetector
NewJavaDetector creates a new Java language detector
func (*JavaDetector) GetAllPackages ¶
func (j *JavaDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the Java project
func (*JavaDetector) GetFilePatterns ¶
func (j *JavaDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for Java files
func (*JavaDetector) GetOTelLibraries ¶
func (j *JavaDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in Java projects (Maven/Gradle and imports)
type JavaScriptDetector ¶
type JavaScriptDetector struct{}
JavaScriptDetector detects JavaScript projects and OpenTelemetry usage
func NewJavaScriptDetector ¶
func NewJavaScriptDetector() *JavaScriptDetector
NewJavaScriptDetector creates a new JavaScript language detector
func (*JavaScriptDetector) GetAllPackages ¶
func (j *JavaScriptDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the project
func (*JavaScriptDetector) GetFilePatterns ¶
func (j *JavaScriptDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for JavaScript files
func (*JavaScriptDetector) GetOTelLibraries ¶
func (j *JavaScriptDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in JavaScript projects
func (*JavaScriptDetector) Name ¶
func (j *JavaScriptDetector) Name() string
Name returns the language name
type PHPDetector ¶
type PHPDetector struct{}
PHPDetector detects PHP projects and OpenTelemetry usage
func NewPHPDetector ¶
func NewPHPDetector() *PHPDetector
NewPHPDetector creates a new PHP language detector
func (*PHPDetector) GetAllPackages ¶
func (p *PHPDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the PHP project
func (*PHPDetector) GetFilePatterns ¶
func (p *PHPDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for PHP files
func (*PHPDetector) GetOTelLibraries ¶
func (p *PHPDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in PHP projects
type PythonDetector ¶
type PythonDetector struct{}
PythonDetector detects Python projects and OpenTelemetry usage
func NewPythonDetector ¶
func NewPythonDetector() *PythonDetector
NewPythonDetector creates a new Python language detector
func (*PythonDetector) GetAllPackages ¶
func (p *PythonDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the Python project
func (*PythonDetector) GetFilePatterns ¶
func (p *PythonDetector) GetFilePatterns() []string
GetFilePatterns returns patterns for Python files
func (*PythonDetector) GetOTelLibraries ¶
func (p *PythonDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in Python projects
type RubyDetector ¶
type RubyDetector struct{}
RubyDetector detects Ruby projects and OpenTelemetry usage
func NewRubyDetector ¶
func NewRubyDetector() *RubyDetector
NewRubyDetector creates a new Ruby language detector
func (*RubyDetector) GetAllPackages ¶
func (r *RubyDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)
GetAllPackages finds all packages/dependencies used in the Ruby project
func (*RubyDetector) GetFilePatterns ¶
func (r *RubyDetector) GetFilePatterns() []string
GetFilePatterns returns file patterns this detector should scan
func (*RubyDetector) GetOTelLibraries ¶
func (r *RubyDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)
GetOTelLibraries finds OpenTelemetry libraries in Ruby projects