mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
* PHP parse composer.lock Signed-off-by: Nikita <33390074+Zilborg@users.noreply.github.com> * rename PHP package type Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add PHP composer package support to source info SPDX helper Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update directory cataloger integration tests (make exception for images) Signed-off-by: Alex Goodman <alex.goodman@anchore.com> Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
33 lines
725 B
Go
33 lines
725 B
Go
package pkg
|
|
|
|
// Language represents a single programming language.
|
|
type Language string
|
|
|
|
const (
|
|
// the full set of supported programming languages
|
|
UnknownLanguage Language = "UnknownLanguage"
|
|
Java Language = "java"
|
|
JavaScript Language = "javascript"
|
|
Python Language = "python"
|
|
PHP Language = "php"
|
|
Ruby Language = "ruby"
|
|
Go Language = "go"
|
|
Rust Language = "rust"
|
|
)
|
|
|
|
// AllLanguages is a set of all programming languages detected by syft.
|
|
var AllLanguages = []Language{
|
|
Java,
|
|
JavaScript,
|
|
Python,
|
|
PHP,
|
|
Ruby,
|
|
Go,
|
|
Rust,
|
|
}
|
|
|
|
// String returns the string representation of the language.
|
|
func (l Language) String() string {
|
|
return string(l)
|
|
}
|