MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / newCASBackendUpdateCmd

Function newCASBackendUpdateCmd

app/cli/cmd/casbackend.go:62–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func 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

Callers 1

newCASBackendCmdFunction · 0.85

Calls 6

BoolMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected