mirror of
https://github.com/go-acme/lego.git
synced 2025-01-07 17:06:27 +02:00
Merge pull request #301 from edeckers/bugfix/vet_json_tag_remove_unused_type
Fix duplicate json tag in recoveryKeyMessage
This commit is contained in:
commit
3690d6ecaa
@ -13,17 +13,10 @@ type directory struct {
|
|||||||
RevokeCertURL string `json:"revoke-cert"`
|
RevokeCertURL string `json:"revoke-cert"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type recoveryKeyMessage struct {
|
|
||||||
Length int `json:"length,omitempty"`
|
|
||||||
Client jose.JsonWebKey `json:"client,omitempty"`
|
|
||||||
Server jose.JsonWebKey `json:"client,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type registrationMessage struct {
|
type registrationMessage struct {
|
||||||
Resource string `json:"resource"`
|
Resource string `json:"resource"`
|
||||||
Contact []string `json:"contact"`
|
Contact []string `json:"contact"`
|
||||||
Delete bool `json:"delete,omitempty"`
|
Delete bool `json:"delete,omitempty"`
|
||||||
// RecoveryKey recoveryKeyMessage `json:"recoveryKey,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Registration is returned by the ACME server after the registration
|
// Registration is returned by the ACME server after the registration
|
||||||
@ -36,7 +29,6 @@ type Registration struct {
|
|||||||
Agreement string `json:"agreement,omitempty"`
|
Agreement string `json:"agreement,omitempty"`
|
||||||
Authorizations string `json:"authorizations,omitempty"`
|
Authorizations string `json:"authorizations,omitempty"`
|
||||||
Certificates string `json:"certificates,omitempty"`
|
Certificates string `json:"certificates,omitempty"`
|
||||||
// RecoveryKey recoveryKeyMessage `json:"recoveryKey,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegistrationResource represents all important informations about a registration
|
// RegistrationResource represents all important informations about a registration
|
||||||
|
Loading…
Reference in New Issue
Block a user