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
This commit is contained in:
parent
8c14597721
commit
31f0b8b830
|
@ -16,8 +16,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type List struct {
|
type List struct {
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Operators []Operator `json:"operators"`
|
LogListTimestamp time.Time `json:"log_list_timestamp"` // Only present in v3 of schema
|
||||||
|
Operators []Operator `json:"operators"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Operator struct {
|
type Operator struct {
|
||||||
|
@ -39,6 +40,8 @@ type Log struct {
|
||||||
StartInclusive time.Time `json:"start_inclusive"`
|
StartInclusive time.Time `json:"start_inclusive"`
|
||||||
EndExclusive time.Time `json:"end_exclusive"`
|
EndExclusive time.Time `json:"end_exclusive"`
|
||||||
} `json:"temporal_interval"`
|
} `json:"temporal_interval"`
|
||||||
|
|
||||||
|
// TODO: add previous_operators
|
||||||
}
|
}
|
||||||
|
|
||||||
type State struct {
|
type State struct {
|
||||||
|
|
Loading…
Reference in New Issue