mirror of
https://github.com/SSLMate/certspotter.git
synced 2026-01-15 09:44:21 +01:00
loglist: add some helper functions
This commit is contained in:
@@ -71,6 +71,14 @@ type State struct {
|
||||
} `json:"rejected"`
|
||||
}
|
||||
|
||||
func (state *State) IsApproved() bool {
|
||||
return state.Qualified != nil || state.Usable != nil || state.Readonly != nil
|
||||
}
|
||||
|
||||
func (state *State) WasApprovedAt(t time.Time) bool {
|
||||
return state.Retired != nil && t.Before(state.Retired.Timestamp)
|
||||
}
|
||||
|
||||
type LogType string
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user