Documentation
¶
Overview ¶
Package weblog records bounded, allow-listed Web authentication and server startup evidence in the master directory.
Index ¶
Constants ¶
const ( FileName = "web-events.jsonl" RotatedFileName = "web-events.jsonl.1" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
Recorder queues records so filesystem latency and errors never change a Web response. Close flushes records already accepted into the queue.
func (*Recorder) Close ¶
func (recorder *Recorder) Close()
Close flushes queued records and stops the writer.
func (*Recorder) RecordAuthEvent ¶
RecordAuthEvent implements webui.AuthRecorder.
func (*Recorder) RecordServerStart ¶
RecordServerStart records a listener that is ready to serve.
type Start ¶
type Start struct {
Version string
ExecutableSHA256 string
ExecutableModified time.Time
Host string
Port int
Auth string
AllowExec bool
AllowTerminal bool
AllowControl bool
Notifications bool
ArtifactRootCount int
RegisteredBaseDirCount int
}
Start describes the allow-listed facts recorded once a listener is up.