summaryrefslogtreecommitdiff
path: root/pkg/spec/config_unsupported.go
blob: 4021934568f5be9b8ba8e7efe24d89408be1e389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// +build !linux

package createconfig

import (
	spec "github.com/opencontainers/runtime-spec/specs-go"
	"github.com/opencontainers/runtime-tools/generate"
	"github.com/pkg/errors"
)

func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.LinuxSeccomp, error) {
	return nil, errors.New("function not supported on non-linux OS's")
}
func addDevice(g *generate.Generator, device string) error {
	return errors.New("function not implemented")
}

func addPrivilegedDevices(g *generate.Generator) error {
	return errors.New("function not implemented")
}

func (c *CreateConfig) createBlockIO() (*spec.LinuxBlockIO, error) {
	return nil, errors.New("function not implemented")
}

func makeThrottleArray(throttleInput []string, rateType int) ([]spec.LinuxThrottleDevice, error) {
	return nil, errors.New("function not implemented")
}

func DevicesFromPath(g *generate.Generator, devicePath string) error {
	return errors.New("function not implemented")
}

func deviceCgroupRules(g *generate.Generator, deviceCgroupRules []string) error {
	return errors.New("function not implemented")
}

func getNOFILESettings() (uint64, uint64) {
	return kernelMax, kernelMax
}

func getNPROCSettings() (uint64, uint64) {
	return kernelMax, kernelMax
}