Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCNIConfPath = filepath.Join(buildcfg.SYSCONFDIR, "singularity", "network")
DefaultCNIConfPath is the default directory to CNI network configuration files
View Source
var DefaultCNIPluginPath = filepath.Join(buildcfg.LIBEXECDIR, "singularity", "cni")
DefaultCNIPluginPath is the default directory to CNI plugins executables
Functions ¶
func AvailableNetworks ¶
AvailableNetworks lists configured networks in configuration path directory provided by cniPath
Types ¶
type CNIPath ¶
CNIPath contains path to CNI configuration directory and path to executable CNI plugins directory
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
Setup contains network installation setup
func NewSetup ¶
func NewSetup(networks []string, containerID string, netNS string, cniPath *CNIPath) (*Setup, error)
NewSetup creates and returns a network setup to configure, add and remove network interfaces in container
func (*Setup) AddNetworks ¶
AddNetworks brings up networks interface in container
func (*Setup) DelNetworks ¶
DelNetworks tears down networks interface in container
Click to show internal directories.
Click to hide internal directories.