Files
podman/pkg/domain/infra/abi/runtime.go
Paul Holzinger 942f789a88 set !remote build tags where needed
The new golangci-lint version 1.60.1 has problems with typecheck when
linting remote files. We have certain pakcages that should never be
inlcuded in remote but the typecheck tries to compile all of them but
this never works and it seems to ignore the exclude files we gave it.

To fix this the proper way is to mark all packages we only use locally
with !remote tags. This is a bit ugly but more correct. I also moved the
DecodeChanges() code around as it is called from the client so the
handles package which should only be remote doesn't really fit anyway.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-08-19 11:41:28 +02:00

38 lines
684 B
Go

//go:build !remote
package abi
import (
"sync"
"github.com/containers/podman/v5/libpod"
)
// Image-related runtime linked against libpod library
type ImageEngine struct {
Libpod *libpod.Runtime
FarmNode
}
// Container-related runtime linked against libpod library
type ContainerEngine struct {
Libpod *libpod.Runtime
}
// Container-related runtime linked against libpod library
type SystemEngine struct {
Libpod *libpod.Runtime
}
type FarmNode struct {
platforms sync.Once
platformsErr error
os string
arch string
variant string
nativePlatforms []string
emulatedPlatforms []string
}
var shutdownSync sync.Once