Back to godoc.org

Package ec2

v0.55.0
Latest Go to latest
Published: Aug 4, 2019 | License: Apache-2.0 | Module: github.com/genevievelesperance/leftovers

Index

Package Files

type Address

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

func NewAddress

func NewAddress(client addressesClient, publicIp, allocationId *string, tags []*awsec2.Tag) Address

func (Address) Delete

func (a Address) Delete() error

func (Address) Name

func (a Address) Name() string

func (Address) Type

func (a Address) Type() string

type Addresses

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

func NewAddresses

func NewAddresses(client addressesClient, logger logger) Addresses

func (Addresses) List

func (d Addresses) List(filter string) ([]common.Deletable, error)

func (Addresses) Type

func (d Addresses) Type() string

type Image

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

func NewImage

func NewImage(client imagesClient, id *string, resourceTags resourceTags) Image

func (Image) Delete

func (i Image) Delete() error

func (Image) Name

func (i Image) Name() string

func (Image) Type

func (i Image) Type() string

type Images

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

func NewImages

func NewImages(client imagesClient, stsClient stsClient, logger logger, resourceTags resourceTags) Images

func (Images) List

func (i Images) List(filter string) ([]common.Deletable, error)

func (Images) Type

func (i Images) Type() string

type Instance

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

func NewInstance

func NewInstance(client instancesClient, logger logger, resourceTags resourceTags, id, keyName *string, tags []*awsec2.Tag) Instance

func (Instance) Delete

func (i Instance) Delete() error

Delete finds any addresses bound to the instance set for deletion, terminates the instance, waits for it to be terminated, deletes any tags that were bound to this instance, and finally releases the addresses.

func (Instance) Name

func (i Instance) Name() string

func (Instance) Type

func (i Instance) Type() string

type Instances

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

func NewInstances

func NewInstances(client instancesClient, logger logger, resourceTags resourceTags) Instances

func (Instances) List

func (i Instances) List(filter string) ([]common.Deletable, error)

func (Instances) Type

func (i Instances) Type() string

type InternetGateways

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

func NewInternetGateways

func NewInternetGateways(client internetGatewaysClient, logger logger) InternetGateways

func (InternetGateways) Delete

func (n InternetGateways) Delete(vpcId string) error

type KeyPair

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

func NewKeyPair

func NewKeyPair(client keyPairsClient, name *string) KeyPair

func (KeyPair) Delete

func (k KeyPair) Delete() error

func (KeyPair) Name

func (k KeyPair) Name() string

func (KeyPair) Type

func (k KeyPair) Type() string

type KeyPairs

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

func NewKeyPairs

func NewKeyPairs(client keyPairsClient, logger logger) KeyPairs

func (KeyPairs) List

func (k KeyPairs) List(filter string) ([]common.Deletable, error)

func (KeyPairs) Type

func (k KeyPairs) Type() string

type NatGateway

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

func NewNatGateway

func NewNatGateway(client natGatewaysClient, logger logger, id *string, tags []*awsec2.Tag) NatGateway

func (NatGateway) Delete

func (n NatGateway) Delete() error

func (NatGateway) Name

func (n NatGateway) Name() string

func (NatGateway) Type

func (n NatGateway) Type() string

type NatGateways

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

func NewNatGateways

func NewNatGateways(client natGatewaysClient, logger logger) NatGateways

func (NatGateways) List

func (n NatGateways) List(filter string) ([]common.Deletable, error)

func (NatGateways) Type

func (n NatGateways) Type() string

type NetworkInterface

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

func NewNetworkInterface

func NewNetworkInterface(client networkInterfacesClient, id *string, tags []*awsec2.Tag) NetworkInterface

func (NetworkInterface) Delete

func (n NetworkInterface) Delete() error

func (NetworkInterface) Name

func (n NetworkInterface) Name() string

func (NetworkInterface) Type

func (n NetworkInterface) Type() string

type NetworkInterfaces

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

func NewNetworkInterfaces

func NewNetworkInterfaces(client networkInterfacesClient, logger logger) NetworkInterfaces

func (NetworkInterfaces) List

