forked from kata-containers/agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
42 lines (35 loc) · 710 Bytes
/
api.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
//
// Copyright (c) 2017 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
//
package main
import (
"github.com/sirupsen/logrus"
)
// Serial channel
var (
serialChannelName = "agent.channel.0"
virtIOPath = "/sys/class/virtio-ports"
devRootPath = "/dev"
)
// VSock
const (
vSockPort = 1024
)
var vSockDevPath = "/dev/vsock"
// Signals
const (
// If a process terminates because of signal "n"
// The exit code is "128 + signal_number"
// http://tldp.org/LDP/abs/html/exitcodes.html
exitSignalOffset = 128
)
// Global
const (
agentName = "kata-agent"
exitSuccess = 0
exitFailure = 1
defaultLogLevel = logrus.InfoLevel
selfBinPath = "/proc/self/exe"
)