deployer

package
v0.3.0-alpha.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployResult

type DeployResult struct {
	ExtendedData map[string]any `json:"extendedData,omitempty"`
}

表示证书部署结果的数据结构。

type Deployer

type Deployer interface {
	// 部署证书。
	//
	// 入参:
	//   - ctx:上下文。
	//   - certPem:证书 PEM 内容。
	//   - privkeyPem:私钥 PEM 内容。
	//
	// 出参:
	//   - res:部署结果。
	//   - err: 错误。
	Deploy(ctx context.Context, certPem string, privkeyPem string) (res *DeployResult, err error)
}

表示定义证书部署器的抽象类型接口。 注意与 `Uploader` 区分,“部署”通常为“上传”的后置操作。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL