command

package
v1.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsxS3Cmd = &cobra.Command{
	Use:   "getS3BucketList",
	Short: "getS3BucketList command gets list of S3 buckets",
	Long:  `getS3BucketList command gets list of S3 buckets of an AWS account`,

	Run: func(cmd *cobra.Command, args []string) {

		log.Println("Command s3 getS3BucketList started")

		authFlag, clientAuth, err := authenticate.CommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}
		if authFlag {
			GetListBucket(*clientAuth)
		} else {
			cmd.Help()
			return
		}

	},
}

Functions

func Execute

func Execute()

func GetListBucket

func GetListBucket(auth client.Auth) ([]*s3.ListObjectsV2Output, error)

json.Unmarshal

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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