mirror of
https://github.com/containers/podman.git
synced 2025-06-01 17:17:47 +08:00
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>
This commit is contained in:
14
libpod/container_stat_unsupported.go
Normal file
14
libpod/container_stat_unsupported.go
Normal file
@ -0,0 +1,14 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package libpod
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/containers/podman/v4/libpod/define"
|
||||
)
|
||||
|
||||
func (c *Container) stat(containerMountPoint string, containerPath string) (*define.FileInfo, string, string, error) {
|
||||
return nil, "", "", errors.New("Containers stat not supported on this platform")
|
||||
}
|
Reference in New Issue
Block a user