(ctx context.Context, e *acl.Entry)
| 28 | } |
| 29 | |
| 30 | func (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 | |
| 54 | func (c *commandACLDelete) run(ctx context.Context, rep repo.RepositoryWriter) error { |
| 55 | entries, err := acl.LoadEntries(ctx, rep, nil) |