Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/test/pkg/agent/daemon/api/api.go
2500 views
1
// Copyright (c) 2020 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 api
6
7
import "github.com/gitpod-io/gitpod/common-go/cgroups"
8
9
// CreateBucketRequest is the argument for CreateBucket
10
type CreateBucketRequest struct {
11
Owner, Workspace string
12
}
13
14
// CreateBucketResponse is the response for CreateBucket
15
type CreateBucketResponse struct{}
16
17
type GetWorkspaceResourcesRequest struct {
18
ContainerId string
19
}
20
21
type GetWorkspaceResourcesResponse struct {
22
CpuQuota int64
23
Found bool
24
IOMax []cgroups.DeviceIOMax
25
FoundIOMax bool
26
}
27
28
type VerifyRateLimitingRuleRequest struct {
29
ContainerId string
30
}
31
32
type VerifyRateLimitingRuleResponse struct{}
33
34