Skip to content

Commit

Permalink
virtcontainer: sconstification of constifiable vars
Browse files Browse the repository at this point in the history
Fixes kata-containers#142

Signed-off-by: zhangjie <[email protected]>
  • Loading branch information
kadisi committed Jun 20, 2018
1 parent 4f102f8 commit 2d65499
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion virtcontainers/device/drivers/vfio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/kata_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/shim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
)

var (
const (
testRunningProcess = "sleep"
)

Expand Down
2 changes: 1 addition & 1 deletion virtcontainers/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2d65499

Please sign in to comment.