deployer

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 2 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"`
}

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

type Provider

type Provider interface {
	// 设置日志记录器。
	//
	// 入参:
	//   - logger:日志记录器实例。
	SetLogger(logger *slog.Logger)

	// 部署证书。
	//
	// 入参:
	//   - ctx:上下文。
	//   - certPEM:证书 PEM 内容。
	//   - privkeyPEM:私钥 PEM 内容。
	//
	// 出参:
	//   - res:部署结果。
	//   - err: 错误。
	Deploy(ctx context.Context, certPEM, privkeyPEM string) (_res *DeployResult, _err error)
}

表示定义 SSL 证书部署器的抽象类型接口。

Directories

Path Synopsis
providers
ssh

Jump to

Keyboard shortcuts

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