IF Commons GitHub

logical/layers/audited

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-middleware FR-003

The audited layer: one record for each operation, a refused one included, given to a sink the caller gives. A record says when, which store, which operation and path, what the outcome was and how many bytes; it holds no bytes. Where the sink fails the answer is unavailable and the operation's effect stands, so that a gap in the audit is never silent.

import { audited } from "./audited.ts";
// const store = audited(inner, sink, clock)

Source: commons/anyfs/src/logical/layers/audited.ts

1 of 1 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

auditedfunction
function audited<C extends Capability>(store: Store<C>, sink: AuditSink, clock: Pick<Clock, "now">): Store<Carried<C>>

A store that gives a record of each operation of its argument to a sink, and keeps its capabilities.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.