Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceMap ¶
type InstanceMap map[string]*instance
InstanceMap is the list of all instances indexed by instance ID
func (InstanceMap) Add ¶
func (m InstanceMap) Add(instanceID string, eni *v2.ENI)
Add adds an instance definition to the instance map. instanceMap may not be subject to concurrent access while add() is used.
func (InstanceMap) Get ¶
func (m InstanceMap) Get(instanceID string) (enis []*v2.ENI)
Get returns the list of ENIs for a particular instance ID
func (InstanceMap) Update ¶
func (m InstanceMap) Update(instanceID string, eni *v2.ENI)
Update updates the ENI definition of an ENI for a particular instance. If the ENI is already known, the definition is updated, otherwise the ENI is added to the instance.
type Subnet ¶
type Subnet struct {
// ID is the subnet ID
ID string
// Name is the subnet name
Name string
// CIDR is the CIDR associated with the subnet
CIDR string
// AvailabilityZone is the availability zone of the subnet
AvailabilityZone string
// VpcID is the VPC the subnet is in
VpcID string
// AvailableAddresses is the number of addresses available for
// allocation
AvailableAddresses int
// Tags is the tags of the subnet
Tags Tags
}
Subnet is a representation of an AWS subnet
Click to show internal directories.
Click to hide internal directories.