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

Method shouldRemoveACLEntry

cli/command_acl_delete.go:30–52  ·  view source on GitHub ↗
(ctx context.Context, e *acl.Entry)

Source from the content-addressed store, hash-verified

28}
29
30func (c *commandACLDelete) shouldRemoveACLEntry(ctx context.Context, e *acl.Entry) bool {
31 if c.all {
32 if !c.confirm {
33 dryRunDelete(ctx, e)
34 return false
35 }
36
37 return true
38 }
39
40 for _, tr := range c.ids {
41 if tr == string(e.ManifestID) {
42 if !c.confirm {
43 dryRunDelete(ctx, e)
44 return false
45 }
46
47 return true
48 }
49 }
50
51 return false
52}
53
54func (c *commandACLDelete) run(ctx context.Context, rep repo.RepositoryWriter) error {
55 entries, err := acl.LoadEntries(ctx, rep, nil)

Callers 1

runMethod · 0.95

Calls 1

dryRunDeleteFunction · 0.85

Tested by

no test coverage detected