Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployerConfig ¶
type DeployerConfig struct { // 优刻得 API 私钥。 PrivateKey string `json:"privateKey"` // 优刻得 API 公钥。 PublicKey string `json:"publicKey"` // 优刻得项目 ID。 ProjectId string `json:"projectId,omitempty"` // 优刻得地域。 Region string `json:"region"` // 存储桶名。 Bucket string `json:"bucket"` // 自定义域名(不支持泛域名)。 Domain string `json:"domain"` }
type DeployerProvider ¶
type DeployerProvider struct {
// contains filtered or unexported fields
}
func NewDeployer ¶
func NewDeployer(config *DeployerConfig) (*DeployerProvider, error)
func (*DeployerProvider) Deploy ¶
func (d *DeployerProvider) Deploy(ctx context.Context, certPem string, privkeyPem string) (*deployer.DeployResult, error)
func (*DeployerProvider) WithLogger ¶
func (d *DeployerProvider) WithLogger(logger logger.Logger) *DeployerProvider
Click to show internal directories.
Click to hide internal directories.