leftovers: github.com/genevievelesperance/leftovers/aws/ec2 Index | Files | Directories

package ec2

import "github.com/genevievelesperance/leftovers/aws/ec2"

Index

Package Files

address.go addresses.go image.go images.go instance.go instances.go internet_gateways.go key_pair.go key_pairs.go logger.go nat_gateway.go nat_gateways.go network_interface.go network_interfaces.go resource_tags.go route_tables.go security_group.go security_groups.go snapshot.go snapshots.go subnets.go tag.go tags.go volume.go volumes.go vpc.go vpcs.go

type Address Uses

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

func NewAddress Uses

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

func (Address) Delete Uses

func (a Address) Delete() error

func (Address) Name Uses

func (a Address) Name() string

func (Address) Type Uses

func (a Address) Type() string

type Addresses Uses

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

func NewAddresses Uses

func NewAddresses(client addressesClient, logger logger) Addresses

func (Addresses) List Uses

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

func (Addresses) Type Uses

func (d Addresses) Type() string

type Image Uses

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

func NewImage Uses

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

func (Image) Delete Uses

func (i Image) Delete() error

func (Image) Name Uses

func (i Image) Name() string

func (Image) Type Uses

func (i Image) Type() string

type Images Uses

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

func NewImages Uses

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

func (Images) List Uses

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

func (Images) Type Uses

func (i Images) Type() string

type Instance Uses

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

func NewInstance Uses

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

func (Instance) Delete Uses

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 Uses

func (i Instance) Name() string

func (Instance) Type Uses

func (i Instance) Type() string

type Instances Uses

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

func NewInstances Uses

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

func (Instances) List Uses

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

func (Instances) Type Uses

func (i Instances) Type() string

type InternetGateways Uses

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

func NewInternetGateways Uses

func NewInternetGateways(client internetGatewaysClient, logger logger) InternetGateways

func (InternetGateways) Delete Uses

func (n InternetGateways) Delete(vpcId string) error

type KeyPair Uses

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

func NewKeyPair Uses

func NewKeyPair(client keyPairsClient, name *string) KeyPair

func (KeyPair) Delete Uses

func (k KeyPair) Delete() error

func (KeyPair) Name Uses

func (k KeyPair) Name() string

func (KeyPair) Type Uses

func (k KeyPair) Type() string

type KeyPairs Uses

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

func NewKeyPairs Uses

func NewKeyPairs(client keyPairsClient, logger logger) KeyPairs

func (KeyPairs) List Uses

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

func (KeyPairs) Type Uses

func (k KeyPairs) Type() string

type NatGateway Uses

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

func NewNatGateway Uses

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

func (NatGateway) Delete Uses

func (n NatGateway) Delete() error

func (NatGateway) Name Uses

func (n NatGateway) Name() string

func (NatGateway) Type Uses

func (n NatGateway) Type() string

type NatGateways Uses

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

func NewNatGateways Uses

func NewNatGateways(client natGatewaysClient, logger logger) NatGateways

func (NatGateways) List Uses

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

func (NatGateways) Type Uses

func (n NatGateways) Type() string

type NetworkInterface Uses

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

func NewNetworkInterface Uses

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

func (NetworkInterface) Delete Uses

func (n NetworkInterface) Delete() error

func (NetworkInterface) Name Uses

func (n NetworkInterface) Name() string

func (NetworkInterface) Type Uses

func (n NetworkInterface) Type() string

type NetworkInterfaces Uses

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

func NewNetworkInterfaces Uses

func NewNetworkInterfaces(client networkInterfacesClient, logger logger) NetworkInterfaces

func (NetworkInterfaces) List Uses

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

func (NetworkInterfaces) Type Uses

func (e NetworkInterfaces) Type() string

type ResourceTags Uses

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

func NewResourceTags Uses

func NewResourceTags(client tagsClient) ResourceTags

func (ResourceTags) Delete Uses

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

type RouteTables Uses

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

func NewRouteTables Uses

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

func (RouteTables) Delete Uses

func (u RouteTables) Delete(vpcId string) error

type SecurityGroup Uses

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

func NewSecurityGroup Uses

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

func (SecurityGroup) Delete Uses

func (s SecurityGroup) Delete() error

func (SecurityGroup) Name Uses

func (s SecurityGroup) Name() string

func (SecurityGroup) Type Uses

func (s SecurityGroup) Type() string

type SecurityGroups Uses

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

func NewSecurityGroups Uses

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

func (SecurityGroups) List Uses

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

func (SecurityGroups) Type Uses

func (s SecurityGroups) Type() string

type Snapshot Uses

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

func NewSnapshot Uses

func NewSnapshot(client snapshotsClient, id *string) Snapshot

func (Snapshot) Delete Uses

func (s Snapshot) Delete() error

func (Snapshot) Name Uses

func (s Snapshot) Name() string

func (Snapshot) Type Uses

func (s Snapshot) Type() string

type Snapshots Uses

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

func NewSnapshots Uses

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

func (Snapshots) List Uses

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

func (Snapshots) Type Uses

func (s Snapshots) Type() string

type Subnets Uses

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

func NewSubnets Uses

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

func (Subnets) Delete Uses

func (u Subnets) Delete(vpcId string) error

type Tag Uses

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

func NewTag Uses

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

func (Tag) Delete Uses

func (t Tag) Delete() error

func (Tag) Name Uses

func (t Tag) Name() string

func (Tag) Type Uses

func (t Tag) Type() string

type Tags Uses

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

func NewTags Uses

func NewTags(client tagsClient, logger logger) Tags

func (Tags) List Uses

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

func (Tags) Type Uses

func (a Tags) Type() string

type Volume Uses

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

func NewVolume Uses

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

func (Volume) Delete Uses

func (v Volume) Delete() error

func (Volume) Name Uses

func (v Volume) Name() string

func (Volume) Type Uses

func (v Volume) Type() string

type Volumes Uses

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

func NewVolumes Uses

func NewVolumes(client volumesClient, logger logger) Volumes

func (Volumes) List Uses

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

func (Volumes) Type Uses

func (v Volumes) Type() string

type Vpc Uses

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

func NewVpc Uses

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

func (Vpc) Delete Uses

func (v Vpc) Delete() error

func (Vpc) Name Uses

func (v Vpc) Name() string

func (Vpc) Type Uses

func (v Vpc) Type() string

type Vpcs Uses

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

func NewVpcs Uses

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

func (Vpcs) List Uses

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

func (Vpcs) Type Uses

func (v Vpcs) Type() string

Directories

PathSynopsis
fakes

Package ec2 imports 10 packages (graph). Updated 2019-11-13. Refresh now. Tools for package owners.