From 31f0b8b83077e9f53517889a93ef1ed6d9ad685a Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 1 Nov 2021 14:19:45 -0400 Subject: [PATCH] Update loglist for Chrome's new v3 schema See https://groups.google.com/a/chromium.org/d/msgid/ct-policy/f2958124-f679-406d-8bca-a063b7d37c3an%40chromium.org --- loglist/schema.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/loglist/schema.go b/loglist/schema.go index a5aa317..eb56c7d 100644 --- a/loglist/schema.go +++ b/loglist/schema.go @@ -16,8 +16,9 @@ import ( ) type List struct { - Version string `json:"version"` - Operators []Operator `json:"operators"` + Version string `json:"version"` + LogListTimestamp time.Time `json:"log_list_timestamp"` // Only present in v3 of schema + Operators []Operator `json:"operators"` } type Operator struct { @@ -39,6 +40,8 @@ type Log struct { StartInclusive time.Time `json:"start_inclusive"` EndExclusive time.Time `json:"end_exclusive"` } `json:"temporal_interval"` + + // TODO: add previous_operators } type State struct {