virtcontainers: Define a Network interface

And move the Linux implementation into a GOOS specific file.

Fixes #3005

Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
Samuel Ortiz
2021-11-08 22:13:07 +00:00
committed by Samuel Ortiz
parent 5e119e90e8
commit e0b264430d
10 changed files with 1525 additions and 1524 deletions

View File

@@ -468,7 +468,7 @@ func (q *qemu) setConfig(config *HypervisorConfig) error {
}
// CreateVM is the Hypervisor VM creation implementation for govmmQemu.
func (q *qemu) CreateVM(ctx context.Context, id string, network *Network, hypervisorConfig *HypervisorConfig) error {
func (q *qemu) CreateVM(ctx context.Context, id string, network Network, hypervisorConfig *HypervisorConfig) error {
// Save the tracing context
q.ctx = ctx