-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
const.go
133 lines (112 loc) · 3.66 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package types
type (
// TargetType represents the type of target
TargetType string
// OSType is an alias of TargetType for operating systems
OSType = TargetType
// LangType is an alias of TargetType for programming languages
LangType = TargetType
// ConfigType is an alias of TargetType for configuration files
ConfigType = TargetType
)
const (
ArtifactJSONSchemaVersion = 1
BlobJSONSchemaVersion = 2
)
// Operating systems
const (
Alma OSType = "alma"
Alpine OSType = "alpine"
Amazon OSType = "amazon"
CBLMariner OSType = "cbl-mariner"
CentOS OSType = "centos"
Chainguard OSType = "chainguard"
Debian OSType = "debian"
Fedora OSType = "fedora"
OpenSUSE OSType = "opensuse"
OpenSUSELeap OSType = "opensuse.leap"
OpenSUSETumbleweed OSType = "opensuse.tumbleweed"
Oracle OSType = "oracle"
Photon OSType = "photon"
RedHat OSType = "redhat"
Rocky OSType = "rocky"
SLES OSType = "suse linux enterprise server"
Ubuntu OSType = "ubuntu"
Wolfi OSType = "wolfi"
)
// Programming language dependencies
const (
Bundler LangType = "bundler"
GemSpec LangType = "gemspec"
Cargo LangType = "cargo"
Composer LangType = "composer"
Npm LangType = "npm"
NuGet LangType = "nuget"
DotNetCore LangType = "dotnet-core"
PackagesProps LangType = "packages-props"
Pip LangType = "pip"
Pipenv LangType = "pipenv"
Poetry LangType = "poetry"
CondaPkg LangType = "conda-pkg"
PythonPkg LangType = "python-pkg"
NodePkg LangType = "node-pkg"
Yarn LangType = "yarn"
Pnpm LangType = "pnpm"
Jar LangType = "jar"
Pom LangType = "pom"
Gradle LangType = "gradle"
GoBinary LangType = "gobinary"
GoModule LangType = "gomod"
JavaScript LangType = "javascript"
RustBinary LangType = "rustbinary"
Conan LangType = "conan"
Cocoapods LangType = "cocoapods"
Swift LangType = "swift"
Pub LangType = "pub"
Hex LangType = "hex"
Bitnami LangType = "bitnami"
K8sUpstream LangType = "kubernetes"
EKS LangType = "eks" // Amazon Elastic Kubernetes Service
GKE LangType = "gke" // Google Kubernetes Engine
AKS LangType = "aks" // Azure Kubernetes Service
RKE LangType = "rke" // Rancher Kubernetes Engine
OCP LangType = "ocp" // Red Hat OpenShift Container Platform
)
// Config files
const (
JSON ConfigType = "json"
Dockerfile ConfigType = "dockerfile"
Terraform ConfigType = "terraform"
TerraformPlan ConfigType = "terraformplan"
CloudFormation ConfigType = "cloudformation"
Kubernetes ConfigType = "kubernetes"
Helm ConfigType = "helm"
Cloud ConfigType = "cloud"
AzureARM ConfigType = "azure-arm"
)
// Language-specific file names
const (
NuGetPkgsLock = "packages.lock.json"
NuGetPkgsConfig = "packages.config"
GoMod = "go.mod"
GoSum = "go.sum"
MavenPom = "pom.xml"
NpmPkg = "package.json"
NpmPkgLock = "package-lock.json"
YarnLock = "yarn.lock"
PnpmLock = "pnpm-lock.yaml"
ComposerLock = "composer.lock"
ComposerJson = "composer.json"
PyProject = "pyproject.toml"
PipRequirements = "requirements.txt"
PipfileLock = "Pipfile.lock"
PoetryLock = "poetry.lock"
GemfileLock = "Gemfile.lock"
CargoLock = "Cargo.lock"
CargoToml = "Cargo.toml"
ConanLock = "conan.lock"
CocoaPodsLock = "Podfile.lock"
SwiftResolved = "Package.resolved"
PubSpecLock = "pubspec.lock"
MixLock = "mix.lock"
)