Versions in this module Expand all Collapse all v0 v0.1.7 Dec 5, 2017 Changes in this version + func Available() bool + func DeallocateIP(ipToRelease *net.IP) error + func RemoveInterface(interfaceIDs []string) error + type AllocationResult struct + Interface Interface + func AllocateIPFirstAvailable() (*AllocationResult, error) + func AllocateIPFirstAvailableAtIndex(index int) (*AllocationResult, error) + func AllocateIPOn(intf Interface) (*AllocationResult, error) + type ENILimit struct + Adapters int + IPv4 int + IPv6 int + func ENILimits() ENILimit + func ENILimitsForInstanceType(itype string) (limit ENILimit) + type Interface struct + ID string + IPv4s []net.IP + Mac string + Number int + SecurityGroupIds []string + SubnetCidr *net.IPNet + SubnetID string + VpcCidrs []*net.IPNet + VpcID string + VpcPrimaryCidr *net.IPNet + func GetInterfaces() ([]Interface, error) + func NewInterface(secGrps []string, requiredTags map[string]string) (*Interface, error) + func NewInterfaceOnSubnetAtIndex(index int, secGrps []string, subnet Subnet) (*Interface, error) + func (i Interface) LocalName() string + type Interfaces []Interface + func (a Interfaces) Len() int + func (a Interfaces) Less(i, j int) bool + func (a Interfaces) Swap(i, j int) + type Subnet struct + AvailableAddressCount int + Cidr string + ID string + IsDefault bool + Name string + Tags map[string]string + func GetSubnetsForInstance() ([]Subnet, error) + type SubnetsByAvailableAddressCount []Subnet + func (a SubnetsByAvailableAddressCount) Len() int + func (a SubnetsByAvailableAddressCount) Less(i, j int) bool + func (a SubnetsByAvailableAddressCount) Swap(i, j int)