virtcontainers: move device operations to a more generic place

move device operations to a more generic place where they can be used
in any hypervisor implementation.

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2019-09-27 16:24:46 +00:00
parent 46d1957e0f
commit ed7240b40f
2 changed files with 5 additions and 5 deletions

View File

@ -27,6 +27,11 @@ type HypervisorType string
type operation int type operation int
const (
addDevice operation = iota
removeDevice
)
const ( const (
// FirecrackerHypervisor is the FC hypervisor. // FirecrackerHypervisor is the FC hypervisor.
FirecrackerHypervisor HypervisorType = "firecracker" FirecrackerHypervisor HypervisorType = "firecracker"

View File

@ -119,11 +119,6 @@ var defaultKernelParameters = []Param{
{"panic", "1"}, {"panic", "1"},
} }
const (
addDevice operation = iota
removeDevice
)
type qmpLogger struct { type qmpLogger struct {
logger *logrus.Entry logger *logrus.Entry
} }