virtcontainer: sconstification of constifiable vars

Fixes #142

Signed-off-by: zhangjie <iamkadisi@163.com>
This commit is contained in:
zhangjie 2018-06-20 14:09:23 +08:00
parent 4f102f8e8f
commit 2d65499d03
4 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ import (
)
// bind/unbind paths to aid in SRIOV VF bring-up/restore
var (
const (
pciDriverUnbindPath = "/sys/bus/pci/devices/%s/driver/unbind"
pciDriverBindPath = "/sys/bus/pci/drivers/%s/bind"
vfioNewIDPath = "/sys/bus/pci/drivers/vfio-pci/new_id"

View File

@ -28,7 +28,7 @@ import (
"github.com/kata-containers/runtime/virtcontainers/pkg/mock"
)
var (
const (
testKataProxyURLTempl = "unix://%s/kata-proxy-test.sock"
testBlockDeviceCtrPath = "testBlockDeviceCtrPath"
testPCIAddr = "04/02"

View File

@ -12,7 +12,7 @@ import (
"testing"
)
var (
const (
testRunningProcess = "sleep"
)

View File

@ -9,7 +9,7 @@ package virtcontainers
type ContainerType string
// List different types of containers
var (
const (
PodContainer ContainerType = "pod_container"
PodSandbox ContainerType = "pod_sandbox"
UnknownContainerType ContainerType = "unknown_container_type"