2020-10-01 15:45:57 +00:00
|
|
|
package device
|
|
|
|
|
|
|
|
type Key struct {
|
|
|
|
Id string `json:"id,omitempty"`
|
|
|
|
Type string `json:"type,omitempty"`
|
2020-10-11 21:11:30 +00:00
|
|
|
Key []byte `json:"key,omitempty"`
|
|
|
|
}
|
|
|
|
|
2020-10-17 10:07:39 +00:00
|
|
|
type ServerKeys struct {
|
2020-10-11 21:11:30 +00:00
|
|
|
ServerName string `json:"server_name,omitempty"`
|
|
|
|
VerifyKeys map[string]verifyKey `json:"verify_keys,omitempty"`
|
|
|
|
OldVerifyKeys map[string]verifyKey `json:"old_verify_keys,omitempty"`
|
|
|
|
Signatures map[string]map[string]string `json:"signatures,omitempty"`
|
|
|
|
ValidUntil int64 `json:"valid_until_ts,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type verifyKey struct {
|
|
|
|
Key string `json:"key,omitempty"`
|
|
|
|
Expired int64 `json:"expired_ts,omitempty"`
|
2020-10-01 15:45:57 +00:00
|
|
|
}
|