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

package aws

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

Index

Package Files

leftovers.go logger.go

type Leftovers Uses

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

func NewLeftovers Uses

func NewLeftovers(logger logger, accessKeyId, secretAccessKey, sessionToken, region string) (Leftovers, error)

NewLeftovers returns a new Leftovers for AWS that can be used to list resources, list types, or delete resources for the provided account. It returns an error if the credentials provided are invalid.

func (Leftovers) Delete Uses

func (l Leftovers) Delete(filter string) error

Delete will collect all resources that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.

func (Leftovers) DeleteByType Uses

func (l Leftovers) DeleteByType(filter, rType string) error

DeleteByType will collect all resources of the provied type that contain the provided filter in the resource's identifier, prompt you to confirm deletion (if enabled), and delete those that are selected.

func (Leftovers) List Uses

func (l Leftovers) List(filter string)

List will print all of the resources that match the provided filter.

func (Leftovers) ListByType Uses

func (l Leftovers) ListByType(filter, rtype string)

ListByType will print resources of the specified type with names that match the provided filter.

func (Leftovers) Types Uses

func (l Leftovers) Types()

Types will print all the resource types that can be deleted on this IaaS.

Directories

PathSynopsis
common
ec2
ec2/fakes
eks
eks/fakes
elb
elb/fakes
elbv2
elbv2/fakes
iam
iam/fakes
kms
kms/fakes
rds
rds/fakes
route53
route53/fakes
s3
s3/fakes

Package aws imports 27 packages (graph). Updated 2019-10-08. Refresh now. Tools for package owners.