podman

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerExists

func ContainerExists(name string) (bool, error)

ContainerExists returns true if the named container exists (running or not).

func ContainerRunning

func ContainerRunning(name string) (bool, error)

ContainerRunning returns true if the named container is running.

func DaemonReload

func DaemonReload() error

DaemonReload runs systemctl --user daemon-reload.

func EnsureNetwork

func EnsureNetwork(name string) error

EnsureNetwork creates the named Podman network if it does not already exist.

func GetQuadletTemplate

func GetQuadletTemplate(name string) (string, error)

GetQuadletTemplate returns the content of a named quadlet template file.

func RemoveQuadlet

func RemoveQuadlet(name string) error

RemoveQuadlet removes a Podman quadlet container unit file.

func RestartUnit

func RestartUnit(name string) error

RestartUnit restarts a systemd user unit.

func Run

func Run(args ...string) (string, error)

Run executes podman with the given arguments and returns stdout.

func RunSilent

func RunSilent(args ...string) error

RunSilent executes podman with the given arguments, discarding output.

func StartUnit

func StartUnit(name string) error

StartUnit starts a systemd user unit.

func StopUnit

func StopUnit(name string) error

StopUnit stops a systemd user unit.

func UnitStatus

func UnitStatus(name string) (string, error)

UnitStatus returns the active state of a systemd user unit.

func WriteQuadlet

func WriteQuadlet(name, content string) error

WriteQuadlet writes a Podman quadlet container unit file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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