aliyun

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ServiceCAS = "cas"
	ServiceESA = "esa"
)

Service 服务类型

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.5.5

type Options struct {
	// Service 必填: cas 或 esa
	Service string

	ESASiteID string
}

Options 阿里云 provider 的可选配置

type Provider

type Provider struct {
	AccessKeyId     string
	AccessKeySecret string
	// contains filtered or unexported fields
}

func New

func New(accessKeyId, accessKeySecret string, options *Options) (*Provider, error)

New 创建实例

func (*Provider) DeployToCDN

func (p *Provider) DeployToCDN(certID string, domain string) (string, error)

DeployToCDN 部署证书到 CDN

func (*Provider) DeployToDCND

func (p *Provider) DeployToDCND(certID string, domain string) (string, error)

DeployToDCND 部署证书到 DCND

func (*Provider) DeployToOSS

func (p *Provider) DeployToOSS(certID string, domain string) (string, error)

DeployToOSS 部署证书到 OSS

func (*Provider) TestConnection

func (p *Provider) TestConnection() (bool, error)

TestConnection 测试连接

func (*Provider) UploadCertificate

func (p *Provider) UploadCertificate(name, domain, cert, key string) error

UploadCertificate 上传证书

Jump to

Keyboard shortcuts

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