Documentation ¶
Index ¶
- Variables
- func CleanEFS(client clientpkg.Client, logger logr.Logger) error
- func CleanEFSMountTargets(client clientpkg.Client, logger logr.Logger) error
- func CleanEIPAddresses(client clientpkg.Client, logger logr.Logger) error
- func CleanEbsSnapshots(client clientpkg.Client, logger logr.Logger) error
- func CleanEbsVolumes(client clientpkg.Client, logger logr.Logger) error
- func CleanEc2Instances(client clientpkg.Client, logger logr.Logger) error
- func CleanS3Instances(client clientpkg.Client, logger logr.Logger) error
- func CleanUpAwsRoute53(client clientpkg.Client, logger logr.Logger) error
- func CleanVpcInstances(client clientpkg.Client, logger logr.Logger) error
- func DeleteEFS(client clientpkg.Client, fileSystemToBeDeleted []*string, logger logr.Logger) error
- func DeleteEFSMountTarget(client clientpkg.Client, mountTargetToBeDeleted []*string, logger logr.Logger) error
- func DeleteELB(client clientpkg.Client, vpcID *string, logger logr.Logger) error
- func DeleteEbsSnapshots(client clientpkg.Client, ebsSnapshotsToBeDeleted []*string, logger logr.Logger) error
- func DeleteEbsVolumes(client clientpkg.Client, ebsVolumesToBeDeleted []*string, logger logr.Logger) error
- func DeleteEc2Instance(client clientpkg.Client, EC2InstancesToBeDeleted []*string, logger logr.Logger) error
- func DeleteGateway(client clientpkg.Client, vpcID *string, logger logr.Logger) error
- func DeleteNatgateway(client clientpkg.Client, vpcID *string, logger logr.Logger) error
- func DeleteNetworkAcl(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func DeleteNetworkLoadBalancer(client clientpkg.Client, vpcID *string, logger logr.Logger) error
- func DeleteRouteTables(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func DeleteS3Buckets(client clientpkg.Client, s3BucketsToBeDeleted []*string, logger logr.Logger) error
- func DeleteSecurityGroups(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func DeleteSubnetsForVPC(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func DeleteVpcEndpoint(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func DeleteVpcInstances(client clientpkg.Client, vpcToBeDeleted []*string, logger logr.Logger) error
- func DeleteVpnConnections(client clientpkg.Client, logger logr.Logger) error
- func DetachAndDeleteNetworkInterface(client clientpkg.Client, vpcID *string, logger logr.Logger) error
- func DetachVpnGateway(client clientpkg.Client, vpcId *string, logger logr.Logger) error
- func ListEFS(client clientpkg.Client, logger logr.Logger) ([]*string, error)
- func ListEFSMountTarget(client clientpkg.Client, logger logr.Logger) ([]*string, error)
- func ListEbsSnapshotForDeletion(client clientpkg.Client, logger logr.Logger) []*string
- func ListEc2InstancesForDeletion(client clientpkg.Client, logger logr.Logger) []*string
- func ListS3InstancesForDeletion(client clientpkg.Client, logger logr.Logger) []*string
- func ListVPCforDeletion(client clientpkg.Client) ([]*string, error)
- func ListVolumeForDeletion(client clientpkg.Client, logger logr.Logger) []*string
Constants ¶
This section is empty.
Variables ¶
var ErrVpcNotDelete = errors.New("VpcNotDelete")
ErrVpcNotDelete indicates there was an error in the process of deleting a VPCs
Functions ¶
func CleanEFSMountTargets ¶
CleanEFSMountTargets lists and then deletes listed efs mount targets
func CleanEIPAddresses ¶
CleanEIPAddresses Cleans any hanging EIPAddresses
func CleanEbsSnapshots ¶
CleanEbsSnapshots lists and deletes EBS Snapshots
func CleanEbsVolumes ¶
CleanEbsVolumes lists and deletes EBS volumes
func CleanEc2Instances ¶
CleanEc2Instances lists and deletes eligible ec2 instances
func CleanS3Instances ¶
CleanS3Instances cleans s3 buckets
func CleanUpAwsRoute53 ¶
source : https://github.com/openshift/aws-account-operator/blob/master/pkg/controller/accountclaim/reuse.go#L321 CleanUpAwsRoute53 cleans up awsRoute53
func CleanVpcInstances ¶
CleanVpcInstances lists and removes listed vcp instances
func DeleteEFSMountTarget ¶
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 DeleteEc2Instance ¶
func DeleteEc2Instance(client clientpkg.Client, EC2InstancesToBeDeleted []*string, logger logr.Logger) error
DeleteEc2Instance deletes all ec2 instances in the given list
func DeleteGateway ¶
func DeleteNatgateway ¶
func DeleteNetworkAcl ¶
func DeleteRouteTables ¶
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 DeleteSubnetsForVPC ¶
func DeleteVpcEndpoint ¶
func DeleteVpcInstances ¶
func DeleteVpcInstances(client clientpkg.Client, vpcToBeDeleted []*string, logger logr.Logger) error
DeleteVpcInstances deletes all VPCs given
func DeleteVpnConnections ¶
func DetachVpnGateway ¶
func ListEFSMountTarget ¶
func ListEbsSnapshotForDeletion ¶
ListEbsSnapshotForDeletion does not delete the Ebs snapshots, this only creates an []* string for the resources that have to deleted
func ListEc2InstancesForDeletion ¶
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 ¶
ListS3InstancesForDeletion creates a string list of s3 resources that need to be deleted
func ListVPCforDeletion ¶
ListVPCforDeletion returns a list of VPCs suitable for deletion
Types ¶
This section is empty.