types

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceMap added in v1.6.0

type InstanceMap map[string]*instance

InstanceMap is the list of all instances indexed by instance ID

func (InstanceMap) Add added in v1.6.0

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

func (m InstanceMap) Get(instanceID string) (enis []*v2.ENI)

Get returns the list of ENIs for a particular instance ID

func (InstanceMap) Update added in v1.6.0

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 SecurityGroup

type SecurityGroup struct {
	// ID is the SecurityGroup ID
	ID string

	// VpcID is the VPC ID in which the security group resides
	VpcID string

	// Tags are the tags of the security group
	Tags Tags
}

SecurityGroup is the representation of an AWS Security Group

type SecurityGroupMap

type SecurityGroupMap map[string]*SecurityGroup

SecurityGroupMap indexes AWS Security Groups by security group ID

type Subnet added in v1.6.0

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

type SubnetMap map[string]*Subnet

SubnetMap indexes AWS subnets by subnet ID

type Tags added in v1.6.0

type Tags map[string]string

Tags implements generic key value tags used by AWS

func (Tags) Match added in v1.6.0

func (t Tags) Match(required Tags) bool

Match returns true if the required tags are all found

type Vpc added in v1.6.0

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

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