awsalb

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

Documentation

Index

Constants

View Source
const (
	CERTIFICATE_SOURCE_ACM = "ACM"
	CERTIFICATE_SOURCE_IAM = "IAM"
)

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 {
	// AWS AccessKeyId。
	AccessKeyId string `json:"accessKeyId"`
	// AWS SecretAccessKey。
	SecretAccessKey string `json:"secretAccessKey"`
	// AWS 区域。
	Region string `json:"region"`
	// AWS ALB 负载均衡器 ARN。
	LoadbalancerArn string `json:"loadbalancerArn"`
	// AWS ALB 侦听器 ARN。
	ListenerArn string `json:"listenerArn"`
	// AWS ALB 证书来源。
	// 可取值 "ACM"、"IAM"。
	CertificateSource string `json:"certificateSource"`
	// 是否设为默认证书。
	IsDefault bool `json:"isDefault,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