Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetConfigDataCmd = &cobra.Command{ Use: "getConfigData", Short: "Get S3 bucket configuration", Long: `Get S3 bucket configuration`, Run: func(cmd *cobra.Command, args []string) { authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd) if err != nil { cmd.Help() return } if authFlag { bucketName, _ := cmd.Flags().GetString("bucketName") if bucketName != "" { GetBucketDetail(bucketName, *clientAuth) } else { log.Fatalln("bucket name not provided. program exit") } } }, }
GetConfigDataCmd represents the getConfigData command
Functions ¶
func GetBucketDetail ¶ added in v1.0.4
func GetBucketDetailWithTags ¶ added in v1.0.4
func GetBucketListWithDetails ¶ added in v1.0.4
func GetBucketListWithDetails(auth client.Auth) ([]*s3.ListObjectsV2Output, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.