local

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(path string, content []byte) error

func ExecCommand

func ExecCommand(command, shellEnv string) (string, string, error)

Types

type Config

type Config struct {
	// Shell 执行环境。
	// 前置命令。
	PreCommand string `json:"pre_command,omitempty" yaml:"PreCommand" xml:"PreCommand" env:"LOCAL_PRE_COMMAND"`
	// 后置命令。
	PostCommand string `json:"post_command,omitempty" yaml:"PostCommand" xml:"PostCommand" env:"LOCAL_POST_COMMAND"`
	// 输出证书文件路径。
	CertPath string `json:"cert_path,omitempty" yaml:"CertPath" xml:"CertPath" env:"LOCAL_CERT_PATH"`
	// 输出私钥文件路径。
	KeyPath string `json:"key_path,omitempty" yaml:"KeyPath" xml:"KeyPath" env:"LOCAL_KEY_PATH"`
}

type Deploy

type Deploy struct {
	Config *Config
}

func (*Deploy) Deploy

func (p *Deploy) Deploy(ctx context.Context, certificate *certificate.Resource) error

func (*Deploy) WithEnvConfig

func (p *Deploy) WithEnvConfig() error

Source Files

  • config.go
  • deploy.go
  • util.go

Jump to

Keyboard shortcuts

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