clean

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

package clean provides structs that clean resources deployed by Copilot. It is used prior to deleting a workload or environment so that the corresponding CloudFormation stack delete runs successfully.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoOp

type NoOp struct{}

NoOp does nothing.

func (*NoOp) Clean

func (*NoOp) Clean() error

Clean returns nil.

type StaticSiteCleaner

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

StaticSiteCleaner is used to clean up resources created for a static site.

func StaticSite

func StaticSite(app, env, svc string, rg bucketResourceGetter, emptier bucketEmptier) *StaticSiteCleaner

StaticSite returns an initialized static site cleaner.

func (*StaticSiteCleaner) Clean

func (s *StaticSiteCleaner) Clean() error

Clean looks for the S3 bucket for the service. If no bucket is found, it returns no error. If a bucket is found, it is emptied.

Directories

Path Synopsis
cleantest provides stubs for cli.wkldCleaner.
cleantest provides stubs for cli.wkldCleaner.

Jump to

Keyboard shortcuts

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