summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate/oci_unsupported.go
blob: 7e1b8c42cad8e32801d40f4f2f70fa1d1320684c (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
//go:build !linux && !freebsd
// +build !linux,!freebsd

package generate

import (
	"context"
	"errors"

	"github.com/containers/common/libimage"
	"github.com/containers/common/pkg/config"
	"github.com/containers/podman/v4/libpod"
	"github.com/containers/podman/v4/pkg/specgen"
	spec "github.com/opencontainers/runtime-spec/specs-go"
)

// SpecGenToOCI returns the base configuration for the container.
func SpecGenToOCI(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Runtime, rtc *config.Config, newImage *libimage.Image, mounts []spec.Mount, pod *libpod.Pod, finalCmd []string, compatibleOptions *libpod.InfraInherit) (*spec.Spec, error) {
	return nil, errors.New("unsupported SpecGenToOCI")
}

func WeightDevices(wtDevices map[string]spec.LinuxWeightDevice) ([]spec.LinuxWeightDevice, error) {
	return []spec.LinuxWeightDevice{}, errors.New("unsupported WeightDevices")
}