types

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

type SubnetMap

type SubnetMap map[string]*Subnet

SubnetMap indexes AWS subnets by subnet ID

type Tags

type Tags map[string]string

Tags implements generic key value tags used by AWS

func (Tags) Match

func (t Tags) Match(required Tags) bool

Match returns true if the required tags are all found

type Vpc

type Vpc struct {
	// ID is the VPC ID
	ID string

	// PrimaryCIDR is the primary IPv4 CIDR
	PrimaryCIDR string
}

Vpc is the representation of an AWS VPC

type VpcMap

type VpcMap map[string]*Vpc

VpcMap indexes AWS VPCs by VPC ID

Jump to

Keyboard shortcuts

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