cloudflaressl

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 7 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 = core.DeployerDeployResult

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

func NewDeployer

func NewDeployer(config *DeployerConfig) (*Deployer, error)

func (*Deployer) Deploy

func (d *Deployer) Deploy(ctx context.Context, certPEM, privkeyPEM string) (*DeployResult, error)

func (*Deployer) SetLogger

func (d *Deployer) SetLogger(logger *slog.Logger)

type DeployerConfig

type DeployerConfig struct {
	// Cloudflare API Token。
	ApiToken string `json:"apiToken"`
	// Cloudflare 环境。
	// 选填。
	// 零值时默认值 "production"。
	Environment string `json:"environment,omitempty"`
	// Cloudflare DNS 区域 ID。
	ZoneId string `json:"zoneId"`
	// Cloudflare 证书 ID。
	// 选填。零值时表示新建证书;否则表示更新证书。
	CertificateId string `json:"certificateId,omitempty"`
}

type Provider

type Provider = core.Deployer

Jump to

Keyboard shortcuts

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