Documentation ¶
Index ¶
- func GetENIGateway(mac string) (net.IP, error)
- func GetENIGatewayAddr(mac string) (netip.Addr, error)
- func GetENIID(mac string) (string, error)
- func GetENIPrimaryAddr(mac string) (netip.Addr, error)
- func GetENIPrimaryIP(mac string) (net.IP, error)
- func GetENIPrivateIPs(mac string) ([]net.IP, error)
- func GetENIPrivateIPv6IPs(mac string) ([]net.IP, error)
- func GetENIV6Gateway(mac string) (net.IP, error)
- func GetENIV6GatewayAddr(mac string) (netip.Addr, error)
- func GetENIVSwitchID(mac string) (string, error)
- func GetENIsMAC() ([]string, error)
- func GetIPv4ByMac(mac string) ([]netip.Addr, error)
- func GetIPv6ByMac(mac string) ([]netip.Addr, error)
- func GetInstanceType() (string, error)
- func GetLocalInstanceID() (string, error)
- func GetLocalRegion() (string, error)
- func GetLocalVPC() (string, error)
- func GetLocalVPCCIDR() (string, error)
- func GetLocalVswitch() (string, error)
- func GetLocalZone() (string, error)
- func GetPrimaryENIMAC() (string, error)
- func GetVSwitchCIDR(mac string) (*net.IPNet, error)
- func GetVSwitchIPv6CIDR(mac string) (*net.IPNet, error)
- func GetVSwitchIPv6Prefix(mac string) (netip.Prefix, error)
- func GetVSwitchPrefix(mac string) (netip.Prefix, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetENIGateway ¶
GetENIGateway return gateway ip by mac
func GetENIGatewayAddr ¶ added in v1.7.0
GetENIGatewayAddr return gateway ip by mac
func GetENIPrimaryAddr ¶ added in v1.7.0
GetENIPrimaryAddr by mac
func GetENIPrivateIPv6IPs ¶
GetENIPrivateIPv6IPs by mac return [2408::28eb]
func GetENIV6Gateway ¶
GetENIV6Gateway return gateway ip by mac
func GetENIV6GatewayAddr ¶ added in v1.7.0
GetENIV6GatewayAddr return gateway ip by mac
func GetIPv6ByMac ¶ added in v1.7.0
GetIPv6ByMac by mac return [2408::28eb]
func GetInstanceType ¶
GetInstanceType get instance type of this node
func GetLocalInstanceID ¶
GetLocalInstanceID get instance id of this node
func GetLocalRegion ¶
GetLocalRegion get region id of this node
func GetLocalVPCCIDR ¶ added in v1.3.0
GetLocalVPCCIDR get vpc cidr of this node
func GetLocalVswitch ¶
GetLocalVswitch get vswitch id of this node
func GetPrimaryENIMAC ¶
GetPrimaryENIMAC get the main ENI's mac
func GetVSwitchCIDR ¶
GetVSwitchCIDR return vSwitch cidr by mac
func GetVSwitchIPv6CIDR ¶
GetVSwitchIPv6CIDR return vSwitch cidr by mac
func GetVSwitchIPv6Prefix ¶ added in v1.7.0
GetVSwitchIPv6Prefix return vSwitch cidr by mac
Types ¶
This section is empty.