{"modulePath":"github.com/https-cert/deploy","version":"v0.7.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dogecloud\n\nPackage dogecloud implements DogeCloud certificate upload and CDN deployment.\n\n## Types\n\n```go\ntype HTTPClient interface {\n\tDo(request *http.Request) (*http.Response, error)\n}\n```\nHTTPClient 是多吉云 provider 使用的最小 HTTP 客户端接口。\n\n```go\ntype Options struct {\n\tHTTPClient HTTPClient // HTTPClient 执行多吉云控制面请求。\n\tAPIBaseURL string     // APIBaseURL 覆盖多吉云默认 API 地址。\n}\n```\nOptions 提供测试可替换的 HTTP 客户端和 API 地址。\n\n```go\ntype Provider struct {\n\t// contains filtered or unexported fields\n}\n```\nProvider 保存多吉云 API 密钥和请求客户端。\n\n```go\nfunc New(accessKey, accessSecret string) *Provider\n```\nNew 创建使用多吉云生产 API 地址的 provider。\n\n```go\nfunc NewWithOptions(accessKey, accessSecret string, options *Options) *Provider\n```\nNewWithOptions 创建支持测试注入的多吉云 provider。\n\n```go\nfunc (p *Provider) DeployCertificate(ctx context.Context, certificate providers.CertificateMaterial, deploymentType deployPB.DeploymentType, resource providers.DeploymentResource) (providers.DeploymentResult, error)\n```\nDeployCertificate 上传或复用证书，绑定精确域名并回读证书 ID。\n\n```go\nfunc (p *Provider) DiscoverResources(ctx context.Context, deploymentType deployPB.DeploymentType) providers.ResourceCatalogResult\n```\nDiscoverResources 实时读取多吉云 CDN 域名目录。\n\n```go\nfunc (p *Provider) ResolveResource(ctx context.Context, deploymentType deployPB.DeploymentType, targetRef string) (providers.DeploymentResource, error)\n```\nResolveResource 重新读取目录并按 targetRef 唯一解析域名。\n\n```go\nfunc (p *Provider) TestConnection(ctx context.Context) (bool, error)\n```\nTestConnection 验证多吉云密钥可以读取 CDN 域名目录。\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/dogecloud","name":"dogecloud","synopsis":"Package dogecloud implements DogeCloud certificate upload and CDN deployment.","isRedistributable":true}
