Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultConfDir is the default dir where configurations are found DefaultConfDir = "/etc/cni/net.d/nv-ipam.d" // DefaultDaemonSocket is the default socket path for the daemon DefaultDaemonSocket = "unix:///var/lib/cni/nv-ipam/daemon.sock" // DefaultDaemonCallTimeoutSeconds is the default timeout IPAM daemon calls DefaultDaemonCallTimeoutSeconds = 5 // DefaultLogFile default log file path to be used for logging DefaultLogFile = "/var/log/nv-ipam-cni.log" // DefaultLogLevel is the default log level DefaultLogLevel = "info" // ConfFileName is the name of CNI configuration file found in conf dir ConfFileName = "nv-ipam.conf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfLoader ¶ added in v0.0.3
type ConfLoader interface { // LoadConf loads CNI configuration from Json data LoadConf(bytes []byte) (*NetConf, error) }
ConfLoader loads CNI configuration
func NewConfLoader ¶ added in v0.0.3
func NewConfLoader() ConfLoader
type IPAMConf ¶
type IPAMConf struct { types.IPAM // PoolName is the name of the pool to be used to allocate IP PoolName string `json:"poolName,omitempty"` // Address of the NVIDIA-ipam DaemonSocket DaemonSocket string `json:"daemonSocket,omitempty"` DaemonCallTimeoutSeconds int `json:"daemonCallTimeoutSeconds,omitempty"` ConfDir string `json:"confDir,omitempty"` LogFile string `json:"logFile,omitempty"` LogLevel string `json:"logLevel,omitempty"` // internal fields Pools []string `json:"-"` }
IPAMConf is the configuration supported by our CNI plugin
Click to show internal directories.
Click to hide internal directories.