Documentation
¶
Overview ¶
Package audit keeps the audit log: every publish, done or refused, one per line of an append-only file, in the JSON form of the contract's AuditEntry. The file is rotated when it reaches a size; rotated files are deleted once older than an age.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter is which entries a read returns: from Since on (all when zero), of the repository at URL (any when empty), at most Limit of them.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is the audit log in a directory: the file being written, and those rotated out of it. RotateBytes is the size the file is rotated at; Keep is how long a rotated file is kept.
func New ¶
New returns the audit log in directory, making it if it is not there, and deletes the rotated files older than keep.