Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2018 Changes in this version + const UnknownInstanceType + var InstanceENIsAvailable = map[string]int + var InstanceIPsAvailable = map[string]int64 + type APIs interface + AllocAllIPAddress func(eniID string) error + AllocENI func() (eni string, err error) + AllocIPAddress func(eniID string) error + DescribeENI func(eniID string) (addrList []*ec2.NetworkInterfacePrivateIpAddress, attachemdID *string, ...) + FreeENI func(eniName string) error + GetAttachedENIs func() (eniList []ENIMetadata, err error) + GetENILimit func() (int, error) + GetENIipLimit func() (int64, error) + GetLocalIPv4 func() string + GetPrimaryENI func() string + GetVPCIPv4CIDR func() string + type EC2InstanceMetadataCache struct + func New() (*EC2InstanceMetadataCache, error) + func (cache *EC2InstanceMetadataCache) AllocAllIPAddress(eniID string) error + func (cache *EC2InstanceMetadataCache) AllocENI() (string, error) + func (cache *EC2InstanceMetadataCache) AllocIPAddress(eniID string) error + func (cache *EC2InstanceMetadataCache) DescribeENI(eniID string) ([]*ec2.NetworkInterfacePrivateIpAddress, *string, error) + func (cache *EC2InstanceMetadataCache) FreeENI(eniName string) error + func (cache *EC2InstanceMetadataCache) GetAttachedENIs() (eniList []ENIMetadata, err error) + func (cache *EC2InstanceMetadataCache) GetENILimit() (int, error) + func (cache *EC2InstanceMetadataCache) GetENIipLimit() (int64, error) + func (cache *EC2InstanceMetadataCache) GetLocalIPv4() string + func (cache *EC2InstanceMetadataCache) GetPrimaryENI() string + func (cache *EC2InstanceMetadataCache) GetVPCIPv4CIDR() string + type ENIMetadata struct + DeviceNumber int64 + ENIID string + LocalIPv4s []string + MAC string + SubnetIPv4CIDR string