Documentation ¶
Index ¶
- func GetENIGateway(mac string) (net.IP, error)
- func GetENIID(mac string) (string, 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 GetENIVSwitchID(mac string) (string, error)
- func GetENIsMAC() ([]string, 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetENIGateway ¶
GetENIGateway return gateway ip by mac
func GetENIPrivateIPv6IPs ¶
GetENIPrivateIPv6IPs by mac return [2408::28eb]
func GetENIV6Gateway ¶
GetENIV6Gateway return gateway ip by mac
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.