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

Function newCASBackendAddCmd

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

Source from the content-addressed store, hash-verified

42}
43
44func newCASBackendAddCmd() *cobra.Command {
45 cmd := &cobra.Command{
46 Use: "add",
47 Short: "Add a new Artifact CAS backend",
48 }
49
50 cmd.PersistentFlags().Bool("default", false, "set the backend as default in your organization")
51 cmd.PersistentFlags().Bool("fallback", false, "set the backend as fallback in your organization")
52 cmd.PersistentFlags().String("description", "", "descriptive information for this registration")
53 cmd.PersistentFlags().String("name", "", "CAS backend name")
54 cmd.PersistentFlags().StringVar(&maxBytesCASBackendOption, "max-bytes", "", "Maximum size for each blob stored in this backend (e.g., 100MB, 1GB)")
55 err := cmd.MarkPersistentFlagRequired("name")
56 cobra.CheckErr(err)
57
58 cmd.AddCommand(newCASBackendAddOCICmd(), newCASBackendAddAzureBlobStorageCmd(), newCASBackendAddAWSS3Cmd())
59 return cmd
60}
61
62func newCASBackendUpdateCmd() *cobra.Command {
63 cmd := &cobra.Command{

Callers 1

newCASBackendCmdFunction · 0.85

Calls 5

newCASBackendAddOCICmdFunction · 0.85
newCASBackendAddAWSS3CmdFunction · 0.85
BoolMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected