mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-19 01:41:55 +08:00
Merge pull request #220 from usual2970/feat/update_gomod
update package name
This commit is contained in:
commit
f53e54c8de
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module certimate
|
module github.com/usual2970/certimate
|
||||||
|
|
||||||
go 1.22.0
|
go 1.22.0
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-acme/lego/v4/providers/dns/alidns"
|
"github.com/go-acme/lego/v4/providers/dns/alidns"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type aliyun struct {
|
type aliyun struct {
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
|
|
||||||
"github.com/go-acme/lego/v4/certcrypto"
|
"github.com/go-acme/lego/v4/certcrypto"
|
||||||
"github.com/go-acme/lego/v4/certificate"
|
"github.com/go-acme/lego/v4/certificate"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-acme/lego/v4/providers/dns/route53"
|
"github.com/go-acme/lego/v4/providers/dns/route53"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type aws struct {
|
type aws struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
cf "github.com/go-acme/lego/v4/providers/dns/cloudflare"
|
cf "github.com/go-acme/lego/v4/providers/dns/cloudflare"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type cloudflare struct {
|
type cloudflare struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
godaddyProvider "github.com/go-acme/lego/v4/providers/dns/godaddy"
|
godaddyProvider "github.com/go-acme/lego/v4/providers/dns/godaddy"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type godaddy struct {
|
type godaddy struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-acme/lego/v4/providers/dns/httpreq"
|
"github.com/go-acme/lego/v4/providers/dns/httpreq"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type httpReq struct {
|
type httpReq struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
huaweicloudProvider "github.com/go-acme/lego/v4/providers/dns/huaweicloud"
|
huaweicloudProvider "github.com/go-acme/lego/v4/providers/dns/huaweicloud"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type huaweicloud struct {
|
type huaweicloud struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
namesiloProvider "github.com/go-acme/lego/v4/providers/dns/namesilo"
|
namesiloProvider "github.com/go-acme/lego/v4/providers/dns/namesilo"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type namesilo struct {
|
type namesilo struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-acme/lego/v4/providers/dns/pdns"
|
"github.com/go-acme/lego/v4/providers/dns/pdns"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type powerdns struct {
|
type powerdns struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/go-acme/lego/v4/providers/dns/tencentcloud"
|
"github.com/go-acme/lego/v4/providers/dns/tencentcloud"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tencent struct {
|
type tencent struct {
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
util "github.com/alibabacloud-go/tea-utils/v2/service"
|
util "github.com/alibabacloud-go/tea-utils/v2/service"
|
||||||
"github.com/alibabacloud-go/tea/tea"
|
"github.com/alibabacloud-go/tea/tea"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/rand"
|
"github.com/usual2970/certimate/internal/utils/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AliyunCDNDeployer struct {
|
type AliyunCDNDeployer struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: Bin
|
* @Author: Bin
|
||||||
* @Date: 2024-09-17
|
* @Date: 2024-09-17
|
||||||
* @FilePath: /certimate/internal/deployer/aliyun_esa.go
|
* @FilePath: /github.com/usual2970/certimate/internal/deployer/aliyun_esa.go
|
||||||
*/
|
*/
|
||||||
package deployer
|
package deployer
|
||||||
|
|
||||||
@ -15,8 +15,8 @@ import (
|
|||||||
util "github.com/alibabacloud-go/tea-utils/v2/service"
|
util "github.com/alibabacloud-go/tea-utils/v2/service"
|
||||||
"github.com/alibabacloud-go/tea/tea"
|
"github.com/alibabacloud-go/tea/tea"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/rand"
|
"github.com/usual2970/certimate/internal/utils/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AliyunESADeployer struct {
|
type AliyunESADeployer struct {
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AliyunOSSDeployer struct {
|
type AliyunOSSDeployer struct {
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/models"
|
"github.com/pocketbase/pocketbase/models"
|
||||||
|
|
||||||
"certimate/internal/applicant"
|
"github.com/usual2970/certimate/internal/applicant"
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
cdnModel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdn/v2/model"
|
cdnModel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdn/v2/model"
|
||||||
cdnRegion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdn/v2/region"
|
cdnRegion "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdn/v2/region"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/rand"
|
"github.com/usual2970/certimate/internal/utils/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HuaweiCloudCDNDeployer struct {
|
type HuaweiCloudCDNDeployer struct {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"k8s.io/client-go/kubernetes"
|
"k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/tools/clientcmd"
|
"k8s.io/client-go/tools/clientcmd"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type K8sSecretDeployer struct {
|
type K8sSecretDeployer struct {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type LocalDeployer struct {
|
type LocalDeployer struct {
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
|
|
||||||
"github.com/qiniu/go-sdk/v7/auth"
|
"github.com/qiniu/go-sdk/v7/auth"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
xhttp "certimate/internal/utils/http"
|
xhttp "github.com/usual2970/certimate/internal/utils/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
const qiniuGateway = "http://api.qiniu.com"
|
const qiniuGateway = "http://api.qiniu.com"
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/qiniu/go-sdk/v7/auth"
|
"github.com/qiniu/go-sdk/v7/auth"
|
||||||
|
|
||||||
"certimate/internal/applicant"
|
"github.com/usual2970/certimate/internal/applicant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_qiuniu_uploadCert(t *testing.T) {
|
func Test_qiuniu_uploadCert(t *testing.T) {
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/pkg/sftp"
|
"github.com/pkg/sftp"
|
||||||
sshPkg "golang.org/x/crypto/ssh"
|
sshPkg "golang.org/x/crypto/ssh"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SSHDeployer struct {
|
type SSHDeployer struct {
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
||||||
ssl "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssl/v20191205"
|
ssl "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssl/v20191205"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/rand"
|
"github.com/usual2970/certimate/internal/utils/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TencentCDNDeployer struct {
|
type TencentCDNDeployer struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
xhttp "certimate/internal/utils/http"
|
xhttp "github.com/usual2970/certimate/internal/utils/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebhookDeployer struct {
|
type WebhookDeployer struct {
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/models"
|
"github.com/pocketbase/pocketbase/models"
|
||||||
|
|
||||||
"certimate/internal/applicant"
|
"github.com/usual2970/certimate/internal/applicant"
|
||||||
"certimate/internal/deployer"
|
"github.com/usual2970/certimate/internal/deployer"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Phase string
|
type Phase string
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/models"
|
"github.com/pocketbase/pocketbase/models"
|
||||||
|
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
func create(ctx context.Context, record *models.Record) error {
|
func create(ctx context.Context, record *models.Record) error {
|
||||||
|
@ -3,7 +3,7 @@ package domains
|
|||||||
import (
|
import (
|
||||||
"github.com/pocketbase/pocketbase/core"
|
"github.com/pocketbase/pocketbase/core"
|
||||||
|
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
const tableName = "domains"
|
const tableName = "domains"
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
|
|
||||||
"github.com/pocketbase/pocketbase/models"
|
"github.com/pocketbase/pocketbase/models"
|
||||||
|
|
||||||
"certimate/internal/applicant"
|
"github.com/usual2970/certimate/internal/applicant"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
"certimate/internal/utils/xtime"
|
"github.com/usual2970/certimate/internal/utils/xtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
type historyItem struct {
|
type historyItem struct {
|
||||||
|
@ -3,8 +3,8 @@ package domains
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"certimate/internal/notify"
|
"github.com/usual2970/certimate/internal/notify"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitSchedule() {
|
func InitSchedule() {
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"github.com/pocketbase/dbx"
|
"github.com/pocketbase/dbx"
|
||||||
"github.com/pocketbase/pocketbase/models"
|
"github.com/pocketbase/pocketbase/models"
|
||||||
|
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
"certimate/internal/utils/xtime"
|
"github.com/usual2970/certimate/internal/utils/xtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
type msg struct {
|
type msg struct {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
|
|
||||||
notifyPackage "github.com/nikoksr/notify"
|
notifyPackage "github.com/nikoksr/notify"
|
||||||
"github.com/nikoksr/notify/service/dingding"
|
"github.com/nikoksr/notify/service/dingding"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -3,8 +3,8 @@ package repository
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SettingRepository struct{}
|
type SettingRepository struct{}
|
||||||
|
@ -3,8 +3,8 @@ package rest
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
"certimate/internal/utils/resp"
|
"github.com/usual2970/certimate/internal/utils/resp"
|
||||||
|
|
||||||
"github.com/labstack/echo/v5"
|
"github.com/labstack/echo/v5"
|
||||||
)
|
)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"certimate/internal/notify"
|
"github.com/usual2970/certimate/internal/notify"
|
||||||
"certimate/internal/repository"
|
"github.com/usual2970/certimate/internal/repository"
|
||||||
"certimate/internal/rest"
|
"github.com/usual2970/certimate/internal/rest"
|
||||||
|
|
||||||
"github.com/labstack/echo/v5"
|
"github.com/labstack/echo/v5"
|
||||||
"github.com/pocketbase/pocketbase/apis"
|
"github.com/pocketbase/pocketbase/apis"
|
||||||
|
@ -3,7 +3,7 @@ package resp
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"certimate/internal/domain"
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
|
|
||||||
"github.com/labstack/echo/v5"
|
"github.com/labstack/echo/v5"
|
||||||
)
|
)
|
||||||
|
11
main.go
11
main.go
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/usual2970/certimate/ui"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
@ -10,11 +11,11 @@ import (
|
|||||||
"github.com/pocketbase/pocketbase/core"
|
"github.com/pocketbase/pocketbase/core"
|
||||||
"github.com/pocketbase/pocketbase/plugins/migratecmd"
|
"github.com/pocketbase/pocketbase/plugins/migratecmd"
|
||||||
|
|
||||||
"certimate/internal/domains"
|
_ "github.com/usual2970/certimate/migrations"
|
||||||
"certimate/internal/routes"
|
|
||||||
"certimate/internal/utils/app"
|
"github.com/usual2970/certimate/internal/domains"
|
||||||
_ "certimate/migrations"
|
"github.com/usual2970/certimate/internal/routes"
|
||||||
"certimate/ui"
|
"github.com/usual2970/certimate/internal/utils/app"
|
||||||
|
|
||||||
_ "time/tzdata"
|
_ "time/tzdata"
|
||||||
)
|
)
|
||||||
|
@ -326,7 +326,7 @@ const DeployEditDialog = ({ trigger, deployConfig, onSave }: DeployEditDialogPro
|
|||||||
<DialogTrigger>{trigger}</DialogTrigger>
|
<DialogTrigger>{trigger}</DialogTrigger>
|
||||||
<DialogContent className="dark:text-stone-200">
|
<DialogContent className="dark:text-stone-200">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>{t("history.page.title")}</DialogTitle>
|
<DialogTitle>{t("domain.deployment.tab")}</DialogTitle>
|
||||||
<DialogDescription></DialogDescription>
|
<DialogDescription></DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
@ -889,3 +889,4 @@ const DeployToKubernetes = () => {
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user