MCPcopy
hub / github.com/getsops/sops / PostgresAuditor

Struct PostgresAuditor

audit/audit.go:112–114  ·  view source on GitHub ↗

PostgresAuditor is a Postgres SQL DB implementation of the Auditor interface. It persists the audit event by writing a row to the 'audit_event' table. Errors with writing to the database will output a log message and the process will exit with status set to 1

Source from the content-addressed store, hash-verified

110// Errors with writing to the database will output a log message and the
111// process will exit with status set to 1
112type PostgresAuditor struct {
113 DB *sql.DB
114}
115
116// NewPostgresAuditor is the constructor for a new PostgresAuditor struct
117// initialized with the given db connection string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected