metadata

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 12 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 GetENIGatewayAddr added in v1.7.0

func GetENIGatewayAddr(mac string) (netip.Addr, error)

GetENIGatewayAddr return gateway ip by mac

func GetENIID

func GetENIID(mac string) (string, error)

GetENIID by mac

func GetENIPrimaryAddr added in v1.7.0

func GetENIPrimaryAddr(mac string) (netip.Addr, error)

GetENIPrimaryAddr 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 GetENIV6GatewayAddr added in v1.7.0

func GetENIV6GatewayAddr(mac string) (netip.Addr, error)

GetENIV6GatewayAddr 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 GetIPv4ByMac added in v1.7.0

func GetIPv4ByMac(mac string) ([]netip.Addr, error)

func GetIPv6ByMac added in v1.7.0

func GetIPv6ByMac(mac string) ([]netip.Addr, error)

GetIPv6ByMac by mac return [2408::28eb]

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 GetLocalVPCCIDR added in v1.3.0

func GetLocalVPCCIDR() (string, error)

GetLocalVPCCIDR get vpc cidr 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

func GetVSwitchIPv6Prefix added in v1.7.0

func GetVSwitchIPv6Prefix(mac string) (netip.Prefix, error)

GetVSwitchIPv6Prefix return vSwitch cidr by mac

func GetVSwitchPrefix added in v1.7.0

func GetVSwitchPrefix(mac string) (netip.Prefix, error)

GetVSwitchPrefix 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