{"modulePath":"github.com/https-cert/deploy","version":"v0.7.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package aliyun\n\n## Types\n\n```go\ntype DNSCaller struct {\n\t// contains filtered or unexported fields\n}\n```\nDNSCaller 复用现有上下文感知 OpenAPI 适配器，仅允许 AliDNS 产品调用。\n\n```go\nfunc NewDNSCaller(accessKeyID, accessKeySecret string) (*DNSCaller, error)\n```\nNewDNSCaller 只构建 DNS 所需的适配器，不请求 CAS 或 CDN。\n\n```go\nfunc (c *DNSCaller) Call(ctx context.Context, action string, query map[string]string) (map[string]any, string, error)\n```\nCall 执行固定 Endpoint 与版本的 DNS RPC。\n\n```go\ntype Provider struct {\n\t// AccessKeyId 是阿里云访问密钥标识，不得写入日志。\n\tAccessKeyId string\n\t// AccessKeySecret 是阿里云访问密钥密钥，不得写入日志。\n\tAccessKeySecret string\n\t// contains filtered or unexported fields\n}\n```\nProvider 管理阿里云证书中心和精确云资源部署所需的客户端。\n\n```go\nfunc New(accessKeyId, accessKeySecret string) (*Provider, error)\n```\nNew 创建实例\n\n```go\nfunc (p *Provider) DeployCertificate(ctx context.Context, certificate providers.CertificateMaterial, deploymentType deployPB.DeploymentType, resource providers.DeploymentResource) (providers.DeploymentResult, error)\n```\nDeployCertificate 将证书部署到一个明确阿里云业务下精确解析出的资源。\n\n```go\nfunc (p *Provider) DiscoverResources(ctx context.Context, deploymentType deployPB.DeploymentType) providers.ResourceCatalogResult\n```\nDiscoverResources 实时读取阿里云指定产品的资源目录。\n\n```go\nfunc (p *Provider) ResolveResource(ctx context.Context, deploymentType deployPB.DeploymentType, targetRef string) (providers.DeploymentResource, error)\n```\nResolveResource 实时扫描阿里云产品并按引用唯一解析私有资源。\n\n```go\nfunc (p *Provider) TestConnection(ctx context.Context) (bool, error)\n```\nTestConnection 测试连接\n\n```go\nfunc (p *Provider) TestResource(ctx context.Context, deploymentType deployPB.DeploymentType, targetRef string) error\n```\nTestResource 只读确认阿里云资源仍存在且具备精确证书槽位。\n\n```go\nfunc (p *Provider) UploadCertificate(ctx context.Context, certificate providers.CertificateMaterial) error\n```\nUploadCertificate 上传证书\n\n","path":"github.com/https-cert/deploy/internal/client/providers/aliyun","name":"aliyun","synopsis":"","isRedistributable":true}
