go fmt
This commit is contained in:
@@ -30,24 +30,24 @@ type Config struct {
|
||||
}
|
||||
|
||||
type Log struct {
|
||||
ShortName string `yaml:"shortname"`
|
||||
Inception string `yaml:"inception"`
|
||||
Period int `yaml:"period"`
|
||||
PoolSize int `yaml:"poolsize"`
|
||||
SubmissionPrefix string `yaml:"submissionprefix"`
|
||||
MonitoringPrefix string `yaml:"monitoringprefix"`
|
||||
CCadbRoots string `yaml:"ccadbroots"`
|
||||
ExtraRoots string `yaml:"extraroots"`
|
||||
Secret string `yaml:"secret"`
|
||||
Cache string `yaml:"cache"`
|
||||
LocalDirectory string `yaml:"localdirectory"`
|
||||
NotAfterStart time.Time `yaml:"notafterstart"`
|
||||
NotAfterLimit time.Time `yaml:"notafterlimit"`
|
||||
ShortName string `yaml:"shortname"`
|
||||
Inception string `yaml:"inception"`
|
||||
Period int `yaml:"period"`
|
||||
PoolSize int `yaml:"poolsize"`
|
||||
SubmissionPrefix string `yaml:"submissionprefix"`
|
||||
MonitoringPrefix string `yaml:"monitoringprefix"`
|
||||
CCadbRoots string `yaml:"ccadbroots"`
|
||||
ExtraRoots string `yaml:"extraroots"`
|
||||
Secret string `yaml:"secret"`
|
||||
Cache string `yaml:"cache"`
|
||||
LocalDirectory string `yaml:"localdirectory"`
|
||||
NotAfterStart time.Time `yaml:"notafterstart"`
|
||||
NotAfterLimit time.Time `yaml:"notafterlimit"`
|
||||
// Computed fields
|
||||
LogID string
|
||||
PublicKeyPEM string
|
||||
PublicKeyDERB64 string
|
||||
PublicKeyBase64 string
|
||||
LogID string
|
||||
PublicKeyPEM string
|
||||
PublicKeyDERB64 string
|
||||
PublicKeyBase64 string
|
||||
}
|
||||
|
||||
const htmlTemplate = `<!DOCTYPE html>
|
||||
@@ -291,19 +291,19 @@ func computeKeyInfo(logEntry *Log) error {
|
||||
logEntry.LogID = logID
|
||||
logEntry.PublicKeyPEM = string(pubKeyPEM)
|
||||
logEntry.PublicKeyDERB64 = pubKeyDERB64
|
||||
logEntry.PublicKeyBase64 = pubKeyDERB64 // Same as DER base64 for JSON
|
||||
logEntry.PublicKeyBase64 = pubKeyDERB64 // Same as DER base64 for JSON
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type LogV3JSON struct {
|
||||
Description string `json:"description"`
|
||||
SubmissionURL string `json:"submission_url"`
|
||||
MonitoringURL string `json:"monitoring_url"`
|
||||
TemporalInterval TemporalInterval `json:"temporal_interval"`
|
||||
LogID string `json:"log_id"`
|
||||
Key string `json:"key"`
|
||||
MMD int `json:"mmd"`
|
||||
Description string `json:"description"`
|
||||
SubmissionURL string `json:"submission_url"`
|
||||
MonitoringURL string `json:"monitoring_url"`
|
||||
TemporalInterval TemporalInterval `json:"temporal_interval"`
|
||||
LogID string `json:"log_id"`
|
||||
Key string `json:"key"`
|
||||
MMD int `json:"mmd"`
|
||||
}
|
||||
|
||||
type TemporalInterval struct {
|
||||
|
Reference in New Issue
Block a user