Documentation
¶
Index ¶
- Constants
- func DeleteNetwork(containerName string) error
- func GetBridgeVethLinks() (map[string]*Bridge, error)
- func IsCNIAvailable() error
- func PurgeBridgeNetwork(bridge *Bridge) error
- func PurgeNetworks() error
- func RepairNetwork(containerName string) error
- func StartNetwork(containerName string, netConfig dto.NetworkConfig) (error, map[string][]any, net.IP, net.IP)
- func WriteStringToResolvConf(ctx context.Context, task containerd.Task, content string) error
- type Bridge
- type IP
- type IPAddresses
- type PurgedNetworkInfo
Constants ¶
View Source
const MAX_SUBNET = 184549120 // 10.255.255.0
View Source
const MIN_SUBNET = 167772160 // 10.0.0.0
View Source
const SUBNET_OFFSET = 256
Variables ¶
This section is empty.
Functions ¶
func DeleteNetwork ¶
func GetBridgeVethLinks ¶
Returns bridges with veth links from the host system
func IsCNIAvailable ¶ added in v0.1.2
func IsCNIAvailable() error
IsCNIAvailable checks if CNI path and all required plugins exist
func PurgeBridgeNetwork ¶
func PurgeNetworks ¶
func PurgeNetworks() error
func RepairNetwork ¶
func StartNetwork ¶
func WriteStringToResolvConf ¶
Types ¶
type IP ¶
func GetNetworkConfig ¶
type IPAddresses ¶
type IPAddresses struct {
Addresses []IP `json:"ips"`
}
type PurgedNetworkInfo ¶
Click to show internal directories.
Click to hide internal directories.