cls3

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 9 Imported by: 0

README

cls3

What is

CLI tool to clear S3 Buckets. The bucket itself can also be deleted by the option.

Install

  • Homebrew
    brew tap go-to-k/tap
    brew install go-to-k/tap/cls3
    
  • Binary
  • Git Clone and install(for developers)
    git clone https://github.com/go-to-k/cls3.git
    cd cls3
    make install
    

How to use

cls3 -b <bucketName> [-p <profile>] [-r <region>] [-f|--force]
  • -b, --bucketName: required
    • CloudFormation stack name
  • -p, --profile: optional
    • AWS profile name
  • -r, --region: optional(default: ap-northeast-1)
    • AWS Region
  • -f, --force: optional
    • ForceMode (Delete the bucket together)

Documentation

Index

Constants

View Source
const AppName = "cls3"

Variables

View Source
var Logger *zerolog.Logger
View Source
var Revision = ""
View Source
var SleepTimeSecForS3 = 10
View Source
var Version = ""

Functions

func NewLogger

func NewLogger(isDebug bool)

Types

type App

type App struct {
	Cli        *cli.App
	BucketName string
	Profile    string
	Region     string
	ForceMode  bool
}

func NewApp

func NewApp(version string) *App

func (*App) Run

func (app *App) Run(ctx context.Context) error

type S3

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

func NewS3

func NewS3(client client.IS3) *S3

func (*S3) ClearS3Objects

func (s3 *S3) ClearS3Objects(bucketName string, forceMode bool) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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