Documentation ¶
Index ¶
- Constants
- func ConnectETCD(config *IPMConfig) (*clientv3.Client, error)
- func DeleteKey(cli *clientv3.Client, prefix string) error
- func GetIPByInt(ip net.IP, n uint32) net.IP
- func GetKeyValuesWithPrefix(cli *clientv3.Client, key string) (map[string]string, error)
- func GetNextIP(ipn *net.IPNet) net.IP
- func IntToIP(nn uint32) net.IP
- func IpToInt(ip net.IP) (uint32, error)
- func PowTwo(times int) uint32
- func PutValue(cli *clientv3.Client, prefix, value string) error
- type CentralIPM
- type IPMConfig
Constants ¶
View Source
const ETCDPrefix string = "/ovs-cni/networks/"
Variables ¶
This section is empty.
Functions ¶
func GetKeyValuesWithPrefix ¶
Types ¶
type CentralIPM ¶
type IPMConfig ¶
type IPMConfig struct { Type string `json:"type"` IPType string `json:"ipType"` Network string `json:"network"` SubnetLen int `json:"subnetLen"` SubnetMin string `json:"subnetMin"` SubnetMax string `json:"subnetMax"` ETCDURL string `json:"etcdURL"` ETCDCertFile string `json:"etcdCertFile"` ETCDKeyFile string `json:"etcdKeyFile"` ETCDTrustedCAFileFile string `json:"etcdTrustedCAFileFile"` }
Click to show internal directories.
Click to hide internal directories.