-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathconsts.go
76 lines (55 loc) · 2.28 KB
/
consts.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
package client
import "github.com/containers/conmon-rs/internal/proto"
// LogLevel is the enum for all available server log levels.
type LogLevel string
const (
// LogLevelTrace is the log level printing only "trace" messages.
LogLevelTrace LogLevel = "trace"
// LogLevelDebug is the log level printing only "debug" messages.
LogLevelDebug LogLevel = "debug"
// LogLevelInfo is the log level printing only "info" messages.
LogLevelInfo LogLevel = "info"
// LogLevelWarn is the log level printing only "warn" messages.
LogLevelWarn LogLevel = "warn"
// LogLevelError is the log level printing only "error" messages.
LogLevelError LogLevel = "error"
// LogLevelOff is the log level printing no messages.
LogLevelOff LogLevel = "off"
)
// LogDriver is the enum for all available server log drivers.
type LogDriver string
const (
// LogDriverStdout is the log driver printing to stdio.
LogDriverStdout LogDriver = "stdout"
// LogDriverSystemd is the log driver printing to systemd journald.
LogDriverSystemd LogDriver = "systemd"
)
// CgroupManager is the enum for all available cgroup managers.
type CgroupManager proto.Conmon_CgroupManager
const (
// CgroupManagerSystemd specifies to use systemd to create and manage
// cgroups.
CgroupManagerSystemd CgroupManager = CgroupManager(proto.Conmon_CgroupManager_systemd)
// CgroupManagerCgroupfs specifies to use the cgroup filesystem to create
// and manage cgroups.
CgroupManagerCgroupfs CgroupManager = CgroupManager(proto.Conmon_CgroupManager_cgroupfs)
// CgroupManagerPerCommand opts-in to the new CgroupManager option specified at the command level.
//
// Set `ConmonServerConfig.CgroupManager` to `CgroupManagerPerCommand` to use
// the CgroupManager specified in the command config (e.g. CreateContainerConfig).
CgroupManagerPerCommand CgroupManager = CgroupManager(0xffff)
)
// Namespace is the enum for all available namespaces.
type Namespace int
const (
// NamespaceIPC is the reference to the IPC namespace.
NamespaceIPC Namespace = iota
// NamespacePID is the reference to the PID namespace.
NamespacePID
// NamespaceNet is the reference to the network namespace.
NamespaceNet
// NamespaceUser is the reference to the user namespace.
NamespaceUser
// NamespaceUTS is the reference to the UTS namespace.
NamespaceUTS
)