Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVIPManager ¶
func NewVIPManager(lg *zap.Logger, cfgGetter config.ConfigGetter) (*vipManager, error)
Types ¶
type NetworkOperation ¶
type NetworkOperation interface {
HasIP() (bool, error)
AddIP() error
DeleteIP() error
SendARP() error
Addr() string
}
NetworkOperation is the interface for adding, deleting, and broadcasting VIP. Extract the operations into an interface to make testing easier.
func NewNetworkOperation ¶
func NewNetworkOperation(addressStr, linkStr string) (NetworkOperation, error)
Click to show internal directories.
Click to hide internal directories.