package
3.4.7
Repository: https://github.com/containers/podman.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

CalcGatewayIP takes a network and returns the first IP in it.
Create the CNI network.
Exists says whether a given network exists or not; it meant specifically for restful responses so 404s can be used.
FirstIPInSubnet gets the first IP in a subnet.
GetBridgeNamesFromFileSystem is a convenience function to get all the bridge names from the configured networks.
GetCNIConfDir get CNI configuration directory.
GetCNIConfigPathByNameOrID finds a CNI network by name and returns its configuration file path.
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.
GetNetworkLabels returns a list of labels as a string.
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.
IfPassesFilter filters NetworkListReport and returns true if the filter match the given config.
IfPassesPruneFilter filters NetworkListReport and returns true if the prune filter match the given config.
InspectNetwork reads a CNI config and returns its configuration.
IsIPv6 returns if netIP is IPv6.
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 for IPv4 or ::/0 for IPv6.
NewIPAMHostLocalConf creates a new IPAMHostLocal configuration.
NewIPAMLocalHostRange create a new IPAM range.
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.
No description provided by the author
NewPortMapPlugin creates a predefined, default portmapping configuration.
NewTuningPlugin creates a generic tuning section.
NextSubnet returns subnet incremented by 1.
NormalizeName translates a network ID into a name.
PruneNetworks removes networks that are not being used and that is not the default network.
ReadRawCNIConfByNameOrID 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.
LockFileName is used for obtaining a lock and is appended to libpod's tmpdir in practice.
PodmanLabelKey key used to store the podman network label in a cni config.

# Variables

BridgeNetworkDriver defines the bridge cni driver.
DefaultNetworkDriver is the default network type used.
ErrNoSuchNetworkInterface indicates that no network interface exists.
MacVLANNetworkDriver defines the macvlan cni driver.
SupportedNetworkDrivers describes the list of supported drivers.

# Structs

CNILock is for preventing name collision and unpredictable results when doing some CNI operations.
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.
IPAMConfig 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.
PodmanMachineConfig enables port handling on the host OS.
PortMapConfig describes the default portmapping config.
TuningConfig describes the tuning plugin.

# Interfaces

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

# Type aliases

NcArgs describes the cni args field.
NcLabels describes the label map.
NcList describes a generic map.