awsManager

package
v0.0.0-...-745beb3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVpcNotDelete = errors.New("VpcNotDelete")

ErrVpcNotDelete indicates there was an error in the process of deleting a VPCs

Functions

func CleanEFS

func CleanEFS(client clientpkg.Client, logger logr.Logger) error

CleanEFS lists and removes EFSs

func CleanEFSMountTargets

func CleanEFSMountTargets(client clientpkg.Client, logger logr.Logger) error

CleanEFSMountTargets lists and then deletes listed efs mount targets

func CleanEIPAddresses

func CleanEIPAddresses(client clientpkg.Client, logger logr.Logger) error

CleanEIPAddresses Cleans any hanging EIPAddresses

func CleanEbsSnapshots

func CleanEbsSnapshots(client clientpkg.Client, logger logr.Logger) error

CleanEbsSnapshots lists and deletes EBS Snapshots

func CleanEbsVolumes

func CleanEbsVolumes(client clientpkg.Client, logger logr.Logger) error

CleanEbsVolumes lists and deletes EBS volumes

func CleanEc2Instances

func CleanEc2Instances(client clientpkg.Client, logger logr.Logger) error

CleanEc2Instances lists and deletes eligible ec2 instances

func CleanS3Instances

func CleanS3Instances(client clientpkg.Client, logger logr.Logger) error

CleanS3Instances cleans s3 buckets

func CleanVpcInstances

func CleanVpcInstances(client clientpkg.Client, logger logr.Logger) error

CleanVpcInstances lists and removes listed vcp instances

func DeleteEFS

func DeleteEFS(client clientpkg.Client, fileSystemToBeDeleted []*string, logger logr.Logger) error

func DeleteEFSMountTarget

func DeleteEFSMountTarget(client clientpkg.Client, mountTargetToBeDeleted []*string, logger logr.Logger) error

func DeleteELB

func DeleteELB(client clientpkg.Client, vpcID *string, logger logr.Logger) error

func DeleteEbsSnapshots

func DeleteEbsSnapshots(client clientpkg.Client, ebsSnapshotsToBeDeleted []*string, logger logr.Logger) error

DeleteEbsSnapshots deletes the Ebs Snapshot successful execution returns nil. Unsuccessful execution or errors occurred, would return an error

func DeleteEbsVolumes

func DeleteEbsVolumes(client clientpkg.Client, ebsVolumesToBeDeleted []*string, logger logr.Logger) error

func DeleteEc2Instance

func DeleteEc2Instance(client clientpkg.Client, EC2InstancesToBeDeleted []*string, logger logr.Logger) error

DeleteEc2Instance deletes all ec2 instances in the given list

func DeleteGateway

func DeleteGateway(client clientpkg.Client, vpcID *string, logger logr.Logger) error

func DeleteNatgateway

func DeleteNatgateway(client clientpkg.Client, vpcID *string, logger logr.Logger) error

func DeleteNetworkAcl

func DeleteNetworkAcl(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func DeleteNetworkLoadBalancer

func DeleteNetworkLoadBalancer(client clientpkg.Client, vpcID *string, logger logr.Logger) error

func DeleteRouteTables

func DeleteRouteTables(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func DeleteS3Buckets

func DeleteS3Buckets(client clientpkg.Client, s3BucketsToBeDeleted []*string, logger logr.Logger) error

DeleteS3Buckets deletes the S3 buckets successful execution returns nil. Unsuccessful execution or errors occurred, would return an error

func DeleteSecurityGroups

func DeleteSecurityGroups(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func DeleteSubnetsForVPC

func DeleteSubnetsForVPC(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func DeleteVpcEndpoint

func DeleteVpcEndpoint(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func DeleteVpcInstances

func DeleteVpcInstances(client clientpkg.Client, vpcToBeDeleted []*string, logger logr.Logger) error

DeleteVpcInstances deletes all VPCs given

func DeleteVpnConnections

func DeleteVpnConnections(client clientpkg.Client, logger logr.Logger) error

func DetachAndDeleteNetworkInterface

func DetachAndDeleteNetworkInterface(client clientpkg.Client, vpcID *string, logger logr.Logger) error

func DetachVpnGateway

func DetachVpnGateway(client clientpkg.Client, vpcId *string, logger logr.Logger) error

func ListEFS

func ListEFS(client clientpkg.Client, logger logr.Logger) ([]*string, error)

func ListEFSMountTarget

func ListEFSMountTarget(client clientpkg.Client, logger logr.Logger) ([]*string, error)

func ListEbsSnapshotForDeletion

func ListEbsSnapshotForDeletion(client clientpkg.Client, logger logr.Logger) []*string

ListEbsSnapshotForDeletion does not delete the Ebs snapshots, this only creates an []* string for the resources that have to deleted

func ListEc2InstancesForDeletion

func ListEc2InstancesForDeletion(client clientpkg.Client, logger logr.Logger) []*string

ListEc2InstancesForDeletion this lists all the instances that are eligible for deletion based on the tags and stored them in instances to be deleted this only creates an array of pointers and does not delete the instances

func ListS3InstancesForDeletion

func ListS3InstancesForDeletion(client clientpkg.Client, logger logr.Logger) []*string

ListS3InstancesForDeletion creates a string list of s3 resources that need to be deleted

func ListVPCforDeletion

func ListVPCforDeletion(client clientpkg.Client) ([]*string, error)

ListVPCforDeletion returns a list of VPCs suitable for deletion

func ListVolumeForDeletion

func ListVolumeForDeletion(client clientpkg.Client, logger logr.Logger) []*string

Types

This section is empty.

Jump to

Keyboard shortcuts

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