server: shuffle platform dependent operations

This commit is contained in:
Vincent Batts 2018-01-29 03:56:12 -05:00
parent 4d88008a65
commit cc39203b09
10 changed files with 821 additions and 718 deletions

View file

@ -0,0 +1,19 @@
// +build !linux
package server
import (
"fmt"
"github.com/kubernetes-incubator/cri-o/lib/sandbox"
"github.com/opencontainers/runtime-tools/generate"
pb "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2"
)
func findCgroupMountpoint(name string) error {
return fmt.Errorf("no cgroups on this platform")
}
func addDevicesPlatform(sb *sandbox.Sandbox, containerConfig *pb.ContainerConfig, specgen *generate.Generator) error {
return nil
}