mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-03 06:23:54 +08:00
style: format code
This commit is contained in:
@@ -17,12 +17,12 @@ func init() {
|
||||
}
|
||||
|
||||
provider, err := dplyimpl.NewDeployer(&dplyimpl.DeployerConfig{
|
||||
AccessKeyId: credentials.AccessKeyId,
|
||||
SecretAccessKey: credentials.SecretAccessKey,
|
||||
ZoneId: xmaps.GetString(options.ProviderExtendedConfig, "zoneId"),
|
||||
DeployTarget: xmaps.GetString(options.ProviderExtendedConfig, "deployTarget"),
|
||||
LoadbalancerId: xmaps.GetString(options.ProviderExtendedConfig, "loadbalancerId"),
|
||||
ListenerId: xmaps.GetString(options.ProviderExtendedConfig, "listenerId"),
|
||||
AccessKeyId: credentials.AccessKeyId,
|
||||
SecretAccessKey: credentials.SecretAccessKey,
|
||||
ZoneId: xmaps.GetString(options.ProviderExtendedConfig, "zoneId"),
|
||||
DeployTarget: xmaps.GetString(options.ProviderExtendedConfig, "deployTarget"),
|
||||
LoadbalancerId: xmaps.GetString(options.ProviderExtendedConfig, "loadbalancerId"),
|
||||
ListenerId: xmaps.GetString(options.ProviderExtendedConfig, "listenerId"),
|
||||
})
|
||||
return provider, err
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package internal
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
linodesdk "github.com/certimate-go/certimate/pkg/sdk3rd/linode"
|
||||
)
|
||||
|
||||
// Environment variables names.
|
||||
const (
|
||||
envNamespace = "LINODE_"
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ type Certificate struct {
|
||||
KeyAlt *string `json:"key_alt,omitempty"`
|
||||
SNIs []*string `json:"snis,omitempty"`
|
||||
Tags []*string `json:"tags,omitempty"`
|
||||
CreatedAt *int64 `json:"created_at,omitempty"`
|
||||
UpdatedAt *int64 `json:"updated_at,omitempty"`
|
||||
CreatedAt *int64 `json:"created_at,omitempty"`
|
||||
UpdatedAt *int64 `json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// An extension SDK client for Qiniu.
|
||||
// An extension SDK client for Qiniu.
|
||||
// Based on github.com/qiniu/go-sdk.
|
||||
package qiniu
|
||||
package qiniu
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
package vercel
|
||||
|
||||
type sdkResponse interface {
|
||||
GetError() *sdkError
|
||||
GetError() *sdkAPIError
|
||||
}
|
||||
|
||||
type sdkResponseBase struct {
|
||||
Error *sdkError `json:"error,omitempty"`
|
||||
Error *sdkAPIError `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
type sdkError struct {
|
||||
type sdkAPIError struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
MissingToken bool `json:"missingToken,omitempty"`
|
||||
}
|
||||
|
||||
func (r *sdkResponseBase) GetError() *sdkError {
|
||||
func (r *sdkResponseBase) GetError() *sdkAPIError {
|
||||
return r.Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user