mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-29 12:35:31 +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:
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
|
||||
}
|
Reference in New Issue
Block a user