mirror of
https://github.com/containers/podman.git
synced 2025-06-18 07:28:57 +08:00

this uses the specgen structure to create containers rather than the outdated createconfig. right now, only the apiv2 create is wired up. eventually the cli will also have to be done. Signed-off-by: Brent Baude <bbaude@redhat.com>
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
// +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")
|
|
}
|