MCPcopy Index your code
hub / github.com/kopia/kopia / run

Method run

cli/command_repository_disconnect.go:22–34  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

20}
21
22func (c *commandRepositoryDisconnect) run(ctx context.Context) error {
23 c.svc.removeUpdateState()
24
25 if err := repo.Disconnect(ctx, c.svc.repositoryConfigFileName()); err != nil {
26 return errors.Wrap(err, "unable to disconnect from repository")
27 }
28
29 if err := c.svc.passwordPersistenceStrategy().DeletePassword(ctx, c.svc.repositoryConfigFileName()); err != nil {
30 return errors.Wrap(err, "unable to remove persisted password")
31 }
32
33 return nil
34}

Callers

nothing calls this directly

Calls 5

DisconnectFunction · 0.92
removeUpdateStateMethod · 0.65
DeletePasswordMethod · 0.65

Tested by

no test coverage detected