deploy

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

README

cdn Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
Domain string ALIYUN_DOMAIN

clb Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
Region string TENCENTCLOUD_REGION
ResourceType string TENCENTCLOUD_RESOURCE_TYPE
LoadbalancerId string TENCENTCLOUD_LOADBALANCER_ID
ListenerId string TENCENTCLOUD_LISTENER_ID
Domain string TENCENTCLOUD_DOMAIN

cos Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
Region string TENCENTCLOUD_REGION
Bucket string TENCENTCLOUD_BUCKET
Domain string TENCENTCLOUD_DOMAIN

dcdn Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
Domain string ALIYUN_DOMAIN

ecdn Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
Domain string TENCENTCLOUD_DOMAIN

fc Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
ResourceGroupId string ALIYUN_RESOURCE_GROUP_ID
Region string ALIYUN_REGION
Version string ALIYUN_VERSION
Domain string ALIYUN_DOMAIN

live Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
Region string ALIYUN_REGION
Domain string ALIYUN_DOMAIN

local Environment variables

Field Name Type Environment Variable
PreCommand string LOCAL_PRE_COMMAND
PostCommand string LOCAL_POST_COMMAND
CertPath string LOCAL_CERT_PATH
KeyPath string LOCAL_KEY_PATH

oss Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
Region string ALIYUN_REGION
Bucket string ALIYUN_BUCKET
Domain string ALIYUN_DOMAIN

scf Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
Region string TENCENTCLOUD_REGION
Domain string TENCENTCLOUD_DOMAIN

ssh Environment variables

Field Name Type Environment Variable
Host string SSH_HOST
Port int32 SSH_PORT
Username string SSH_USERNAME
Password string SSH_PASSWORD
Key string SSH_KEY
KeyPassphrase string SSH_KEY_PASSPHRASE
UseSCP bool SSH_USE_SCP
PreCommand string SSH_PRE_COMMAND
PostCommand string SSH_POST_COMMAND
CertPath string SSH_CERT_PATH
KeyPath string SSH_KEY_PATH

tcdn Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
Domain string TENCENTCLOUD_DOMAIN

tssl Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY

tvod Environment variables

Field Name Type Environment Variable
SecretId string TENCENTCLOUD_SECRET_ID
SecretKey string TENCENTCLOUD_SECRET_KEY
SubAppId int64 TENCENTCLOUD_SUB_APP_ID
Domain string TENCENTCLOUD_DOMAIN

vod Environment variables

Field Name Type Environment Variable
AccessKeyId string ALIYUN_ACCESS_KEY_ID
AccessKeySecret string ALIYUN_ACCESS_KEY_SECRET
Region string ALIYUN_REGION
Domain string ALIYUN_DOMAIN

Documentation

Index

Constants

View Source
const (
	DeployLocalPath = "/etc/nginx/ssl/"
)

Variables

This section is empty.

Functions

func JSONFileRemove added in v0.2.2

func JSONFileRemove(filePath string, domains []string) error

func JSONFileSet added in v0.2.2

func JSONFileSet(filePath, name string, certificate *certificate.Resource) error

func Register

func Register(name string, deploy IDeploy)

func Run added in v0.2.3

func Run(name string, certificate *certificate.Resource) error

func RunWithJSONFile added in v0.2.2

func RunWithJSONFile(filePath, name string, certificate *certificate.Resource) error

Types

type DomainDeploys added in v0.2.0

type DomainDeploys struct {
	Domain  string   `json:"domain"`
	Deploys []string `json:"deploy"`
}

func JSONFileLoad added in v0.2.2

func JSONFileLoad(filePath string) ([]DomainDeploys, error)

type IDeploy

type IDeploy interface {
	WithLogger(logger log.ILogger)
	WithEnvConfig() error
	Deploy(ctx context.Context, certificate *certificate.Resource) error
}

func Get

func Get(name string) (IDeploy, error)

Directories

Path Synopsis
aliyun
cdn
fc
oss
vod
tencentcloud
cdn
clb
cos
scf
ssl
vod

Jump to

Keyboard shortcuts

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