package
0.0.0-20241104161355-939959eb3a81
Repository: https://github.com/uyuni-project/uyuni-tools.git
Documentation: pkg.go.dev

# Functions

AddPodmanArgFlag add the podman arguments to a command.
BuildRpmImagePath checks the image metadata and returns the RPM Image path.
CleanSystemdConfFile separates the Service.conf file once generated into generated.conf and custom.conf.
DeleteContainer deletes a container based on its name.
DeleteImage deletes a podman image based on its name.
DeleteNetwork deletes the uyuni podman network.
DeleteVolume deletes a podman volume based on its name.
EnablePodmanSocket enables the podman socket.
GenerateSystemdConfFile creates a new systemd service configuration file (e.g.
GetCommonParams splits the common arguments.
GetPulledImageName returns the fullname of a pulled image.
GetRpmImageName return the RPM Image name and the tag, given an image.
GetRpmImagePath return the RPM image path.
GetRunningImage given a container name, return the image name.
GetServiceConfFolder return the conf folder for systemd services.
GetServiceConfPath return the path for generated.conf file.
GetServiceImage returns the value of the UYUNI_IMAGE variable for a systemd service.
GetServicePath return the path for a given service.
HasIpv6Enabled returns whether a podman network has IPv6 enabled.
Inspect check values on a given image and deploy.
InspectHost gathers data on the host where to install the server or proxy.
IsImagePresent return true if the image is present.
IsNetworkPresent returns whether a network is already present.
NewHostInspector creates a new HostInspector generating the inspection script and data in scriptDir.
PodmanLogin logs in the registry.suse.com registry if needed.
PrepareImage ensures the container image is pulled or pull it if the pull policy allows it.
RunContainer execute a container.
RunSupportConfigOnPodmanHost will run supportconfig command on podman machine.
SetupNetwork creates the podman network.
ShowAvailableTag returns the list of available tag for a given image.

# Constants

HubXmlrpcContainerName is the container name for the Hub XML-RPC API.
HubXmlrpcService is the name of the systemd service for the Hub XMLRPC container.
ProxyService is the name of the systemd service for the proxy.
ServerAttestationService is the name of the systemd service for the coco attestation container.
ServerContainerName represents the server container name.
ServerService is the name of the systemd service for the server.
UyuniNetwork is the name of the podman network for Uyuni and its proxies.

# Variables

ProxyContainerNames represents all the proxy container names.

# Structs

HostInspectData are the data returned by the host inspector.
HostInspector inspects either the proxy or the server hosts.
PodmanFlags stores the podman arguments.
SystemdImpl implements the Systemd interface.

# Interfaces

Systemd is an interface providing systemd operations.