aliyun

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 28 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// AccessKeyId 是阿里云访问密钥标识,不得写入日志。
	AccessKeyId string
	// AccessKeySecret 是阿里云访问密钥密钥,不得写入日志。
	AccessKeySecret string
	// contains filtered or unexported fields
}

Provider 管理阿里云证书中心和精确云资源部署所需的客户端。

func New

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

New 创建实例

func (*Provider) DeployCertificate added in v0.6.4

func (p *Provider) DeployCertificate(ctx context.Context, certificate providers.CertificateMaterial, deploymentType deployPB.DeploymentType, resource providers.DeploymentResource) (providers.DeploymentResult, error)

DeployCertificate 将证书部署到一个明确阿里云业务下精确解析出的资源。

func (*Provider) DiscoverResources added in v0.7.0

func (p *Provider) DiscoverResources(ctx context.Context, deploymentType deployPB.DeploymentType) providers.ResourceCatalogResult

DiscoverResources 实时读取阿里云指定产品的资源目录。

func (*Provider) ResolveResource added in v0.7.0

func (p *Provider) ResolveResource(ctx context.Context, deploymentType deployPB.DeploymentType, targetRef string) (providers.DeploymentResource, error)

ResolveResource 实时扫描阿里云产品并按引用唯一解析私有资源。

func (*Provider) TestConnection

func (p *Provider) TestConnection(ctx context.Context) (bool, error)

TestConnection 测试连接

func (*Provider) TestResource added in v0.7.0

func (p *Provider) TestResource(ctx context.Context, deploymentType deployPB.DeploymentType, targetRef string) error

TestResource 只读确认阿里云资源仍存在且具备精确证书槽位。

func (*Provider) UploadCertificate

func (p *Provider) UploadCertificate(ctx context.Context, certificate providers.CertificateMaterial) error

UploadCertificate 上传证书

Jump to

Keyboard shortcuts

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