Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RemoveCmd = &cobra.Command{ Use: "remove", Short: "", SilenceUsage: true, SilenceErrors: true, 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 } logger.Info().Msg("trying to remove current bucket policy if exists") _, err = aws.DeleteBucketPolicy(svc, bucketPolicyOpts) if err != nil { logger.Error(). Str("error", err.Error()). Msg("an error occurred while deleting current bucket policy") return err } logger.Info().Msg("successfully deleted bucket policy on target bucket") return nil }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.