Documentation ¶
Index ¶
- type Config
- type Filters
- type InstanceFilter
- type KeyPairFilter
- type Purge
- func (p *Purge) DeleteAddresses()
- func (p *Purge) DeleteInstances()
- func (p *Purge) DeleteInternetGateways()
- func (p *Purge) DeleteKeyPairs()
- func (p *Purge) DeleteLoadBalancers()
- func (p *Purge) DeleteNetworkAcls()
- func (p *Purge) DeletePlacementGroups()
- func (p *Purge) DeleteRouteTables()
- func (p *Purge) DeleteSecurityGroups()
- func (p *Purge) DeleteSnapshots()
- func (p *Purge) DeleteSubnets()
- func (p *Purge) DeleteVPCs()
- func (p *Purge) DeleteVolumes()
- func (p *Purge) Do() error
- func (p *Purge) Fetch() error
- func (p *Purge) FetchAddresses()
- func (p *Purge) FetchInstances()
- func (p *Purge) FetchInternetGateways()
- func (p *Purge) FetchKeyPairs()
- func (p *Purge) FetchLoadBalancers()
- func (p *Purge) FetchNetworkAcls()
- func (p *Purge) FetchPlacementGroups()
- func (p *Purge) FetchRouteTables()
- func (p *Purge) FetchSecurityGroups()
- func (p *Purge) FetchSnapshots()
- func (p *Purge) FetchSubnets()
- func (p *Purge) FetchVolumes()
- func (p *Purge) FetchVpcs()
- func (p *Purge) Print() error
- func (p *Purge) Terminate() error
- type VpcFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Regions []string `toml:"regions" json:"regions"` RegionsExclude []string `toml:"regions_exclude" json:"regions_exclude"` AccessKey string `toml:"access_key" json:"access_key"` SecretKey string `toml:"secret_key" json:"secret_key"` // AWS Client timeout Timeout time.Duration `toml:"timeout" json:"timeout"` // If enabled it only fetches and lists resources (it doesn't terminate // resources) List bool `toml:"list" json:"list"` }
type Filters ¶
type Filters struct { Instance []InstanceFilter KeyPair []KeyPairFilter Vpc []VpcFilter }
type InstanceFilter ¶
type KeyPairFilter ¶
type KeyPairFilter func(*ec2.KeyPairInfo) bool
type Purge ¶
type Purge struct {
// contains filtered or unexported fields
}
func (*Purge) DeleteAddresses ¶
func (p *Purge) DeleteAddresses()
DeleteAddresses delete all addresses on all regions
func (*Purge) DeleteInstances ¶
func (p *Purge) DeleteInstances()
DeleteInstances terminates all instances on all regions
func (*Purge) DeleteInternetGateways ¶
func (p *Purge) DeleteInternetGateways()
DeleteInternetGateways delete all igs on all regions
func (*Purge) DeleteKeyPairs ¶
func (p *Purge) DeleteKeyPairs()
DeleteKeyPairs delete all key pairs on all regions
func (*Purge) DeleteLoadBalancers ¶
func (p *Purge) DeleteLoadBalancers()
DeleteLoadBalancers delete all loadbalancers on all regions
func (*Purge) DeleteNetworkAcls ¶
func (p *Purge) DeleteNetworkAcls()
DeleteNetworkAcls delete all network acls on all regions
func (*Purge) DeletePlacementGroups ¶
func (p *Purge) DeletePlacementGroups()
DeletePlacementGroups delete all placementGroups on all regions
func (*Purge) DeleteRouteTables ¶
func (p *Purge) DeleteRouteTables()
DeleteRouteTables delete all igs on all regions
func (*Purge) DeleteSecurityGroups ¶
func (p *Purge) DeleteSecurityGroups()
DeleteSecurityGroups delete all security groups on all regions
func (*Purge) DeleteSnapshots ¶
func (p *Purge) DeleteSnapshots()
DeleteSnapshots delete all snapshots on all regions
func (*Purge) DeleteSubnets ¶
func (p *Purge) DeleteSubnets()
DeleteSubnets delete all subnets on all regions
func (*Purge) DeleteVolumes ¶
func (p *Purge) DeleteVolumes()
DeleteVolumes terminates all volumes on all regions
func (*Purge) Fetch ¶
Fetch fetches all given resources and stores them internally. To print them use the Print() method
func (*Purge) FetchAddresses ¶
func (p *Purge) FetchAddresses()
func (*Purge) FetchInstances ¶
func (p *Purge) FetchInstances()
func (*Purge) FetchInternetGateways ¶
func (p *Purge) FetchInternetGateways()
func (*Purge) FetchKeyPairs ¶
func (p *Purge) FetchKeyPairs()
func (*Purge) FetchLoadBalancers ¶
func (p *Purge) FetchLoadBalancers()
func (*Purge) FetchNetworkAcls ¶
func (p *Purge) FetchNetworkAcls()
func (*Purge) FetchPlacementGroups ¶
func (p *Purge) FetchPlacementGroups()
func (*Purge) FetchRouteTables ¶
func (p *Purge) FetchRouteTables()
func (*Purge) FetchSecurityGroups ¶
func (p *Purge) FetchSecurityGroups()
func (*Purge) FetchSnapshots ¶
func (p *Purge) FetchSnapshots()
func (*Purge) FetchSubnets ¶
func (p *Purge) FetchSubnets()
func (*Purge) FetchVolumes ¶
func (p *Purge) FetchVolumes()