ec2

package
v0.11.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Generated by go-decorator, DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var InstanceSizes = map[string]bytesize.Bytesize{}/* 226 elements not displayed */

https://aws.amazon.com/ec2/instance-types/

Functions

This section is empty.

Types

type EC2

type EC2 struct {
	Connect func() (EC2Internal, error)
	// contains filtered or unexported fields
}

func (*EC2) AuthorizeSecurityGroupIngress

func (this *EC2) AuthorizeSecurityGroupIngress(ingresses []*SecurityGroupIngress) error

func (*EC2) AuthorizeSecurityGroupIngressFromGroup

func (this *EC2) AuthorizeSecurityGroupIngressFromGroup(groupId, sourceGroupId string) error

func (*EC2) CreateSecurityGroup

func (this *EC2) CreateSecurityGroup(name, desc, vpcId string) (*string, error)

func (*EC2) DeleteSecurityGroup

func (this *EC2) DeleteSecurityGroup(group *SecurityGroup) error

func (*EC2) DescribeInstance

func (this *EC2) DescribeInstance(instanceId string) (*Instance, error)

func (*EC2) DescribeSecurityGroup

func (this *EC2) DescribeSecurityGroup(name string) (*SecurityGroup, error)

func (*EC2) DescribeSubnet

func (this *EC2) DescribeSubnet(subnetId string) (*Subnet, error)

func (*EC2) DescribeVPC

func (this *EC2) DescribeVPC(vpcId string) (*VPC, error)

func (*EC2) DescribeVPCByName

func (this *EC2) DescribeVPCByName(vpcName string) (*VPC, error)

func (*EC2) DescribeVPCGateways

func (this *EC2) DescribeVPCGateways(vpcId string) ([]*InternetGateway, error)

func (*EC2) DescribeVPCRoutes

func (this *EC2) DescribeVPCRoutes(vpcId string) ([]*RouteTable, error)

func (*EC2) DescribeVPCSubnets

func (this *EC2) DescribeVPCSubnets(vpcId string) ([]*Subnet, error)

func (*EC2) RevokeSecurityGroupIngress

func (this *EC2) RevokeSecurityGroupIngress(ingresses []*SecurityGroupIngress) error

func (*EC2) RevokeSecurityGroupIngressHelper

func (this *EC2) RevokeSecurityGroupIngressHelper(groupID string, permission IpPermission) error

type Instance

type Instance struct {
	*ec2.Instance
}

func NewInstance

func NewInstance() *Instance

type InternetGateway

type InternetGateway struct {
	*ec2.InternetGateway
}

func NewInternetGateway

func NewInternetGateway() *InternetGateway

type IpPermission

type IpPermission struct {
	*ec2.IpPermission
}

type Provider

type Provider interface {
	CreateSecurityGroup(name, desc, vpcId string) (*string, error)
	AuthorizeSecurityGroupIngress(input []*SecurityGroupIngress) error
	RevokeSecurityGroupIngress(input []*SecurityGroupIngress) error
	RevokeSecurityGroupIngressHelper(groupID string, permission IpPermission) error
	AuthorizeSecurityGroupIngressFromGroup(groupId, sourceGroupId string) error
	DescribeSecurityGroup(name string) (*SecurityGroup, error)
	DescribeSubnet(subnetId string) (*Subnet, error)
	DeleteSecurityGroup(*SecurityGroup) error
	DescribeInstance(instanceId string) (*Instance, error)
	DescribeVPC(vpcID string) (*VPC, error)
	DescribeVPCByName(vpcName string) (*VPC, error)
	DescribeVPCSubnets(vpcId string) ([]*Subnet, error)
	DescribeVPCGateways(vpcId string) ([]*InternetGateway, error)
	DescribeVPCRoutes(vpcId string) ([]*RouteTable, error)
}

func NewEC2

func NewEC2(credProvider provider.CredProvider, region string) (Provider, error)

type ProviderDecorator

type ProviderDecorator struct {
	Inner     Provider
	Decorator func(name string, call func() error) error
}

func (*ProviderDecorator) AuthorizeSecurityGroupIngress

func (this *ProviderDecorator) AuthorizeSecurityGroupIngress(p0 []*SecurityGroupIngress) (err error)

func (*ProviderDecorator) AuthorizeSecurityGroupIngressFromGroup

func (this *ProviderDecorator) AuthorizeSecurityGroupIngressFromGroup(p0 string, p1 string) (err error)

func (*ProviderDecorator) CreateSecurityGroup

func (this *ProviderDecorator) CreateSecurityGroup(p0 string, p1 string, p2 string) (v0 *string, err error)

func (*ProviderDecorator) DeleteSecurityGroup

func (this *ProviderDecorator) DeleteSecurityGroup(p0 *SecurityGroup) (err error)

func (*ProviderDecorator) DescribeInstance

func (this *ProviderDecorator) DescribeInstance(p0 string) (v0 *Instance, err error)

func (*ProviderDecorator) DescribeSecurityGroup

func (this *ProviderDecorator) DescribeSecurityGroup(p0 string) (v0 *SecurityGroup, err error)

func (*ProviderDecorator) DescribeSubnet

func (this *ProviderDecorator) DescribeSubnet(p0 string) (v0 *Subnet, err error)

func (*ProviderDecorator) DescribeVPC

func (this *ProviderDecorator) DescribeVPC(p0 string) (v0 *VPC, err error)

func (*ProviderDecorator) DescribeVPCByName

func (this *ProviderDecorator) DescribeVPCByName(p0 string) (v0 *VPC, err error)

func (*ProviderDecorator) DescribeVPCGateways

func (this *ProviderDecorator) DescribeVPCGateways(p0 string) (v0 []*InternetGateway, err error)

func (*ProviderDecorator) DescribeVPCRoutes

func (this *ProviderDecorator) DescribeVPCRoutes(p0 string) (v0 []*RouteTable, err error)

func (*ProviderDecorator) DescribeVPCSubnets

func (this *ProviderDecorator) DescribeVPCSubnets(p0 string) (v0 []*Subnet, err error)

func (*ProviderDecorator) RevokeSecurityGroupIngress

func (this *ProviderDecorator) RevokeSecurityGroupIngress(p0 []*SecurityGroupIngress) (err error)

func (*ProviderDecorator) RevokeSecurityGroupIngressHelper

func (this *ProviderDecorator) RevokeSecurityGroupIngressHelper(p0 string, p1 IpPermission) (err error)

type RouteTable

type RouteTable struct {
	*ec2.RouteTable
}

func NewRouteTable

func NewRouteTable() *RouteTable

type SecurityGroup

type SecurityGroup struct {
	*ec2.SecurityGroup
}

func NewSecurityGroup

func NewSecurityGroup(id string) *SecurityGroup

type SecurityGroupIngress

func NewSecurityGroupIngress

func NewSecurityGroupIngress(groupID, cidrIP, protocol string, fromPort, toPort int) *SecurityGroupIngress

type Subnet

type Subnet struct {
	*ec2.Subnet
}

func NewSubnet

func NewSubnet() *Subnet

type UserIdGroupPair

type UserIdGroupPair struct {
	*ec2.UserIdGroupPair
}

type VPC

type VPC struct {
	*ec2.Vpc
}

func NewVpc

func NewVpc() *VPC

Directories

Path Synopsis
Package mock_ec2 is a generated GoMock package.
Package mock_ec2 is a generated GoMock package.

Jump to

Keyboard shortcuts

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