Documentation ¶
Overview ¶
PulseHA - HA Cluster Daemon Copyright (C) 2017-2020 Andrew Zak <andrew@linux.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func ArpScan(addrWSubnet string) string
- func BringIPdown(iface, ip string) error
- func BringIPup(iface, ip string) error
- func CheckIfIPExists(ipAddr string) (bool, string, error)
- func Curl(httpRequestURL string) bool
- func GetInterfaceNames() []string
- func ICMPv4(Ipv4Addr string) bool
- func IPv6NDP(ipv6Iface string) string
- func InterfaceExist(name string) (bool, netlink.Link)
- func SendGARP(iface, ip string) bool
- type ICMPv6MessageHeader
- type ICMPv6NeighborSolicitation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArpScan ¶
* Function to perform an arp scan on the network. This will allow us to see which IP's are available.
func BringIPdown ¶
* This function is to bring down a network interface
func CheckIfIPExists ¶
* Checks to see if an IP exists on an interface already
func Curl ¶
* Perform a curl request to a web host. This only returns a boolean based off the http status code received by the request.
func InterfaceExist ¶
* Check if an interface exists on the local node