ec2

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.3.0

type Client interface {
	AuthorizeAllSecurityGroupIngress(string) error
	CreateDefaultSecurityGroup() (string, error)
	GetDefaultSecurityGroupID() (string, error)
	GetDefaultSubnetIDs() ([]string, error)
	GetSubnetVPCID(string) (string, error)
}

Client represents a method for accessing EC2.

type Eni

type Eni struct {
	PublicIpAddress  string
	EniId            string
	SecurityGroupIds []string
}

type SDKClient added in v0.3.0

type SDKClient struct {
	// contains filtered or unexported fields
}

SDKClient implements access to EC2 via the AWS SDK.

func New

func New(sess *session.Session) SDKClient

New returns an SDKClient configured with the given session.

func (SDKClient) AuthorizeAllSecurityGroupIngress added in v0.3.0

func (ec2 SDKClient) AuthorizeAllSecurityGroupIngress(groupID string) error

AuthorizeAllSecurityGroupIngress configures a security group to allow all ingress traffic.

func (SDKClient) CreateDefaultSecurityGroup added in v0.3.0

func (ec2 SDKClient) CreateDefaultSecurityGroup() (string, error)

CreateDefaultSecurityGroup creates a new security group for use as the default.

func (SDKClient) DescribeNetworkInterfaces added in v0.3.0

func (ec2 SDKClient) DescribeNetworkInterfaces(eniIds []string) map[string]Eni

func (SDKClient) GetDefaultSecurityGroupID added in v0.3.0

func (ec2 SDKClient) GetDefaultSecurityGroupID() (string, error)

GetDefaultSecurityGroupID returns the ID of the permissive security group created by default.

func (SDKClient) GetDefaultSubnetIDs added in v0.3.0

func (ec2 SDKClient) GetDefaultSubnetIDs() ([]string, error)

GetDefaultSubnetIDs finds and returns the subnet IDs marked as default.

func (SDKClient) GetSubnetVPCID added in v0.3.0

func (ec2 SDKClient) GetSubnetVPCID(subnetID string) (string, error)

GetSubnetVPCID returns the VPC ID for a given subnet ID.

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
sdk
Package sdk is a generated GoMock package.
Package sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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