Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpamConf ¶
type IpamConf struct { Pool PoolConf `json:"pool,omitempty" yaml:"pool,omitempty"` Server ServerConf `json:"server,omitempty" yaml:"server,omitempty"` }
func TryLoadFromDisk ¶
TryLoadFromDisk loads configuration from default location after server startup return nil error if configuration file not exists
type PoolConf ¶
type PoolConf struct { //per vxnet PoolHigh int `json:"poolHigh,omitempty" yaml:"poolHigh,omitempty"` PoolLow int `json:"poolLow,omitempty" yaml:"poolLow,omitempty"` //global MaxNic int `json:"maxNic,omitempty" yaml:"maxNic,omitempty"` Sync int `json:"sync,omitempty" yaml:"sync,omitempty"` NodeSync int `json:"nodeSync,omitempty" yaml:"nodeSync,omitempty"` RouteTableBase int `json:"routeTableBase,omitempty" yaml:"routeTableBase,omitempty"` Tag string `json:"tag,omitempty" yaml:"tag,omitempty"` VxNets []string `json:"vxNets,omitempty" yaml:"vxNets,omitempty"` }
type ServerConf ¶
type ServerConf struct {
ServerPath string `json:"serverPath,omitempty" yaml:"serverPath,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.