conf

package
v0.0.0-...-58e557b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

func TryLoadFromDisk(name, path string) (*IpamConf, error)

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"`
	VipSync        int      `json:"vipSync,omitempty" yaml:"sync,omitempty"`
}

type ServerConf

type ServerConf struct {
	ServerPath string `json:"serverPath,omitempty" yaml:"serverPath,omitempty"`
}

Jump to

Keyboard shortcuts

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