mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-23 15:34:28 +01:00
virtcontainers: make CreateDevice func private
CreateDevice() is only used by `NewDevices()` so we can make it private and there's no need to export it. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
@@ -57,6 +57,5 @@ type Device interface {
|
||||
// DeviceManager can be used to create a new device, this can be used as single
|
||||
// device management object.
|
||||
type DeviceManager interface {
|
||||
CreateDevice(devInfo config.DeviceInfo) Device
|
||||
NewDevices(devInfos []config.DeviceInfo) ([]Device, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user