Documentation ¶
Index ¶
- Constants
- 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
- type CacheLock
- type ConnectionInfo
- type MachineContext
- type MachineInspect
- type MachineList
- type PodmanSocket
- type SSHConfig
Constants ¶
View Source
const (
PodmanMachineErrorMessage = `` /* 202-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetFreeLocalTcpPort ¶
func IsPortOpen ¶
func IsProcessAlive ¶
func PullAndInspect ¶
PullAndInspect inpects the image, pulling in if the image if required
func ReadPidFile ¶
func WaitForFileWithBackoffs ¶
WaitForFileWithBackoffs attempts to discover a file in maxBackoffs attempts
func WithExitCode ¶
SetExitCode set the exit code for exec.ExitError errors, and no error is returned
func WritePidFile ¶
Types ¶
type CacheLock ¶
type CacheLock struct {
// contains filtered or unexported fields
}
func NewCacheLock ¶
NewCacheLock returns a new instance of *CacheLock. It takes the path to the VM cache dir.
type ConnectionInfo ¶
type ConnectionInfo struct {
PodmanSocket PodmanSocket `json:"PodmanSocket"`
}
type MachineContext ¶
func GetMachineContext ¶
func GetMachineContext() (*MachineContext, error)
type MachineInspect ¶
type MachineInspect struct { ConnectionInfo ConnectionInfo `json:"ConnectionInfo"` SSHConfig SSHConfig `json:"SSHConfig"` Rootful bool `json:"Rootful"` }
type MachineList ¶
type PodmanSocket ¶
type PodmanSocket struct {
Path string `json:"Path"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.