Debian Codegraph @

cmd/containerd-shim-runc-v2/process/types.go

raw
1 /*
2 Copyright The containerd Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package process
18
19 import (
20 google_protobuf "github.com/containerd/containerd/v2/pkg/protobuf/types"
21 )
22
23 // Mount holds filesystem mount configuration
24 type Mount struct {
25 Type string
26 Source string
27 Target string
28 Options []string
29 }
30
31 // CreateConfig hold task creation configuration
32 type CreateConfig struct {
33 ID string
34 Bundle string
35 Runtime string
36 Rootfs []Mount
37 Terminal bool
38 Stdin string
39 Stdout string
40 Stderr string
41 Checkpoint string
42 ParentCheckpoint string
43 Options *google_protobuf.Any
44 }
45
46 // ExecConfig holds exec creation configuration
47 type ExecConfig struct {
48 ID string
49 Terminal bool
50 Stdin string
51 Stdout string
52 Stderr string
53 Spec *google_protobuf.Any
54 }
55
56 // CheckpointConfig holds task checkpoint configuration
57 type CheckpointConfig struct {
58 WorkDir string
59 Path string
60 Exit bool
61 AllowOpenTCP bool
62 AllowExternalUnixSockets bool
63 AllowTerminal bool
64 FileLocks bool
65 EmptyNamespaces []string
66 }