net

package
v0.0.0-...-398fed0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultGateway

func AddDefaultGateway(ip string) error

func AddIp

func AddIp(ip, iface string) error

AddIp it receives a CIDR Address and add it to the given interface

func DelIp

func DelIp(ip, iface string) error

func DelVips

func DelVips(iface string) error

func DeleteDefaultGateway

func DeleteDefaultGateway(route *netlink.Route) error

func GetDefaultGateway

func GetDefaultGateway() (*netlink.Route, error)

func GetFusisVipsIps

func GetFusisVipsIps(iface string) ([]string, error)

func GetIpByInterface

func GetIpByInterface(iface string) (string, error)

func GetVips

func GetVips(iface string) ([]netlink.Addr, error)

func SetIpForwarding

func SetIpForwarding() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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