Method
Delete
(ctx context.Context, name string, keypath backend.KeyPath, _ *backend.CacheInfo)
Source from the content-addressed store, hash-verified
| 124 | } |
| 125 | |
| 126 | func (rw *Backend) Delete(ctx context.Context, name string, keypath backend.KeyPath, _ *backend.CacheInfo) error { |
| 127 | if err := ctx.Err(); err != nil { |
| 128 | return err |
| 129 | } |
| 130 | |
| 131 | path := rw.rootPath(append(keypath, name)) |
| 132 | return os.RemoveAll(path) |
| 133 | } |
| 134 | |
| 135 | // List implements backend.Reader |
| 136 | func (rw *Backend) List(ctx context.Context, keypath backend.KeyPath) ([]string, error) { |
Callers
nothing calls this directly
Tested by
no test coverage detected