func (e NetworkInterfaces) List(filter string) ([]common.Deletable, error)

func (NetworkInterfaces) Type

func (e NetworkInterfaces) Type() string

type ResourceTags

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

func NewResourceTags

func NewResourceTags(client tagsClient) ResourceTags

func (ResourceTags) Delete

func (r ResourceTags) Delete(resourceType, resourceId string) error

type RouteTables

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

func NewRouteTables

func NewRouteTables(client routesClient, logger logger, resourceTags resourceTags) RouteTables

func (RouteTables) Delete

func (u RouteTables) Delete(vpcId string) error

type SecurityGroup

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

func NewSecurityGroup

func NewSecurityGroup(client securityGroupsClient, logger logger, resourceTags resourceTags, id, groupName *string, tags []*awsec2.Tag, ingress []*awsec2.IpPermission, egress []*awsec2.IpPermission) SecurityGroup

func (SecurityGroup) Delete

func (s SecurityGroup) Delete() error

func (SecurityGroup) Name

func (s SecurityGroup) Name() string

func (SecurityGroup) Type

func (s SecurityGroup) Type() string

type SecurityGroups

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

func NewSecurityGroups

func NewSecurityGroups(client securityGroupsClient, logger logger, resourceTags resourceTags) SecurityGroups

func (SecurityGroups) List

func (s SecurityGroups) List(filter string) ([]common.Deletable, error)

func (SecurityGroups) Type

func (s SecurityGroups) Type() string

type Snapshot

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

func NewSnapshot

func NewSnapshot(client snapshotsClient, id *string) Snapshot

func (Snapshot) Delete

func (s Snapshot) Delete() error

func (Snapshot) Name

func (s Snapshot) Name() string

func (Snapshot) Type

func (s Snapshot) Type() string

type Snapshots

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

func NewSnapshots

func NewSnapshots(client snapshotsClient, stsClient stsClient, logger logger) Snapshots

func (Snapshots) List

func (s Snapshots) List(filter string) ([]common.Deletable, error)

func (Snapshots) Type

func (s Snapshots) Type() string

type Subnets

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

func NewSubnets

func NewSubnets(client subnetsClient, logger logger, resourceTags resourceTags) Subnets

func (Subnets) Delete

func (u Subnets) Delete(vpcId string) error

type Tag

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

func NewTag

func NewTag(client tagsClient, key, value, resourceId *string) Tag

func (Tag) Delete

func (t Tag) Delete() error

func (Tag) Name

func (t Tag) Name() string

func (Tag) Type

func (t Tag) Type() string

type Tags

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

func NewTags

func NewTags(client tagsClient, logger logger) Tags

func (Tags) List

func (a Tags) List(filter string) ([]common.Deletable, error)

func (Tags) Type

func (a Tags) Type() string

type Volume

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

func NewVolume

func NewVolume(client volumesClient, id, state *string, tags []*awsec2.Tag) Volume

func (Volume) Delete

func (v Volume) Delete() error

func (Volume) Name

func (v Volume) Name() string

func (Volume) Type

func (v Volume) Type() string

type Volumes

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

func NewVolumes

func NewVolumes(client volumesClient, logger logger) Volumes

func (Volumes) List

func (v Volumes) List(filter string) ([]common.Deletable, error)

func (Volumes) Type

func (v Volumes) Type() string

type Vpc

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

func NewVpc

func NewVpc(client vpcsClient,
	routes routeTables,
	subnets subnets,
	gateways internetGateways,
	resourceTags resourceTags,
	id *string,
	tags []*awsec2.Tag) Vpc

func (Vpc) Delete

func (v Vpc) Delete() error

func (Vpc) Name

func (v Vpc) Name() string

func (Vpc) Type

func (v Vpc) Type() string

type Vpcs

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

func NewVpcs

func NewVpcs(client vpcsClient, logger logger, routes routeTables, subnets subnets, gateways internetGateways, resourceTags resourceTags) Vpcs

func (Vpcs) List

func (v Vpcs) List(filter string) ([]common.Deletable, error)

func (Vpcs) Type

func (v Vpcs) Type() string
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier