entity

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVpcNotFound   = errors.New("vpc not found")
	ErrUnknownRegion = errors.New("unknown region")
)

Functions

func NewClient

func NewClient(region string) *ec2.Client

func NewDefaultClient

func NewDefaultClient() *ec2.Client

Types

type Acl

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

func (*Acl) Remove

func (acl *Acl) Remove() error

type Igw

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

func (*Igw) Remove

func (i *Igw) Remove() error

type Region

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

func NewRegion

func NewRegion(client *ec2.Client) *Region

func (*Region) List

func (region *Region) List() (*ec2.DescribeRegionsOutput, error)

type RouteTable

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

func (*RouteTable) Remove

func (r *RouteTable) Remove() error

type SecurityGroup

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

func (*SecurityGroup) Remove

func (s *SecurityGroup) Remove() error

type Subnet

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

func (*Subnet) Remove

func (s *Subnet) Remove() error

type Vpc

type Vpc struct {
	// You cannot have more than one default VPC per Region.
	// https://docs.aws.amazon.com/cli/latest/reference/ec2/create-default-vpc.html
	Id     *string
	Client *ec2.Client
}

func NewVpc

func NewVpc(client *ec2.Client) (*Vpc, error)

func (*Vpc) NewAcl

func (v *Vpc) NewAcl() *Acl

func (*Vpc) NewIgw

func (v *Vpc) NewIgw() *Igw

func (*Vpc) NewRouteTable

func (v *Vpc) NewRouteTable() *RouteTable

func (*Vpc) NewSecurityGroup

func (v *Vpc) NewSecurityGroup() *SecurityGroup

func (*Vpc) NewSubnet

func (v *Vpc) NewSubnet() *Subnet

func (*Vpc) Remove

func (v *Vpc) Remove() error

Jump to

Keyboard shortcuts

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