()
| 60 | } |
| 61 | |
| 62 | func newCASBackendUpdateCmd() *cobra.Command { |
| 63 | cmd := &cobra.Command{ |
| 64 | Use: "update", |
| 65 | Short: "Update a CAS backend description, credentials, default status, fallback status, or max bytes", |
| 66 | } |
| 67 | |
| 68 | cmd.PersistentFlags().Bool("default", false, "set the backend as default in your organization") |
| 69 | cmd.PersistentFlags().Bool("fallback", false, "set the backend as fallback in your organization") |
| 70 | cmd.PersistentFlags().String("description", "", "descriptive information for this registration") |
| 71 | cmd.PersistentFlags().String("name", "", "CAS backend name") |
| 72 | cmd.PersistentFlags().StringVar(&maxBytesCASBackendOption, "max-bytes", "", "Maximum size for each blob stored in this backend (e.g., 100MB, 1GB). Note: not supported for inline backends.") |
| 73 | |
| 74 | cmd.AddCommand(newCASBackendUpdateOCICmd(), newCASBackendUpdateInlineCmd(), newCASBackendUpdateAzureBlobCmd(), newCASBackendUpdateAWSS3Cmd()) |
| 75 | return cmd |
| 76 | } |
| 77 | |
| 78 | // confirmDefaultCASBackendOverride asks the user to confirm the override of the default CAS backend |
| 79 | // in the event that there is one already set and its not the same as the one we are setting |
no test coverage detected