Documentation ¶
Index ¶
- Constants
- func CheckLastLease(log logrus.FieldLogger, fileName, expectedIface, expectedIp string) error
- func CorednsWatch(kubeconfigPath, clusterConfigPath, templatePath, cfgPath string, ...) error
- func DnsmasqWatch(kubeconfigPath, templatePath, cfgPath string, apiVips []net.IP, ...) error
- func GetLastLeaseFromFile(log logrus.FieldLogger, fileName string) (string, string, error)
- func GetLeaseFile(cfgPath, name string) string
- func KeepalivedWatch(kubeconfigPath, clusterConfigPath, templatePath, cfgPath string, ...) error
- func LeaseInterface(log logrus.FieldLogger, masterDevice string, name string, mac net.HardwareAddr) (*net.Interface, error)
- func LeaseVIP(log logrus.FieldLogger, cfgPath, masterDevice, name string, ...) error
- func LeaseVIPs(log logrus.FieldLogger, cfgPath string, vipMasterIface string, vips []vip) error
- func Monitor(kubeconfigPath, clusterName, clusterDomain, templatePath, cfgPath string, ...) error
- func ReloadDnsmasq() error
- func RunFiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, ...)
- func RunInfiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, ...)
- type APIState
- type RuntimeConfig
Constants ¶
View Source
const MonitorConfFileName = "unsupported-monitor.conf"
Variables ¶
This section is empty.
Functions ¶
func CheckLastLease ¶
func CheckLastLease(log logrus.FieldLogger, fileName, expectedIface, expectedIp string) error
func CorednsWatch ¶
func DnsmasqWatch ¶
func GetLastLeaseFromFile ¶
func GetLeaseFile ¶
func KeepalivedWatch ¶
func LeaseInterface ¶
func LeaseInterface(log logrus.FieldLogger, masterDevice string, name string, mac net.HardwareAddr) (*net.Interface, error)
func LeaseVIP ¶
func LeaseVIP(log logrus.FieldLogger, cfgPath, masterDevice, name string, mac net.HardwareAddr, ip string) error
func LeaseVIPs ¶
func LeaseVIPs(log logrus.FieldLogger, cfgPath string, vipMasterIface string, vips []vip) error
func ReloadDnsmasq ¶
func ReloadDnsmasq() error
func RunFiniteWatcher ¶
func RunFiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, fileName, expectedIface, expectedIp string, write chan<- error)
func RunInfiniteWatcher ¶
func RunInfiniteWatcher(log logrus.FieldLogger, watcher *fsnotify.Watcher, fileName, expectedIface, expectedIp string)
Types ¶
type RuntimeConfig ¶
type RuntimeConfig struct {
LBConfig *config.ApiLBConfig
}
Click to show internal directories.
Click to hide internal directories.