jdcloud

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: 13 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

Overview

Package jdcloud implements JD Cloud certificate-center upload and CDN deployment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider 保存京东云访问密钥和官方 SDK 客户端。

func New

func New(accessKey, secretKey string) *Provider

New 创建使用京东云生产 HTTPS Endpoint 的 provider。

func (*Provider) DeployCertificate

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

DeployCertificate 上传或复用证书,绑定精确 CDN 域名并等待配置任务完成后回读。

func (*Provider) DiscoverResources

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

DiscoverResources 分页读取京东云 CDN 域名并构建生命周期稳定的目标引用。

func (*Provider) ResolveResource

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

ResolveResource 重新读取 CDN 目录并按 targetRef 唯一解析京东云域名。

func (*Provider) TestConnection

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

TestConnection 验证京东云凭据可以读取 CDN 域名目录。

func (*Provider) TestResource

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

TestResource 确认京东云 CDN 域名仍存在且处于 online 状态。

func (*Provider) UploadCertificate

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

UploadCertificate 上传或复用京东云 SSL 证书,并通过详情接口回读验收。

Jump to

Keyboard shortcuts

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