Files
podman/libpod/runtime_pod_unsupported.go
Doug Rabson 1b88927c2c libpod: Add stubs for non-linux builds
Note: this makes info.go linux-only since it mixes linux-specific and
generic code. This should be addressed in a separate refactoring PR.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-08-17 11:45:07 +01:00

31 lines
931 B
Go

//go:build !linux
// +build !linux
package libpod
import (
"context"
"errors"
"github.com/containers/podman/v4/pkg/specgen"
)
// NewPod makes a new, empty pod
func (r *Runtime) NewPod(ctx context.Context, p specgen.PodSpecGenerator, options ...PodCreateOption) (_ *Pod, deferredErr error) {
return nil, errors.New("not implemented (*Runtime) NewPod")
}
// AddInfra adds the created infra container to the pod state
func (r *Runtime) AddInfra(ctx context.Context, pod *Pod, infraCtr *Container) (*Pod, error) {
return nil, errors.New("not implemented (*Runtime) AddInfra")
}
// SavePod is a helper function to save the pod state from outside of libpod
func (r *Runtime) SavePod(pod *Pod) error {
return errors.New("not implemented (*Runtime) SavePod")
}
func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool, timeout *uint) error {
return errors.New("not implemented (*Runtime) removePod")
}