oci: abstract out cgroup calls per platform
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: abstract out syscall for platforms Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: abstract out the unix pipe per platform Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> oci: change the unix calls to be platform independent Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
fb87c2f68b
commit
d6966951d6
6 changed files with 115 additions and 36 deletions
20
oci/oci_unsupported.go
Normal file
20
oci/oci_unsupported.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
// +build !linux
|
||||
|
||||
package oci
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func createContainerPlatform(c *Container, cgroupParent string, pid int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func sysProcAttrPlatform() *syscall.SysProcAttr {
|
||||
return &syscall.SysProcAttr{}
|
||||
}
|
||||
|
||||
func newPipe() (parent *os.File, child *os.File, err error) {
|
||||
return os.Pipe()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue