Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultNetworkName = "bridge" DefaultID = 0 DefaultCIDR = "10.4.0.0/24" )
View Source
const ConfigListTemplate = `` /* 687-byte string literal not displayed */
ConfigListTemplate was copied from https://github.com/containers/podman/blob/v2.2.0/cni/87-podman-bridge.conflist
Variables ¶
This section is empty.
Functions ¶
func AcquireNextID ¶
func AcquireNextID(l []*NetworkConfigList) (int, error)
AcquireNextID suggests the next ID.
Types ¶
type ConfigListTemplateOpts ¶
type NetworkConfigList ¶
type NetworkConfigList struct { *libcni.NetworkConfigList NerdctlID *int File string }
func ConfigLists ¶
func ConfigLists(e *CNIEnv) ([]*NetworkConfigList, error)
ConfigLists loads config from dir if dir exists. The result also contains DefaultConfigList
func DefaultConfigList ¶
func DefaultConfigList(e *CNIEnv) (*NetworkConfigList, error)
func GenerateConfigList ¶
func GenerateConfigList(e *CNIEnv, id int, name, cidr string) (*NetworkConfigList, error)
GenerateConfigList creates NetworkConfigList. GenerateConfigList does not fill "File" field.
TODO: enable CNI isolation plugin
Click to show internal directories.
Click to hide internal directories.