package netinfo
import "github.com/coreos/rkt/networking/netinfo"
Index ¶
Functions ¶
func Save ¶
Types ¶
type NetInfo ¶
type NetInfo struct { NetName string `json:"netName"` ConfPath string `json:"netConf"` PluginPath string `json:"pluginPath"` IfName string `json:"ifName"` IP net.IP `json:"ip"` Args string `json:"args"` Mask net.IP `json:"mask"` // we used IP instead of IPMask because support for json serialization (we don't need specific functionalities) HostIP net.IP `json:"-"` IP4 *types.IPConfig `json:"-"` DNS types.DNS `json:"-"` }
A type and some structure to represent rkt's view of a *runtime* network instance.
Each instance represents a network configuration that has been enabled, along with runtime information from the network plugin.
This information is also serialized in the pod's runtime directory so that `rkt list` and other stage0 programs can access the runtime state.
func LoadAt ¶
func (*NetInfo) MergeCNIResult ¶
MergeCNIResult will incorporate the result of a CNI plugin's execution
Source Files ¶
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 days ago –
Tools for package owners.