mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 05:29:51 +00:00
30 lines
1.3 KiB
Go
30 lines
1.3 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
const CollectionNameCertificate = "certificate"
|
|
|
|
type Certificate struct {
|
|
Meta
|
|
Source CertificateSourceType `json:"source" db:"source"`
|
|
SubjectAltNames string `json:"subjectAltNames" db:"subjectAltNames"`
|
|
Certificate string `json:"certificate" db:"certificate"`
|
|
PrivateKey string `json:"privateKey" db:"privateKey"`
|
|
IssuerCertificate string `json:"issuerCertificate" db:"issuerCertificate"`
|
|
EffectAt time.Time `json:"effectAt" db:"effectAt"`
|
|
ExpireAt time.Time `json:"expireAt" db:"expireAt"`
|
|
ACMECertUrl string `json:"acmeCertUrl" db:"acmeCertUrl"`
|
|
ACMECertStableUrl string `json:"acmeCertStableUrl" db:"acmeCertStableUrl"`
|
|
WorkflowId string `json:"workflowId" db:"workflowId"`
|
|
WorkflowNodeId string `json:"workflowNodeId" db:"workflowNodeId"`
|
|
WorkflowOutputId string `json:"workflowOutputId" db:"workflowOutputId"`
|
|
DeletedAt *time.Time `json:"deleted" db:"deleted"`
|
|
}
|
|
|
|
type CertificateSourceType string
|
|
|
|
const (
|
|
CertificateSourceTypeWorkflow = CertificateSourceType("workflow")
|
|
CertificateSourceTypeUpload = CertificateSourceType("upload")
|
|
)
|