Documentation ¶
Index ¶
- Constants
- Variables
- func FetchIfModified(ctx context.Context, url string, token *ModificationToken) (*List, *ModificationToken, error)
- func LoadIfModified(ctx context.Context, urlOrFile string, token *ModificationToken) (*List, *ModificationToken, error)
- type List
- type Log
- type LogType
- type ModificationToken
- type Operator
- type State
Constants ¶
View Source
const ( LogTypeProd = "prod" LogTypeTest = "test" )
Variables ¶
View Source
var UserAgent = "certspotter"
Functions ¶
func FetchIfModified ¶ added in v0.15.0
func FetchIfModified(ctx context.Context, url string, token *ModificationToken) (*List, *ModificationToken, error)
func LoadIfModified ¶ added in v0.15.0
func LoadIfModified(ctx context.Context, urlOrFile string, token *ModificationToken) (*List, *ModificationToken, error)
Types ¶
type List ¶
type Log ¶
type Log struct { Key []byte `json:"key"` LogID ct.SHA256Hash `json:"log_id"` MMD int `json:"mmd"` URL string `json:"url"` Description string `json:"description"` State State `json:"state"` DNS string `json:"dns"` LogType LogType `json:"log_type"` TemporalInterval *struct { StartInclusive time.Time `json:"start_inclusive"` EndExclusive time.Time `json:"end_exclusive"` } `json:"temporal_interval"` }
type ModificationToken ¶ added in v0.15.0
type ModificationToken struct {
// contains filtered or unexported fields
}
type Operator ¶
type State ¶
type State struct { Pending *struct { Timestamp time.Time `json:"timestamp"` } `json:"pending"` Qualified *struct { Timestamp time.Time `json:"timestamp"` } `json:"qualified"` Usable *struct { Timestamp time.Time `json:"timestamp"` } `json:"usable"` Readonly *struct { Timestamp time.Time `json:"timestamp"` FinalTreeHead struct { TreeSize int64 `json:"tree_size"` SHA256RootHash []byte `json:"sha256_root_hash"` } `json:"final_tree_head"` } `json:"readonly"` Retired *struct { Timestamp time.Time `json:"timestamp"` } `json:"retired"` Rejected *struct { Timestamp time.Time `json:"timestamp"` } `json:"rejected"` }
Click to show internal directories.
Click to hide internal directories.