local

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OUTPUT_FORMAT_PEM = OutputFormatType("PEM")
	OUTPUT_FORMAT_PFX = OutputFormatType("PFX")
	OUTPUT_FORMAT_JKS = OutputFormatType("JKS")
)
View Source
const (
	SHELL_ENV_SH         = ShellEnvType("sh")
	SHELL_ENV_CMD        = ShellEnvType("cmd")
	SHELL_ENV_POWERSHELL = ShellEnvType("powershell")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalDeployer

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

func New

func New(config *LocalDeployerConfig) (*LocalDeployer, error)

func NewWithLogger

func NewWithLogger(config *LocalDeployerConfig, logger deployer.Logger) (*LocalDeployer, error)

func (*LocalDeployer) Deploy

func (d *LocalDeployer) Deploy(ctx context.Context, certPem string, privkeyPem string) (*deployer.DeployResult, error)

type LocalDeployerConfig

type LocalDeployerConfig struct {
	// Shell 执行环境。
	// 零值时默认根据操作系统决定。
	ShellEnv ShellEnvType `json:"shellEnv,omitempty"`
	// 前置命令。
	PreCommand string `json:"preCommand,omitempty"`
	// 后置命令。
	PostCommand string `json:"postCommand,omitempty"`
	// 输出证书格式。
	OutputFormat OutputFormatType `json:"outputFormat,omitempty"`
	// 输出证书文件路径。
	OutputCertPath string `json:"outputCertPath,omitempty"`
	// 输出私钥文件路径。
	OutputKeyPath string `json:"outputKeyPath,omitempty"`
	// PFX 导出密码。
	// 证书格式为 PFX 时必填。
	PfxPassword string `json:"pfxPassword,omitempty"`
	// JKS 别名。
	// 证书格式为 JKS 时必填。
	JksAlias string `json:"jksAlias,omitempty"`
	// JKS 密钥密码。
	// 证书格式为 JKS 时必填。
	JksKeypass string `json:"jksKeypass,omitempty"`
	// JKS 存储密码。
	// 证书格式为 JKS 时必填。
	JksStorepass string `json:"jksStorepass,omitempty"`
}

type OutputFormatType

type OutputFormatType string

type ShellEnvType

type ShellEnvType string

Jump to

Keyboard shortcuts

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