Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShowCmd = &cobra.Command{ Use: "show", Short: "shows the bucket policy configuration of the target bucket", SilenceUsage: true, SilenceErrors: true, Example: `# show the current bucket policy configuration for target bucket s3-manager bucketpolicy show `, RunE: func(cmd *cobra.Command, args []string) (err error) { svc, bucketPolicyOpts, logger = utils.PrepareConstants(cmd, options2.GetBucketPolicyOptions()) if err := utils.CheckArgs(args); err != nil { logger.Error(). Msg(err.Error()) return err } res, err := aws.GetBucketPolicyString(svc, bucketPolicyOpts) if err != nil { logger.Error(). Str("error", err.Error()). Msg("an error occurred while getting bucket policy") return err } logger.Info().Msg("fetched bucket policy successfully") fmt.Println(res) return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.