mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 23:16:37 +08:00
5b52acdd6c
第二阶段清理:删除 of_managed_domains 与 of_proxy_routes 冗余域名/证书列, 移除 ManagedDomain 模型与 API、路由侧 legacy 字段维护,以及前端 WebsiteService。 ImportLegacy 在旧列/旧表缺失时跳过对应源,保持幂等。
23 lines
1.1 KiB
Go
23 lines
1.1 KiB
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package tls defines shared error messages for certificate management.
|
|
package tls
|
|
|
|
const (
|
|
errCertificateNameRequired = "certificate name cannot be empty"
|
|
errCertificateNameExists = "certificate name already exists"
|
|
errCertificateContentRequired = "certificate content and key content cannot be empty"
|
|
errCertificateContentInvalid = "certificate or key format is invalid"
|
|
errCertificateDeleteReferenced = "certificate is still referenced by proxy routes"
|
|
errCertificateOnlyACME = "only acme certificates can be updated via this endpoint"
|
|
errCertificateOnlyUploadConvert = "only uploaded certificates can be converted to acme"
|
|
errCertificateAlreadyApplying = "certificate is already applying"
|
|
errCertificateOnlyACMERenew = "only acme certificates can be renewed"
|
|
errCertificateFilesRequired = "certificate file and key file cannot be empty"
|
|
errCertificatePEMInvalid = "证书 PEM 内容不合法"
|
|
|
|
|
|
errDNSAccountInUse = "该 DNS 账号已被证书使用,无法删除"
|
|
)
|