podman

package
v0.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(name string) error

Init provisions a new Podman machine.

func IsRunning

func IsRunning(name string) bool

IsRunning checks if the named machine is in the "running" state.

func Remove

func Remove(name string) error

Remove force-removes a Podman machine by name. Non-fatal if not found.

func SSH

func SSH(machineName, command string) (string, error)

SSH executes a shell command inside the named Podman machine and returns stdout.

func SetDefault

func SetDefault(name string) error

SetDefault sets the active Podman connection to the named machine.

func Start

func Start(name string) error

Start starts a named Podman machine.

func StopAll

func StopAll() error

StopAll stops all running Podman machines (Podman supports one active VM).

Types

type MachineInfo

type MachineInfo struct {
	Name  string `json:"Name"`
	State string `json:"State"`
}

MachineInfo represents the JSON output of podman machine inspect.

func Inspect

func Inspect(name string) (*MachineInfo, error)

Inspect returns structured info about a machine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL