network

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Infiniband is the ID used to identify Infiniband
	Infiniband = "IB"
	// Default is the ID used to identify the default networking configuration
	Default = "default"
)
View Source
const (
	// IBForceKey is the key used in the configuration file to specific in Infiniband should always be used
	IBForceKey = "force_ib"

	// MXMDirKey is the key used in the configuration file to specify where MXM files are installed
	MXMDirKey = "mxm_dir"

	// KNEMDirKey is the key used in the configuration file to specify where knem files are installed
	KNEMDirKey = "knem_dir"
)

Variables

This section is empty.

Functions

func IBSave

func IBSave(sysCfg *sys.Config) error

IBSave saves the IB configuration on the system into the tool's configuration file.

Types

type Info

type Info struct {
	ID   string
	Save SaveFn
}

Info is a structure storing the details about the network on the system

func Detect

func Detect(sysCfg *sys.Config) Info

Detect is the function called to detect the network on the system and load the corresponding networking component

func LoadDefault

func LoadDefault(sysCfg *sys.Config) (bool, Info)

LoadDefault is the function called to load the default component for networking

func LoadInfiniband

func LoadInfiniband(sysCfg *sys.Config) (bool, Info)

LoadInfiniband is the function called to load the IB component

type SaveFn

type SaveFn func(sysCfg *sys.Config) error

SaveFn is a function of a component to save the network configuration in a configuration file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL