mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 09:21:56 +08:00
style: format code
This commit is contained in:
parent
f7a7c7f11c
commit
801050d3ff
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/core"
|
"github.com/pocketbase/pocketbase/core"
|
||||||
m "github.com/pocketbase/pocketbase/migrations"
|
m "github.com/pocketbase/pocketbase/migrations"
|
||||||
|
|
||||||
xcert "github.com/certimate-go/certimate/pkg/utils/cert"
|
xcert "github.com/certimate-go/certimate/pkg/utils/cert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package migrations
|
package migrations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -6,10 +6,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
|
"github.com/certimate-go/certimate/pkg/core"
|
||||||
jdcore "github.com/jdcloud-api/jdcloud-sdk-go/core"
|
jdcore "github.com/jdcloud-api/jdcloud-sdk-go/core"
|
||||||
jdliveapi "github.com/jdcloud-api/jdcloud-sdk-go/services/live/apis"
|
jdliveapi "github.com/jdcloud-api/jdcloud-sdk-go/services/live/apis"
|
||||||
jdliveclient "github.com/jdcloud-api/jdcloud-sdk-go/services/live/client"
|
jdliveclient "github.com/jdcloud-api/jdcloud-sdk-go/services/live/client"
|
||||||
"github.com/certimate-go/certimate/pkg/core"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SSLDeployerProviderConfig struct {
|
type SSLDeployerProviderConfig struct {
|
||||||
|
@ -8,10 +8,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/certimate-go/certimate/pkg/core"
|
||||||
jdcore "github.com/jdcloud-api/jdcloud-sdk-go/core"
|
jdcore "github.com/jdcloud-api/jdcloud-sdk-go/core"
|
||||||
jdvodapi "github.com/jdcloud-api/jdcloud-sdk-go/services/vod/apis"
|
jdvodapi "github.com/jdcloud-api/jdcloud-sdk-go/services/vod/apis"
|
||||||
jdvodclient "github.com/jdcloud-api/jdcloud-sdk-go/services/vod/client"
|
jdvodclient "github.com/jdcloud-api/jdcloud-sdk-go/services/vod/client"
|
||||||
"github.com/certimate-go/certimate/pkg/core"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SSLDeployerProviderConfig struct {
|
type SSLDeployerProviderConfig struct {
|
||||||
|
@ -6,10 +6,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
|
"github.com/certimate-go/certimate/pkg/core"
|
||||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
|
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
|
||||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
||||||
tcssl "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssl/v20191205"
|
tcssl "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssl/v20191205"
|
||||||
"github.com/certimate-go/certimate/pkg/core"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type SSLManagerProviderConfig struct {
|
type SSLManagerProviderConfig struct {
|
||||||
@ -65,10 +65,8 @@ func (m *SSLManagerProvider) Upload(ctx context.Context, certPEM string, privkey
|
|||||||
return nil, fmt.Errorf("failed to execute sdk request 'ssl.UploadCertificate': %w", err)
|
return nil, fmt.Errorf("failed to execute sdk request 'ssl.UploadCertificate': %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
certId := *uploadCertificateResp.Response.CertificateId
|
|
||||||
return &core.SSLManageUploadResult{
|
return &core.SSLManageUploadResult{
|
||||||
CertId: certId,
|
CertId: *uploadCertificateResp.Response.CertificateId,
|
||||||
CertName: "",
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-acme/lego/v4/challenge"
|
"github.com/go-acme/lego/v4/challenge"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://accessone-global.ctapi.ctyun.cn"
|
const endpoint = "https://accessone-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://ctcdn-global.ctapi.ctyun.cn"
|
const endpoint = "https://ctcdn-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://ccms-global.ctapi.ctyun.cn"
|
const endpoint = "https://ccms-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://smartdns-global.ctapi.ctyun.cn"
|
const endpoint = "https://smartdns-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://ctelb-global.ctapi.ctyun.cn"
|
const endpoint = "https://ctelb-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://icdn-global.ctapi.ctyun.cn"
|
const endpoint = "https://icdn-global.ctapi.ctyun.cn"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-resty/resty/v2"
|
|
||||||
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
"github.com/certimate-go/certimate/pkg/sdk3rd/ctyun/openapi"
|
||||||
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
const endpoint = "https://ctlvdn-global.ctapi.ctyun.cn"
|
const endpoint = "https://ctlvdn-global.ctapi.ctyun.cn"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package http
|
package http
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package http
|
package http
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user