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

Method run

cli/command_acl_delete.go:54–69  ·  view source on GitHub ↗
(ctx context.Context, rep repo.RepositoryWriter)

Source from the content-addressed store, hash-verified

52}
53
54func (c *commandACLDelete) run(ctx context.Context, rep repo.RepositoryWriter) error {
55 entries, err := acl.LoadEntries(ctx, rep, nil)
56 if err != nil {
57 return errors.Wrap(err, "unable to load entries")
58 }
59
60 for _, e := range entries {
61 if c.shouldRemoveACLEntry(ctx, e) {
62 if err := rep.DeleteManifest(ctx, e.ManifestID); err != nil {
63 return errors.Wrap(err, "unable to delete manifest")
64 }
65 }
66 }
67
68 return nil
69}

Callers

nothing calls this directly

Calls 3

shouldRemoveACLEntryMethod · 0.95
LoadEntriesFunction · 0.92
DeleteManifestMethod · 0.65

Tested by

no test coverage detected