package
1.9.3
Repository: https://github.com/containers/libpod.git
Documentation: pkg.go.dev

# Functions

CalcGatewayIP takes a network and returns the first IP in it.
FirstIPInSubnet gets the first IP in a subnet.
GetBridgeNamesFromFileSystem is a convenience function to get all the bridge names from the configured networks.
GetCNIConfigPathByName finds a CNI network by name and returns its configuration file path.
GetCNIPlugins returns a list of plugins that a given network has in the form of a string.
GetDefaultPodmanNetwork outputs the default network for podman.
GetFreeDeviceName returns a device name that is unused; used when no network name is provided by user.
GetFreeNetwork looks for a free network according to existing cni configuration files and network interfaces.
GetInterfaceNameFromConfig returns the interface name for the bridge plugin.
GetLiveNetworkNames returns a list of network interfaces on the system.
GetLiveNetworks returns a slice of networks representing what the system has defined as network interfaces.
GetNetworkNamesFromFileSystem gets all the names from the cni network configuration files.
GetNetworksFromFilesystem gets all the networks from the cni configuration files.
HasDNSNamePlugin looks to see if the dnsname cni plugin is present.
InspectNetwork reads a CNI config and returns its configuration.
IsSupportedDriver checks if the user provided driver is supported.
LastIPInSubnet gets the last IP in a subnet.
LoadCNIConfsFromDir loads all the CNI configurations from a dir.
NewDNSNamePlugin creates the dnsname config with a given domainname.
NewFirewallPlugin creates a generic firewall plugin.
NewHostLocalBridge creates a new LocalBridge for host-local.
NewIPAMDefaultRoute creates a new IPAMDefault route of 0.0.0.0/0.
NewIPAMHostLocalConf creates a new IPAMHostLocal configfuration.
NewIPAMRoute creates a new IPAM route configuration.
NewMacVLANPlugin creates a macvlanconfig with a given device name.
NewNcList creates a generic map of values with string keys and adds in version and network name.
NewPortMapPlugin creates a predefined, default portmapping configuration.
NextSubnet returns subnet incremented by 1.
ReadRawCNIConfByName reads the raw CNI configuration for a CNI network by name.
RemoveInterface removes an interface by the given name.
RemoveNetwork removes a given network by name.
ValidateUserNetworkIsAvailable returns via an error if a network is available to be used.

# Constants

CNIConfigDir is the path where CNI config files exist.
CNIDeviceName is the default network device name and in reality should have an int appended to it (cni-podman4).
DefaultPodmanDomainName is used for the dnsname plugin to define a localized domain name for a created network.

# Variables

No description provided by the author
SupportedNetworkDrivers describes the list of supported drivers.

# Structs

DNSNameConfig describes the dns container name resolution plugin config.
FirewallConfig describes the firewall plugin.
HostLocalBridge describes a configuration for a bridge plugin https://github.com/containernetworking/plugins/tree/master/plugins/main/bridge#network-configuration-reference.
IPAMDHCP describes the ipamdhcp config.
IPAMHostLocalConf describes an IPAM configuration https://github.com/containernetworking/plugins/tree/master/plugins/ipam/host-local#network-configuration-reference.
IPAMLocalHostRangeConf describes the new style IPAM ranges.
IPAMRoute describes a route in an ipam config.
MacVLANConfig describes the macvlan config.
PortMapConfig describes the default portmapping config.

# Interfaces

CNIPlugins is a way of marshalling a CNI network configuration to disk.

# Type aliases

NcList describes a generic map.