inspectors

package
v1.0.128 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLanguage

func DetectLanguage(process process.Details, containerURL string) (common.ProgramLanguageDetails, error)

DetectLanguage returns the detected language for the process or common.UnknownProgrammingLanguage if the language could not be detected, in which case error == nil if error or language detectors disagree common.UnknownProgrammingLanguage is also returned

Types

type ErrLanguageDetectionConflict added in v1.0.70

type ErrLanguageDetectionConflict struct {
	// contains filtered or unexported fields
}

func (ErrLanguageDetectionConflict) Error added in v1.0.70

type LanguageInspector added in v1.0.97

type LanguageInspector interface {
	Inspect(process *process.Details) (common.ProgrammingLanguage, bool)
}

type VersionInspector added in v1.0.97

type VersionInspector interface {
	GetRuntimeVersion(process *process.Details, containerURL string) *version.Version
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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