MCPcopy
hub / github.com/kopia/kopia / runConnectCommandWithStorage

Method runConnectCommandWithStorage

cli/command_repository_connect.go:117–124  ·  view source on GitHub ↗
(ctx context.Context, co *connectOptions, st blob.Storage)

Source from the content-addressed store, hash-verified

115}
116
117func (c *App) runConnectCommandWithStorage(ctx context.Context, co *connectOptions, st blob.Storage) error {
118 pass, err := c.getPasswordFromFlags(ctx, false, false)
119 if err != nil {
120 return errors.Wrap(err, "getting password")
121 }
122
123 return c.runConnectCommandWithStorageAndPassword(ctx, co, st, pass)
124}
125
126func (c *App) runConnectCommandWithStorageAndPassword(ctx context.Context, co *connectOptions, st blob.Storage, password string) error {
127 configFile := c.repositoryConfigFileName()

Callers

nothing calls this directly

Tested by

no test coverage detected