mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-08 02:11:47 +00:00
.github
.vscode
docker
internal
applicant
deployer
domain
domains
notify
pkg
core
deployer
providers
deployer.go
logger.go
notifier
uploader
utils
vendors
repository
rest
routes
utils
migrations
ui
.dockerignore
.editorconfig
.gitignore
.goreleaser.yml
CHANGELOG.md
CONTRIBUTING.md
CONTRIBUTING_EN.md
Dockerfile
LICENSE.md
Makefile
README.md
README_EN.md
go.mod
go.sum
main.go
nixpacks.toml
usage.gif
25 lines
660 B
Go
25 lines
660 B
Go
package deployer
|
||
|
||
import "context"
|
||
|
||
// 表示定义证书部署器的抽象类型接口。
|
||
// 注意与 `Uploader` 区分,“部署”通常为“上传”的后置操作。
|
||
type Deployer interface {
|
||
// 部署证书。
|
||
//
|
||
// 入参:
|
||
// - ctx:上下文。
|
||
// - certPem:证书 PEM 内容。
|
||
// - privkeyPem:私钥 PEM 内容。
|
||
//
|
||
// 出参:
|
||
// - res:部署结果。
|
||
// - err: 错误。
|
||
Deploy(ctx context.Context, certPem string, privkeyPem string) (res *DeployResult, err error)
|
||
}
|
||
|
||
// 表示证书部署结果的数据结构。
|
||
type DeployResult struct {
|
||
DeploymentData map[string]any `json:"deploymentData,omitempty"`
|
||
}
|