mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
katautils: Add Darwin stub for the netNS API
And move the current implementation into a Linux only file. Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
parent
9e3353a7e4
commit
abc681ca5f
22
src/runtime/pkg/katautils/network_darwin.go
Normal file
22
src/runtime/pkg/katautils/network_darwin.go
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (c) 2022 Apple Inc.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
package katautils
|
||||
|
||||
import (
|
||||
vc "github.com/kata-containers/kata-containers/src/runtime/virtcontainers"
|
||||
)
|
||||
|
||||
func EnterNetNS(networkID string, cb func() error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func SetupNetworkNamespace(config *vc.NetworkConfig) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func cleanupNetNS(netNSPath string) error {
|
||||
return nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user