Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/ee/agent-smith/pkg/common/common.go
2501 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package common
6
7
// Severity describes the severity of the infringement
8
type Severity string
9
10
const (
11
// SeverityBarely is a severity level where usually no action is needed.
12
SeverityBarely Severity = "barely"
13
// SeverityAudit is the severity level used when auditting is needed.
14
SeverityAudit Severity = ""
15
// SeverityVery is the stronger severity level
16
SeverityVery Severity = "very"
17
)
18
19
// Workspace represents a Gitpod workspace
20
type Workspace struct {
21
OwnerID, WorkspaceID, InstanceID string
22
23
// PID is a PID in the tree of the workspace which is a parent of all user workloads
24
PID int
25
26
// GitURL is the remote origin of the Git working copy of a workspace
27
GitURL string
28
}
29
30