forked from TrueCloudLab/certificates
Comment request structs.
This commit is contained in:
parent
bd8dd9da41
commit
8eff4e77a8
1 changed files with 11 additions and 0 deletions
|
@ -5,23 +5,29 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// CreateCertificateRequest is the request used to sign a new certificate.
|
||||||
type CreateCertificateRequest struct {
|
type CreateCertificateRequest struct {
|
||||||
Template *x509.Certificate
|
Template *x509.Certificate
|
||||||
Lifetime time.Duration
|
Lifetime time.Duration
|
||||||
Backdate time.Duration
|
Backdate time.Duration
|
||||||
RequestID string
|
RequestID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CreateCertificateResponse is the response to a create certificate request.
|
||||||
type CreateCertificateResponse struct {
|
type CreateCertificateResponse struct {
|
||||||
Certificate *x509.Certificate
|
Certificate *x509.Certificate
|
||||||
CertificateChain []*x509.Certificate
|
CertificateChain []*x509.Certificate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RenewCertificateRequest is the request used to re-sign a certificate.
|
||||||
type RenewCertificateRequest struct {
|
type RenewCertificateRequest struct {
|
||||||
Template *x509.Certificate
|
Template *x509.Certificate
|
||||||
Lifetime time.Duration
|
Lifetime time.Duration
|
||||||
Backdate time.Duration
|
Backdate time.Duration
|
||||||
RequestID string
|
RequestID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RenewCertificateResponse is the response to a renew certificate request.
|
||||||
type RenewCertificateResponse struct {
|
type RenewCertificateResponse struct {
|
||||||
Certificate *x509.Certificate
|
Certificate *x509.Certificate
|
||||||
CertificateChain []*x509.Certificate
|
CertificateChain []*x509.Certificate
|
||||||
|
@ -30,7 +36,12 @@ type RenewCertificateResponse struct {
|
||||||
// RevokeCertificateRequest is the request used to revoke a certificate.
|
// RevokeCertificateRequest is the request used to revoke a certificate.
|
||||||
type RevokeCertificateRequest struct {
|
type RevokeCertificateRequest struct {
|
||||||
Certificate *x509.Certificate
|
Certificate *x509.Certificate
|
||||||
|
Reason string
|
||||||
|
ReasonCode int
|
||||||
|
RequestID string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RevokeCertificateResponse is the response to a revoke certificate request.
|
||||||
type RevokeCertificateResponse struct {
|
type RevokeCertificateResponse struct {
|
||||||
Certificate *x509.Certificate
|
Certificate *x509.Certificate
|
||||||
CertificateChain []*x509.Certificate
|
CertificateChain []*x509.Certificate
|
||||||
|
|
Loading…
Reference in a new issue