mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 17:31:55 +08:00
update package name
This commit is contained in:
parent
b9902c926f
commit
17cfeee374
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 {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package applicant
|
package applicant
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"certimate/internal/domain"
|
|
||||||
"certimate/internal/utils/app"
|
|
||||||
"crypto"
|
"crypto"
|
||||||
"crypto/ecdsa"
|
"crypto/ecdsa"
|
||||||
"crypto/elliptic"
|
"crypto/elliptic"
|
||||||
@ -11,6 +9,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/usual2970/certimate/internal/domain"
|
||||||
|
"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"
|
||||||
"github.com/go-acme/lego/v4/challenge"
|
"github.com/go-acme/lego/v4/challenge"
|
||||||
|
@ -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 (
|
|||||||
|
|
||||||
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/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 (
|
|||||||
|
|
||||||
"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) {
|
||||||
|
@ -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,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
xhttp "certimate/internal/utils/http"
|
xhttp "github.com/usual2970/certimate/internal/utils/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WebhookAccess struct {
|
type WebhookAccess 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"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user