github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/spec/config_unsupported.go (about)

     1  // +build !linux
     2  
     3  package createconfig
     4  
     5  import (
     6  	spec "github.com/opencontainers/runtime-spec/specs-go"
     7  	"github.com/opencontainers/runtime-tools/generate"
     8  	"github.com/pkg/errors"
     9  )
    10  
    11  func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) {
    12  	return nil, errors.New("function not supported on non-linux OS's")
    13  }
    14  func addDevice(g *generate.Generator, device string) error {
    15  	return errors.New("function not implemented")
    16  }
    17  
    18  func addPrivilegedDevices(g *generate.Generator) error {
    19  	return errors.New("function not implemented")
    20  }
    21  
    22  func (c *CreateConfig) createBlockIO() (*spec.LinuxBlockIO, error) {
    23  	return nil, errors.New("function not implemented")
    24  }
    25  
    26  func makeThrottleArray(throttleInput []string, rateType int) ([]spec.LinuxThrottleDevice, error) {
    27  	return nil, errors.New("function not implemented")
    28  }
    29  
    30  func DevicesFromPath(g *generate.Generator, devicePath string) error {
    31  	return errors.New("function not implemented")
    32  }
    33  
    34  func deviceCgroupRules(g *generate.Generator, deviceCgroupRules []string) error {
    35  	return errors.New("function not implemented")
    36  }