Versions in this module Expand all Collapse all v3 v3.4.10 Aug 29, 2022 v3.4.8 Aug 29, 2022 Changes in this version + const CNIConfigDir + const CNIDeviceName + const DefaultPodmanDomainName + const LockFileName + const PodmanLabelKey + var BridgeNetworkDriver = "bridge" + var DefaultNetworkDriver = BridgeNetworkDriver + var ErrNoSuchNetworkInterface = errors.New("unable to find interface name for network") + var MacVLANNetworkDriver = "macvlan" + var SupportedNetworkDrivers = []string + func CalcGatewayIP(ipn *net.IPNet) net.IP + func Create(name string, options entities.NetworkCreateOptions, ...) (*entities.NetworkCreateReport, error) + func Exists(config *config.Config, name string) (bool, error) + func FirstIPInSubnet(addr *net.IPNet) (net.IP, error) + func GetBridgeNamesFromFileSystem(config *config.Config) ([]string, error) + func GetCNIConfDir(configArg *config.Config) string + func GetCNIConfigPathByNameOrID(config *config.Config, name string) (string, error) + func GetDefaultPodmanNetwork() (*net.IPNet, error) + func GetFreeDeviceName(config *config.Config) (string, error) + func GetFreeNetwork(config *config.Config) (*net.IPNet, error) + func GetInterfaceNameFromConfig(path string) (string, error) + func GetLiveNetworkNames() ([]string, error) + func GetLiveNetworks() ([]*net.IPNet, error) + func GetNetworkNamesFromFileSystem(config *config.Config) ([]string, error) + func GetNetworksFromFilesystem(config *config.Config) ([]*allocator.Net, error) + func HasDNSNamePlugin(paths []string) bool + func IfPassesFilter(netconf *libcni.NetworkConfigList, filters map[string][]string) (bool, error) + func IfPassesPruneFilter(config *config.Config, netconf *libcni.NetworkConfigList, ...) (bool, error) + func InspectNetwork(config *config.Config, name string) (map[string]interface{}, error) + func IsIPv6(netIP net.IP) bool + func LastIPInSubnet(addr *net.IPNet) (net.IP, error) + func LoadCNIConfsFromDir(dir string) ([]*libcni.NetworkConfigList, error) + func NextSubnet(subnet *net.IPNet) (*net.IPNet, error) + func NormalizeName(config *config.Config, nameOrID string) (string, error) + func PruneNetworks(rtc *config.Config, usedNetworks map[string]bool) ([]*entities.NetworkPruneReport, error) + func ReadRawCNIConfByNameOrID(config *config.Config, name string) ([]byte, error) + func RemoveInterface(interfaceName string) error + func RemoveNetwork(config *config.Config, name string) error + func ValidateUserNetworkIsAvailable(config *config.Config, userNet *net.IPNet) error + type CNILock struct + type CNIPlugins interface + Bytes func() ([]byte, error) + type DNSNameConfig struct + Capabilities map[string]bool + DomainName string + PluginType string + func NewDNSNamePlugin(domainName string) DNSNameConfig + func (d DNSNameConfig) Bytes() ([]byte, error) + type FirewallConfig struct + Backend string + PluginType string + func NewFirewallPlugin() FirewallConfig + func (f FirewallConfig) Bytes() ([]byte, error) + type HostLocalBridge struct + BrName string + ForceAddress bool + HairpinMode bool + IPAM IPAMConfig + IPMasq bool + IsDefaultGW bool + IsGW bool + MTU int + PluginType string + PromiscMode bool + Vlan int + func NewHostLocalBridge(name string, isGateWay, isDefaultGW, ipMasq bool, mtu int, vlan int, ...) *HostLocalBridge + func (h *HostLocalBridge) Bytes() ([]byte, error) + type IPAMConfig struct + DataDir string + PluginType string + Ranges [][]IPAMLocalHostRangeConf + ResolveConf string + Routes []IPAMRoute + func NewIPAMHostLocalConf(routes []IPAMRoute, ipamRanges [][]IPAMLocalHostRangeConf) (IPAMConfig, error) + func (i IPAMConfig) Bytes() ([]byte, error) + type IPAMLocalHostRangeConf struct + Gateway string + RangeEnd string + RangeStart string + Subnet string + func NewIPAMLocalHostRange(subnet *net.IPNet, ipRange *net.IPNet, gw net.IP) ([]IPAMLocalHostRangeConf, error) + type IPAMRoute struct + Dest string + func NewIPAMDefaultRoute(isIPv6 bool) (IPAMRoute, error) + func NewIPAMRoute(r *net.IPNet) IPAMRoute + type MacVLANConfig struct + IPAM IPAMConfig + MTU int + Master string + PluginType string + func NewMacVLANPlugin(device string, gateway net.IP, ipRange *net.IPNet, subnet *net.IPNet, mtu int) (MacVLANConfig, error) + func (p MacVLANConfig) Bytes() ([]byte, error) + type NcArgs map[string]NcLabels + type NcLabels map[string]string + func GetNetworkLabels(list *libcni.NetworkConfigList) NcLabels + type NcList map[string]interface + func NewNcList(name, version string, labels NcLabels) NcList + type PodmanMachineConfig struct + Capabilities map[string]bool + PluginType string + func NewPodmanMachinePlugin() PodmanMachineConfig + func (p PodmanMachineConfig) Bytes() ([]byte, error) + type PortMapConfig struct + Capabilities map[string]bool + PluginType string + func NewPortMapPlugin() PortMapConfig + func (p PortMapConfig) Bytes() ([]byte, error) + type TuningConfig struct + PluginType string + func NewTuningPlugin() TuningConfig + func (f TuningConfig) Bytes() ([]byte, error)