clb

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	SSL *tcssl.Client
	CLB *tcclb.Client
}

type Config

type Config struct {
	// 腾讯云 SecretId。
	SecretId string `json:"secretId" yaml:"secretId" xml:"SecretId" env:"TENCENTCLOUD_SECRET_ID"`
	// 腾讯云 SecretKey。
	SecretKey string `json:"secretKey" yaml:"secretKey" xml:"SecretKey" env:"TENCENTCLOUD_SECRET_KEY"`
	// 腾讯云地域。
	Region string `json:"region" yaml:"region" xml:"Region" env:"TENCENTCLOUD_REGION"`
	// 部署资源类型。 ssl-deploy loadbalancer listener ruledomain
	ResourceType string `json:"resourceType" yaml:"resourceType" xml:"ResourceType" env:"TENCENTCLOUD_RESOURCE_TYPE"`
	// 负载均衡器 ID。
	// 部署资源类型为 [RESOURCE_TYPE_SSLDEPLOY]、[RESOURCE_TYPE_LOADBALANCER]、[RESOURCE_TYPE_RULEDOMAIN] 时必填。
	LoadbalancerId string `` /* 129-byte string literal not displayed */
	// 负载均衡监听 ID。
	// 部署资源类型为 [RESOURCE_TYPE_SSLDEPLOY]、[RESOURCE_TYPE_LOADBALANCER]、[RESOURCE_TYPE_LISTENER]、[RESOURCE_TYPE_RULEDOMAIN] 时必填。
	ListenerId string `json:"listenerId,omitempty" yaml:"listenerId,omitempty" xml:"ListenerId,omitempty" env:"TENCENTCLOUD_LISTENER_ID"`
	// SNI 域名或七层转发规则域名(支持泛域名)。
	// 部署资源类型为 [RESOURCE_TYPE_SSLDEPLOY] 时选填;部署资源类型为 [RESOURCE_TYPE_RULEDOMAIN] 时必填。
	Domain string `json:"domain,omitempty" yaml:"domain,omitempty" xml:"Domain,omitempty" env:"TENCENTCLOUD_DOMAIN"`
}

type Deploy

type Deploy struct {
	Config *Config
}

func (*Deploy) Deploy

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

func (*Deploy) WithEnvConfig

func (d *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