Versions in this module Expand all Collapse all v0 v0.1.2 Dec 10, 2024 Changes in this version + const PodmanMachineErrorMessage + func FileExists(path string) (bool, error) + func GetFreeLocalTcpPort() (int, error) + func IsPortOpen(port int) bool + func IsProcessAlive(pid int) bool + func PullAndInspect(ctx context.Context, imageNameOrId string) (*types.ImageInspectReport, error) + func ReadPidFile(pidFile string) (int, error) + func SendInterrupt(pid int) error + func WaitForFileWithBackoffs(maxBackoffs int, backoff time.Duration, path string) error + func WithExitCode(err error) (int, error) + func WritePidFile(pidFile string, pid int) error + type AccessMode uint + const Exclusive + const Shared + type CacheLock struct + func NewCacheLock(lockDir, cacheDir string) CacheLock + func (l CacheLock) TryLock(mode AccessMode) (bool, error) + func (l CacheLock) Unlock() error + type ConnectionInfo struct + PodmanSocket PodmanSocket + type MachineContext struct + Ctx context.Context + SSHIdentityPath string + func GetMachineContext() (*MachineContext, error) + type MachineInspect struct + ConnectionInfo ConnectionInfo + Rootful bool + SSHConfig SSHConfig + type MachineList struct + Default bool + Name string + Running bool + type PodmanSocket struct + Path string + type SSHConfig struct + IdentityPath string