metadata

package
v1.2.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetENIGateway

func GetENIGateway(mac string) (net.IP, error)

GetENIGateway return gateway ip by mac

func GetENIID

func GetENIID(mac string) (string, error)

GetENIID by mac

func GetENIPrimaryIP

func GetENIPrimaryIP(mac string) (net.IP, error)

GetENIPrimaryIP by mac

func GetENIPrivateIPs

func GetENIPrivateIPs(mac string) ([]net.IP, error)

GetENIPrivateIPs by mac

func GetENIPrivateIPv6IPs

func GetENIPrivateIPv6IPs(mac string) ([]net.IP, error)

GetENIPrivateIPv6IPs by mac return [2408::28eb]

func GetENIV6Gateway

func GetENIV6Gateway(mac string) (net.IP, error)

GetENIV6Gateway return gateway ip by mac

func GetENIVSwitchID

func GetENIVSwitchID(mac string) (string, error)

GetENIVSwitchID by mac

func GetENIsMAC

func GetENIsMAC() ([]string, error)

GetENIsMAC get attached ENIs

func GetInstanceType

func GetInstanceType() (string, error)

GetInstanceType get instance type of this node

func GetLocalInstanceID

func GetLocalInstanceID() (string, error)

GetLocalInstanceID get instance id of this node

func GetLocalRegion

func GetLocalRegion() (string, error)

GetLocalRegion get region id of this node

func GetLocalVPC

func GetLocalVPC() (string, error)

GetLocalVPC get vpc id of this node

func GetLocalVswitch

func GetLocalVswitch() (string, error)

GetLocalVswitch get vswitch id of this node

func GetLocalZone

func GetLocalZone() (string, error)

GetLocalZone get zone of this node

func GetPrimaryENIMAC

func GetPrimaryENIMAC() (string, error)

GetPrimaryENIMAC get the main ENI's mac

func GetVSwitchCIDR

func GetVSwitchCIDR(mac string) (*net.IPNet, error)

GetVSwitchCIDR return vSwitch cidr by mac

func GetVSwitchIPv6CIDR

func GetVSwitchIPv6CIDR(mac string) (*net.IPNet, error)

GetVSwitchIPv6CIDR return vSwitch cidr by mac

Types

This section is empty.

Jump to

Keyboard shortcuts

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