Documentation ¶
Overview ¶
Generated by go-decorator, DO NOT EDIT
Index ¶
- Variables
- type EC2
- func (this *EC2) AuthorizeSecurityGroupIngress(ingresses []*SecurityGroupIngress) error
- func (this *EC2) AuthorizeSecurityGroupIngressFromGroup(groupId, sourceGroupId *string) error
- func (this *EC2) CreateSecurityGroup(name, desc, vpcId string) (*string, error)
- func (this *EC2) DeleteSecurityGroup(group *SecurityGroup) error
- func (this *EC2) DescribeInstance(instanceId string) (*Instance, error)
- func (this *EC2) DescribeSecurityGroup(name string) (*SecurityGroup, error)
- func (this *EC2) DescribeSubnet(subnetId string) (*Subnet, error)
- func (this *EC2) DescribeVPC(vpcId string) (*VPC, error)
- func (this *EC2) DescribeVPCByName(vpcName string) (*VPC, error)
- func (this *EC2) DescribeVPCGateways(vpcId string) ([]*InternetGateway, error)
- func (this *EC2) DescribeVPCRoutes(vpcId string) ([]*RouteTable, error)
- func (this *EC2) DescribeVPCSubnets(vpcId string) ([]*Subnet, error)
- func (this *EC2) RevokeSecurityGroupIngress(ingresses []*SecurityGroupIngress) error
- type EC2Internal
- type Instance
- type InternetGateway
- type Provider
- type ProviderDecorator
- func (this *ProviderDecorator) AuthorizeSecurityGroupIngress(p0 []*SecurityGroupIngress) (err error)
- func (this *ProviderDecorator) AuthorizeSecurityGroupIngressFromGroup(p0 *string, p1 *string) (err error)
- func (this *ProviderDecorator) CreateSecurityGroup(p0 string, p1 string, p2 string) (v0 *string, err error)
- func (this *ProviderDecorator) DeleteSecurityGroup(p0 *SecurityGroup) (err error)
- func (this *ProviderDecorator) DescribeInstance(p0 string) (v0 *Instance, err error)
- func (this *ProviderDecorator) DescribeSecurityGroup(p0 string) (v0 *SecurityGroup, err error)
- func (this *ProviderDecorator) DescribeSubnet(p0 string) (v0 *Subnet, err error)
- func (this *ProviderDecorator) DescribeVPC(p0 string) (v0 *VPC, err error)
- func (this *ProviderDecorator) DescribeVPCByName(p0 string) (v0 *VPC, err error)
- func (this *ProviderDecorator) DescribeVPCGateways(p0 string) (v0 []*InternetGateway, err error)
- func (this *ProviderDecorator) DescribeVPCRoutes(p0 string) (v0 []*RouteTable, err error)
- func (this *ProviderDecorator) DescribeVPCSubnets(p0 string) (v0 []*Subnet, err error)
- func (this *ProviderDecorator) RevokeSecurityGroupIngress(p0 []*SecurityGroupIngress) (err error)
- type RouteTable
- type SecurityGroup
- type SecurityGroupIngress
- type Subnet
- type VPC
Constants ¶
This section is empty.
Variables ¶
View Source
var InstanceSizes = map[string]bytesize.Bytesize{
"t2.nano": 0.5 * bytesize.GiB,
"t2.micro": 1 * bytesize.GiB,
"t2.small": 2 * bytesize.GiB,
"t2.medium": 4 * bytesize.GiB,
"t2.large": 8 * bytesize.GiB,
"m4.large": 8 * bytesize.GiB,
"m4.xlarge": 16 * bytesize.GiB,
"m4.2xlarge": 32 * bytesize.GiB,
"m4.4xlarge": 64 * bytesize.GiB,
"m4.10xlarge": 160 * bytesize.GiB,
"m3.medium": 3.75 * bytesize.GiB,
"m3.large": 7.5 * bytesize.GiB,
"m3.xlarge": 15 * bytesize.GiB,
"m3.2xlarge": 30 * bytesize.GiB,
"c4.large": 3.75 * bytesize.GiB,
"c4.xlarge": 7.5 * bytesize.GiB,
"c4.2xlarge": 15 * bytesize.GiB,
"c4.4xlarge": 30 * bytesize.GiB,
"c4.8xlarge": 60 * bytesize.GiB,
"c3.large": 3.75 * bytesize.GiB,
"c3.xlarge": 7.5 * bytesize.GiB,
"c3.2xlarge": 15 * bytesize.GiB,
"c3.4xlarge": 30 * bytesize.GiB,
"c3.8xlarge": 60 * bytesize.GiB,
"g2.2xlarge": 15 * bytesize.GiB,
"g2.8xlarge": 60 * bytesize.GiB,
"x1.32xlarge": 1952 * bytesize.GiB,
"r3.large": 15.25 * bytesize.GiB,
"r3.xlarge": 30.5 * bytesize.GiB,
"r3.2xlarge": 61 * bytesize.GiB,
"r3.4xlarge": 122 * bytesize.GiB,
"r3.8xlarge": 244 * bytesize.GiB,
"i3.large": 15.25 * bytesize.GiB,
"i3.xlarge": 30.5 * bytesize.GiB,
"i3.2xlarge": 61 * bytesize.GiB,
"i3.4xlarge": 122 * bytesize.GiB,
"i3.8xlarge": 244 * bytesize.GiB,
"d2.xlarge": 30.5 * bytesize.GiB,
"d2.2xlarge": 61 * bytesize.GiB,
"d2.4xlarge": 122 * bytesize.GiB,
"d2.8xlarge": 244 * bytesize.GiB,
}
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 (*EC2) CreateSecurityGroup ¶
func (*EC2) DeleteSecurityGroup ¶
func (this *EC2) DeleteSecurityGroup(group *SecurityGroup) error
func (*EC2) DescribeInstance ¶
func (*EC2) DescribeSecurityGroup ¶
func (this *EC2) DescribeSecurityGroup(name string) (*SecurityGroup, 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 (*EC2) RevokeSecurityGroupIngress ¶
func (this *EC2) RevokeSecurityGroupIngress(ingresses []*SecurityGroupIngress) error
type EC2Internal ¶
type EC2Internal interface { CreateSecurityGroup(*ec2.CreateSecurityGroupInput) (*ec2.CreateSecurityGroupOutput, error) AuthorizeSecurityGroupIngress(*ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error) RevokeSecurityGroupIngress(*ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error) DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) DescribeSubnets(input *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error) DeleteSecurityGroup(*ec2.DeleteSecurityGroupInput) (*ec2.DeleteSecurityGroupOutput, error) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) DescribeVpcs(input *ec2.DescribeVpcsInput) (*ec2.DescribeVpcsOutput, error) DescribeInternetGateways(input *ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error) DescribeRouteTables(input *ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error) }
func Connect ¶
func Connect(credProvider provider.CredProvider, region string) (EC2Internal, error)
type Instance ¶
func NewInstance ¶
func NewInstance() *Instance
type InternetGateway ¶
type InternetGateway struct {
*ec2.InternetGateway
}
func NewInternetGateway ¶
func NewInternetGateway() *InternetGateway
type Provider ¶
type Provider interface { CreateSecurityGroup(name, desc, vpcId string) (*string, error) AuthorizeSecurityGroupIngress(input []*SecurityGroupIngress) error RevokeSecurityGroupIngress(input []*SecurityGroupIngress) 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) }
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 (*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)
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 ¶
type SecurityGroupIngress struct { *ec2.AuthorizeSecurityGroupIngressInput *ec2.RevokeSecurityGroupIngressInput }
func NewSecurityGroupIngress ¶
func NewSecurityGroupIngress(groupID, cidrIP, protocol string, fromPort, toPort int) *SecurityGroupIngress
Click to show internal directories.
Click to hide internal directories.