hypervisor: Expose the hypervisor itself

Export the top level hypervisor type

s/hypervisor/Hypervisor

Fixes: #2880

Signed-off-by: Manohar Castelino <mcastelino@apple.com>
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
This commit is contained in:
Manohar Castelino
2021-10-22 16:27:47 -07:00
committed by Eric Ernst
parent a72bed5b34
commit 52268d0ece
20 changed files with 44 additions and 42 deletions

View File

@@ -54,9 +54,9 @@ var sandboxTracingTags = map[string]string{
}
const (
// vmStartTimeout represents the time in seconds a sandbox can wait before
// VmStartTimeout represents the time in seconds a sandbox can wait before
// to consider the VM starting operation failed.
vmStartTimeout = 10
VmStartTimeout = 10
// DirMode is the permission bits used for creating a directory
DirMode = os.FileMode(0750) | os.ModeDir
@@ -171,7 +171,7 @@ type Sandbox struct {
ctx context.Context
devManager api.DeviceManager
factory Factory
hypervisor hypervisor
hypervisor Hypervisor
agent agent
store persistapi.PersistDriver
@@ -1199,7 +1199,7 @@ func (s *Sandbox) startVM(ctx context.Context) (err error) {
return vm.assignSandbox(s)
}
return s.hypervisor.StartVM(ctx, vmStartTimeout)
return s.hypervisor.StartVM(ctx, VmStartTimeout)
}); err != nil {
return err
}