Documentation
¶
Index ¶
- func BuildFPMImage(version string) error
- func ContainerExists(name string) (bool, error)
- func ContainerRunning(name string) (bool, error)
- func ContainerfileHash() (string, error)
- func DaemonReload() error
- func EnsureNetwork(name string) error
- func GetQuadletTemplate(name string) (string, error)
- func NeedsFPMRebuild() bool
- func NetworkGateway(name string) string
- func QuadletInstalled(name string) bool
- func RebuildFPMImage(version string) error
- func RemoveQuadlet(name string) error
- func RestartUnit(name string) error
- func Run(args ...string) (string, error)
- func RunSilent(args ...string) error
- func StartUnit(name string) error
- func StopUnit(name string) error
- func StoreFPMHash() error
- func UnitStatus(name string) (string, error)
- func WriteQuadlet(name, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFPMImage ¶ added in v0.1.14
BuildFPMImage builds the lerd PHP-FPM image for the given version if it doesn't exist. Prints build output to stdout so the user can see progress.
func ContainerExists ¶
ContainerExists returns true if the named container exists (running or not).
func ContainerRunning ¶
ContainerRunning returns true if the named container is running.
func ContainerfileHash ¶ added in v0.1.25
ContainerfileHash returns the SHA-256 hash of the embedded PHP-FPM Containerfile. This is used to detect when images need to be rebuilt after a lerd update.
func EnsureNetwork ¶
EnsureNetwork creates the named Podman network if it does not already exist.
func GetQuadletTemplate ¶
GetQuadletTemplate returns the content of a named quadlet template file.
func NeedsFPMRebuild ¶ added in v0.1.25
func NeedsFPMRebuild() bool
NeedsFPMRebuild returns true if the stored Containerfile hash differs from the current embedded Containerfile, meaning images should be rebuilt.
func NetworkGateway ¶ added in v0.1.14
NetworkGateway returns the gateway IP of the named Podman network. Falls back to "127.0.0.1" if it cannot be determined.
func QuadletInstalled ¶ added in v0.1.17
QuadletInstalled returns true if a quadlet .container file exists for the given unit name.
func RebuildFPMImage ¶ added in v0.1.17
RebuildFPMImage force-removes and rebuilds the PHP-FPM image for the given version.
func RemoveQuadlet ¶
RemoveQuadlet removes a Podman quadlet container unit file.
func StoreFPMHash ¶ added in v0.1.25
func StoreFPMHash() error
StoreFPMHash writes the current Containerfile hash to disk.
func UnitStatus ¶
UnitStatus returns the active state of a systemd user unit.
func WriteQuadlet ¶
WriteQuadlet writes a Podman quadlet container unit file.
Types ¶
This section is empty.