mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 01:57:19 +08:00
refactor: rename module
This commit is contained in:
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
@@ -76,13 +76,13 @@ jobs:
|
||||
GOARCH: ${{ matrix.goarch }}
|
||||
run: |
|
||||
LDFLAGS="-s -w --extldflags '-static'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.Version=${VERSION}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.BuildTime=${BUILD_TIME}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.CommitHash=${COMMIT_HASH}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.GoVersion=${GO_VERSION}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.BuildID=${BUILD_ID}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.BuildUser=${BUILD_USER}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/tnborg/panel/internal/app.BuildHost=${BUILD_HOST}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.Version=${VERSION}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.BuildTime=${BUILD_TIME}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.CommitHash=${COMMIT_HASH}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.GoVersion=${GO_VERSION}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.BuildID=${BUILD_ID}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.BuildUser=${BUILD_USER}'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/acepanel/panel/internal/app.BuildHost=${BUILD_HOST}'"
|
||||
go build -ldflags "${LDFLAGS}" -o ace-${{ matrix.goarch }} ./cmd/ace
|
||||
go build -ldflags "${LDFLAGS}" -o cli-${{ matrix.goarch }} ./cmd/cli
|
||||
- name: Compress ${{ matrix.goarch }}
|
||||
|
||||
@@ -14,13 +14,13 @@ builds:
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w --extldflags "-static"
|
||||
- -X 'github.com/tnborg/panel/internal/app.Version={{ .Version }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildTime={{ .Now.Format "2006-01-02 15:04:05 MST" }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.CommitHash={{ .ShortCommit }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.GoVersion={{ .Env.GOVERSION }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildID={{ .Env.GITHUB_RUN_ID }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildUser={{ .Env.USER }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildHost={{ .Env.HOSTNAME }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.Version={{ .Version }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildTime={{ .Now.Format "2006-01-02 15:04:05 MST" }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.CommitHash={{ .ShortCommit }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.GoVersion={{ .Env.GOVERSION }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildID={{ .Env.GITHUB_RUN_ID }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildUser={{ .Env.USER }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildHost={{ .Env.HOSTNAME }}'
|
||||
- id: cli
|
||||
main: ./cmd/cli
|
||||
binary: cli
|
||||
@@ -33,13 +33,13 @@ builds:
|
||||
- arm64
|
||||
ldflags:
|
||||
- -s -w --extldflags "-static"
|
||||
- -X 'github.com/tnborg/panel/internal/app.Version={{ .Version }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildTime={{ .Now.Format "2006-01-02 15:04:05 MST" }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.CommitHash={{ .ShortCommit }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.GoVersion={{ .Env.GOVERSION }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildID={{ .Env.GITHUB_RUN_ID }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildUser={{ .Env.USER }}'
|
||||
- -X 'github.com/tnborg/panel/internal/app.BuildHost={{ .Env.HOSTNAME }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.Version={{ .Version }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildTime={{ .Now.Format "2006-01-02 15:04:05 MST" }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.CommitHash={{ .ShortCommit }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.GoVersion={{ .Env.GOVERSION }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildID={{ .Env.GITHUB_RUN_ID }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildUser={{ .Env.USER }}'
|
||||
- -X 'github.com/acepanel/panel/internal/app.BuildHost={{ .Env.HOSTNAME }}'
|
||||
|
||||
upx:
|
||||
- enabled: true
|
||||
|
||||
@@ -6,6 +6,6 @@ outpkg: "{{.PackageName}}"
|
||||
filename: "{{.InterfaceName}}.go"
|
||||
all: True
|
||||
packages:
|
||||
github.com/tnborg/panel/internal/biz:
|
||||
github.com/acepanel/panel/internal/biz:
|
||||
config:
|
||||
recursive: True
|
||||
|
||||
22
README.md
22
README.md
@@ -14,12 +14,12 @@
|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://go.dev/)
|
||||
[](https://github.com/tnborg/panel/releases)
|
||||
[](https://github.com/tnborg/panel/actions)
|
||||
[](https://goreportcard.com/report/github.com/tnborg/panel)
|
||||
[](https://github.com/tnborg/panel)
|
||||
[](https://opensource.org/license/bsd-3-clause)
|
||||
[](https://go.dev/)
|
||||
[](https://github.com/acepanel/panel/releases)
|
||||
[](https://github.com/acepanel/panel/actions)
|
||||
[](https://goreportcard.com/report/github.com/acepanel/panel)
|
||||
[](https://github.com/acepanel/panel)
|
||||
[](https://opensource.org/license/bsd-3-clause)
|
||||
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@ curl -sSLOm 10 https://dl.cdn.haozi.net/panel/install.sh && bash install.sh
|
||||
|
||||
## 合作伙伴
|
||||
|
||||
如果 AcePanel 对您有帮助,欢迎[赞助我们](https://github.com/tnborg/panel/issues/90),同时感谢以下支持者/赞助商的支持:
|
||||
如果 AcePanel 对您有帮助,欢迎[赞助我们](https://github.com/acepanel/panel/issues/90),同时感谢以下支持者/赞助商的支持:
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.weixiaoduo.com/">
|
||||
@@ -76,10 +76,10 @@ curl -sSLOm 10 https://dl.cdn.haozi.net/panel/install.sh && bash install.sh
|
||||
|
||||
## Star 历史
|
||||
|
||||
<a href="https://star-history.com/#tnborg/panel&Date">
|
||||
<a href="https://star-history.com/#acepanel/panel&Date">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=tnborg/panel&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=tnborg/panel&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=tnborg/panel&type=Date" />
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=acepanel/panel&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=acepanel/panel&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=acepanel/panel&type=Date" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
22
README_EN.md
22
README_EN.md
@@ -14,12 +14,12 @@ Website: [acepanel.net](https://acepanel.net) | QQ group: [12370907](https://jq.
|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://go.dev/)
|
||||
[](https://github.com/tnborg/panel/releases)
|
||||
[](https://github.com/tnborg/panel/actions)
|
||||
[](https://goreportcard.com/report/github.com/tnborg/panel)
|
||||
[](https://github.com/tnborg/panel)
|
||||
[](https://opensource.org/license/bsd-3-clause)
|
||||
[](https://go.dev/)
|
||||
[](https://github.com/acepanel/panel/releases)
|
||||
[](https://github.com/acepanel/panel/actions)
|
||||
[](https://goreportcard.com/report/github.com/acepanel/panel)
|
||||
[](https://github.com/acepanel/panel)
|
||||
[](https://opensource.org/license/bsd-3-clause)
|
||||
|
||||
</div>
|
||||
|
||||
@@ -48,7 +48,7 @@ curl -sSLOm 10 https://dl.cdn.haozi.net/panel/install.sh && bash install.sh
|
||||
|
||||
## Partners
|
||||
|
||||
If the AcePanel is helpful to you, welcome to [sponsor us](https://github.com/tnborg/panel/issues/90), also thanks to the following supporters/sponsors:
|
||||
If the AcePanel is helpful to you, welcome to [sponsor us](https://github.com/acepanel/panel/issues/90), also thanks to the following supporters/sponsors:
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.weixiaoduo.com/">
|
||||
@@ -76,10 +76,10 @@ If the AcePanel is helpful to you, welcome to [sponsor us](https://github.com/tn
|
||||
|
||||
## Star History
|
||||
|
||||
<a href="https://star-history.com/#tnborg/panel&Date">
|
||||
<a href="https://star-history.com/#acepanel/panel&Date">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=tnborg/panel&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=tnborg/panel&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=tnborg/panel&type=Date" />
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=acepanel/panel&type=Date&theme=dark" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=acepanel/panel&type=Date" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=acepanel/panel&type=Date" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
If you find any security issues while using the panel, please do not submit an Issue. You can contact us directly through the following methods:
|
||||
|
||||
- (Recommend) [GitHub Security Advisories](https://github.com/tnborg/panel/security/advisories/new)
|
||||
- (Recommend) [GitHub Security Advisories](https://github.com/acepanel/panel/security/advisories/new)
|
||||
- Email: [admin@haozi.net](mailto:admin@haozi.net)
|
||||
- Telegram: @devhaozi
|
||||
|
||||
@@ -21,7 +21,7 @@ To some security beginners: Any operation performed through an already logged-in
|
||||
|
||||
如果您在面板中发现任何安全问题,请勿提交 Issue,可通过以下方式直接联系我们:
|
||||
|
||||
- (推荐)[GitHub 安全公告](https://github.com/tnborg/panel/security/advisories/new)
|
||||
- (推荐)[GitHub 安全公告](https://github.com/acepanel/panel/security/advisories/new)
|
||||
- 邮箱:[admin@haozi.net](mailto:admin@haozi.net)
|
||||
- QQ:826896000
|
||||
|
||||
|
||||
@@ -5,14 +5,14 @@ package main
|
||||
import (
|
||||
"github.com/google/wire"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/apps"
|
||||
"github.com/tnborg/panel/internal/bootstrap"
|
||||
"github.com/tnborg/panel/internal/data"
|
||||
"github.com/tnborg/panel/internal/http/middleware"
|
||||
"github.com/tnborg/panel/internal/job"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/apps"
|
||||
"github.com/acepanel/panel/internal/bootstrap"
|
||||
"github.com/acepanel/panel/internal/data"
|
||||
"github.com/acepanel/panel/internal/http/middleware"
|
||||
"github.com/acepanel/panel/internal/job"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
)
|
||||
|
||||
// initWeb init application.
|
||||
|
||||
@@ -7,36 +7,36 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/apps/codeserver"
|
||||
"github.com/tnborg/panel/internal/apps/docker"
|
||||
"github.com/tnborg/panel/internal/apps/fail2ban"
|
||||
"github.com/tnborg/panel/internal/apps/frp"
|
||||
"github.com/tnborg/panel/internal/apps/gitea"
|
||||
"github.com/tnborg/panel/internal/apps/memcached"
|
||||
"github.com/tnborg/panel/internal/apps/minio"
|
||||
"github.com/tnborg/panel/internal/apps/mysql"
|
||||
"github.com/tnborg/panel/internal/apps/nginx"
|
||||
"github.com/tnborg/panel/internal/apps/php74"
|
||||
"github.com/tnborg/panel/internal/apps/php80"
|
||||
"github.com/tnborg/panel/internal/apps/php81"
|
||||
"github.com/tnborg/panel/internal/apps/php82"
|
||||
"github.com/tnborg/panel/internal/apps/php83"
|
||||
"github.com/tnborg/panel/internal/apps/php84"
|
||||
"github.com/tnborg/panel/internal/apps/phpmyadmin"
|
||||
"github.com/tnborg/panel/internal/apps/podman"
|
||||
"github.com/tnborg/panel/internal/apps/postgresql"
|
||||
"github.com/tnborg/panel/internal/apps/pureftpd"
|
||||
"github.com/tnborg/panel/internal/apps/redis"
|
||||
"github.com/tnborg/panel/internal/apps/rsync"
|
||||
"github.com/tnborg/panel/internal/apps/s3fs"
|
||||
"github.com/tnborg/panel/internal/apps/supervisor"
|
||||
"github.com/tnborg/panel/internal/bootstrap"
|
||||
"github.com/tnborg/panel/internal/data"
|
||||
"github.com/tnborg/panel/internal/http/middleware"
|
||||
"github.com/tnborg/panel/internal/job"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/apps/codeserver"
|
||||
"github.com/acepanel/panel/internal/apps/docker"
|
||||
"github.com/acepanel/panel/internal/apps/fail2ban"
|
||||
"github.com/acepanel/panel/internal/apps/frp"
|
||||
"github.com/acepanel/panel/internal/apps/gitea"
|
||||
"github.com/acepanel/panel/internal/apps/memcached"
|
||||
"github.com/acepanel/panel/internal/apps/minio"
|
||||
"github.com/acepanel/panel/internal/apps/mysql"
|
||||
"github.com/acepanel/panel/internal/apps/nginx"
|
||||
"github.com/acepanel/panel/internal/apps/php74"
|
||||
"github.com/acepanel/panel/internal/apps/php80"
|
||||
"github.com/acepanel/panel/internal/apps/php81"
|
||||
"github.com/acepanel/panel/internal/apps/php82"
|
||||
"github.com/acepanel/panel/internal/apps/php83"
|
||||
"github.com/acepanel/panel/internal/apps/php84"
|
||||
"github.com/acepanel/panel/internal/apps/phpmyadmin"
|
||||
"github.com/acepanel/panel/internal/apps/podman"
|
||||
"github.com/acepanel/panel/internal/apps/postgresql"
|
||||
"github.com/acepanel/panel/internal/apps/pureftpd"
|
||||
"github.com/acepanel/panel/internal/apps/redis"
|
||||
"github.com/acepanel/panel/internal/apps/rsync"
|
||||
"github.com/acepanel/panel/internal/apps/s3fs"
|
||||
"github.com/acepanel/panel/internal/apps/supervisor"
|
||||
"github.com/acepanel/panel/internal/bootstrap"
|
||||
"github.com/acepanel/panel/internal/data"
|
||||
"github.com/acepanel/panel/internal/http/middleware"
|
||||
"github.com/acepanel/panel/internal/job"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
)
|
||||
|
||||
import (
|
||||
|
||||
@@ -5,12 +5,12 @@ package main
|
||||
import (
|
||||
"github.com/google/wire"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/apps"
|
||||
"github.com/tnborg/panel/internal/bootstrap"
|
||||
"github.com/tnborg/panel/internal/data"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/apps"
|
||||
"github.com/acepanel/panel/internal/bootstrap"
|
||||
"github.com/acepanel/panel/internal/data"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
)
|
||||
|
||||
// initCli init command line.
|
||||
|
||||
@@ -7,34 +7,34 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/apps/codeserver"
|
||||
"github.com/tnborg/panel/internal/apps/docker"
|
||||
"github.com/tnborg/panel/internal/apps/fail2ban"
|
||||
"github.com/tnborg/panel/internal/apps/frp"
|
||||
"github.com/tnborg/panel/internal/apps/gitea"
|
||||
"github.com/tnborg/panel/internal/apps/memcached"
|
||||
"github.com/tnborg/panel/internal/apps/minio"
|
||||
"github.com/tnborg/panel/internal/apps/mysql"
|
||||
"github.com/tnborg/panel/internal/apps/nginx"
|
||||
"github.com/tnborg/panel/internal/apps/php74"
|
||||
"github.com/tnborg/panel/internal/apps/php80"
|
||||
"github.com/tnborg/panel/internal/apps/php81"
|
||||
"github.com/tnborg/panel/internal/apps/php82"
|
||||
"github.com/tnborg/panel/internal/apps/php83"
|
||||
"github.com/tnborg/panel/internal/apps/php84"
|
||||
"github.com/tnborg/panel/internal/apps/phpmyadmin"
|
||||
"github.com/tnborg/panel/internal/apps/podman"
|
||||
"github.com/tnborg/panel/internal/apps/postgresql"
|
||||
"github.com/tnborg/panel/internal/apps/pureftpd"
|
||||
"github.com/tnborg/panel/internal/apps/redis"
|
||||
"github.com/tnborg/panel/internal/apps/rsync"
|
||||
"github.com/tnborg/panel/internal/apps/s3fs"
|
||||
"github.com/tnborg/panel/internal/apps/supervisor"
|
||||
"github.com/tnborg/panel/internal/bootstrap"
|
||||
"github.com/tnborg/panel/internal/data"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/apps/codeserver"
|
||||
"github.com/acepanel/panel/internal/apps/docker"
|
||||
"github.com/acepanel/panel/internal/apps/fail2ban"
|
||||
"github.com/acepanel/panel/internal/apps/frp"
|
||||
"github.com/acepanel/panel/internal/apps/gitea"
|
||||
"github.com/acepanel/panel/internal/apps/memcached"
|
||||
"github.com/acepanel/panel/internal/apps/minio"
|
||||
"github.com/acepanel/panel/internal/apps/mysql"
|
||||
"github.com/acepanel/panel/internal/apps/nginx"
|
||||
"github.com/acepanel/panel/internal/apps/php74"
|
||||
"github.com/acepanel/panel/internal/apps/php80"
|
||||
"github.com/acepanel/panel/internal/apps/php81"
|
||||
"github.com/acepanel/panel/internal/apps/php82"
|
||||
"github.com/acepanel/panel/internal/apps/php83"
|
||||
"github.com/acepanel/panel/internal/apps/php84"
|
||||
"github.com/acepanel/panel/internal/apps/phpmyadmin"
|
||||
"github.com/acepanel/panel/internal/apps/podman"
|
||||
"github.com/acepanel/panel/internal/apps/postgresql"
|
||||
"github.com/acepanel/panel/internal/apps/pureftpd"
|
||||
"github.com/acepanel/panel/internal/apps/redis"
|
||||
"github.com/acepanel/panel/internal/apps/rsync"
|
||||
"github.com/acepanel/panel/internal/apps/s3fs"
|
||||
"github.com/acepanel/panel/internal/apps/supervisor"
|
||||
"github.com/acepanel/panel/internal/bootstrap"
|
||||
"github.com/acepanel/panel/internal/data"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
)
|
||||
|
||||
import (
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/tnborg/panel
|
||||
module github.com/acepanel/panel
|
||||
|
||||
go 1.25
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/gookit/color"
|
||||
"github.com/urfave/cli/v3"
|
||||
|
||||
"github.com/tnborg/panel/pkg/apploader"
|
||||
"github.com/acepanel/panel/pkg/apploader"
|
||||
)
|
||||
|
||||
type Cli struct {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/robfig/cron/v3"
|
||||
|
||||
"github.com/tnborg/panel/pkg/queue"
|
||||
"github.com/acepanel/panel/pkg/queue"
|
||||
)
|
||||
|
||||
type Web struct {
|
||||
|
||||
@@ -3,29 +3,29 @@ package apps
|
||||
import (
|
||||
"github.com/google/wire"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/codeserver"
|
||||
"github.com/tnborg/panel/internal/apps/docker"
|
||||
"github.com/tnborg/panel/internal/apps/fail2ban"
|
||||
"github.com/tnborg/panel/internal/apps/frp"
|
||||
"github.com/tnborg/panel/internal/apps/gitea"
|
||||
"github.com/tnborg/panel/internal/apps/memcached"
|
||||
"github.com/tnborg/panel/internal/apps/minio"
|
||||
"github.com/tnborg/panel/internal/apps/mysql"
|
||||
"github.com/tnborg/panel/internal/apps/nginx"
|
||||
"github.com/tnborg/panel/internal/apps/php74"
|
||||
"github.com/tnborg/panel/internal/apps/php80"
|
||||
"github.com/tnborg/panel/internal/apps/php81"
|
||||
"github.com/tnborg/panel/internal/apps/php82"
|
||||
"github.com/tnborg/panel/internal/apps/php83"
|
||||
"github.com/tnborg/panel/internal/apps/php84"
|
||||
"github.com/tnborg/panel/internal/apps/phpmyadmin"
|
||||
"github.com/tnborg/panel/internal/apps/podman"
|
||||
"github.com/tnborg/panel/internal/apps/postgresql"
|
||||
"github.com/tnborg/panel/internal/apps/pureftpd"
|
||||
"github.com/tnborg/panel/internal/apps/redis"
|
||||
"github.com/tnborg/panel/internal/apps/rsync"
|
||||
"github.com/tnborg/panel/internal/apps/s3fs"
|
||||
"github.com/tnborg/panel/internal/apps/supervisor"
|
||||
"github.com/acepanel/panel/internal/apps/codeserver"
|
||||
"github.com/acepanel/panel/internal/apps/docker"
|
||||
"github.com/acepanel/panel/internal/apps/fail2ban"
|
||||
"github.com/acepanel/panel/internal/apps/frp"
|
||||
"github.com/acepanel/panel/internal/apps/gitea"
|
||||
"github.com/acepanel/panel/internal/apps/memcached"
|
||||
"github.com/acepanel/panel/internal/apps/minio"
|
||||
"github.com/acepanel/panel/internal/apps/mysql"
|
||||
"github.com/acepanel/panel/internal/apps/nginx"
|
||||
"github.com/acepanel/panel/internal/apps/php74"
|
||||
"github.com/acepanel/panel/internal/apps/php80"
|
||||
"github.com/acepanel/panel/internal/apps/php81"
|
||||
"github.com/acepanel/panel/internal/apps/php82"
|
||||
"github.com/acepanel/panel/internal/apps/php83"
|
||||
"github.com/acepanel/panel/internal/apps/php84"
|
||||
"github.com/acepanel/panel/internal/apps/phpmyadmin"
|
||||
"github.com/acepanel/panel/internal/apps/podman"
|
||||
"github.com/acepanel/panel/internal/apps/postgresql"
|
||||
"github.com/acepanel/panel/internal/apps/pureftpd"
|
||||
"github.com/acepanel/panel/internal/apps/redis"
|
||||
"github.com/acepanel/panel/internal/apps/rsync"
|
||||
"github.com/acepanel/panel/internal/apps/s3fs"
|
||||
"github.com/acepanel/panel/internal/apps/supervisor"
|
||||
)
|
||||
|
||||
var ProviderSet = wire.NewSet(
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -12,11 +12,11 @@ import (
|
||||
"github.com/libtnb/utils/str"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -9,10 +9,10 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -10,15 +10,15 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/db"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/tools"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/db"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/tools"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -11,13 +11,13 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/tools"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/tools"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -13,12 +13,12 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/apps/php"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/apps/php"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -12,12 +12,12 @@ import (
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/firewall"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/firewall"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct{}
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/firewall"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/firewall"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -9,12 +9,12 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/libtnb/utils/str"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -9,11 +9,11 @@ import (
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/service"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/os"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/service"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/os"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/pkg/api"
|
||||
"github.com/acepanel/panel/pkg/api"
|
||||
)
|
||||
|
||||
type App struct {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package biz
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type BackupType string
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/acme"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/acme"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type Cert struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type CertAccount struct {
|
||||
|
||||
@@ -3,8 +3,8 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/acme"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/acme"
|
||||
)
|
||||
|
||||
type CertDNS struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type ContainerRepo interface {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package biz
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type ContainerComposeRepo interface {
|
||||
List() ([]types.ContainerCompose, error)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type ContainerImageRepo interface {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type ContainerNetworkRepo interface {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type ContainerVolumeRepo interface {
|
||||
|
||||
@@ -3,7 +3,7 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type Cron struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package biz
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type DatabaseType string
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"github.com/libtnb/utils/crypt"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type DatabaseServerStatus string
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"github.com/libtnb/utils/crypt"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type DatabaseUserStatus string
|
||||
|
||||
@@ -3,8 +3,8 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type Monitor struct {
|
||||
|
||||
@@ -3,7 +3,7 @@ package biz
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type SettingKey string
|
||||
|
||||
@@ -6,9 +6,9 @@ import (
|
||||
"github.com/libtnb/utils/crypt"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/ssh"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/ssh"
|
||||
)
|
||||
|
||||
type SSH struct {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/libtnb/utils/crypt"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
)
|
||||
|
||||
type UserToken struct {
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type Website struct {
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/internal/apps/codeserver"
|
||||
"github.com/tnborg/panel/internal/apps/docker"
|
||||
"github.com/tnborg/panel/internal/apps/fail2ban"
|
||||
"github.com/tnborg/panel/internal/apps/frp"
|
||||
"github.com/tnborg/panel/internal/apps/gitea"
|
||||
"github.com/tnborg/panel/internal/apps/memcached"
|
||||
"github.com/tnborg/panel/internal/apps/minio"
|
||||
"github.com/tnborg/panel/internal/apps/mysql"
|
||||
"github.com/tnborg/panel/internal/apps/nginx"
|
||||
"github.com/tnborg/panel/internal/apps/php74"
|
||||
"github.com/tnborg/panel/internal/apps/php80"
|
||||
"github.com/tnborg/panel/internal/apps/php81"
|
||||
"github.com/tnborg/panel/internal/apps/php82"
|
||||
"github.com/tnborg/panel/internal/apps/php83"
|
||||
"github.com/tnborg/panel/internal/apps/php84"
|
||||
"github.com/tnborg/panel/internal/apps/phpmyadmin"
|
||||
"github.com/tnborg/panel/internal/apps/podman"
|
||||
"github.com/tnborg/panel/internal/apps/postgresql"
|
||||
"github.com/tnborg/panel/internal/apps/pureftpd"
|
||||
"github.com/tnborg/panel/internal/apps/redis"
|
||||
"github.com/tnborg/panel/internal/apps/rsync"
|
||||
"github.com/tnborg/panel/internal/apps/s3fs"
|
||||
"github.com/tnborg/panel/internal/apps/supervisor"
|
||||
"github.com/tnborg/panel/pkg/apploader"
|
||||
"github.com/acepanel/panel/internal/apps/codeserver"
|
||||
"github.com/acepanel/panel/internal/apps/docker"
|
||||
"github.com/acepanel/panel/internal/apps/fail2ban"
|
||||
"github.com/acepanel/panel/internal/apps/frp"
|
||||
"github.com/acepanel/panel/internal/apps/gitea"
|
||||
"github.com/acepanel/panel/internal/apps/memcached"
|
||||
"github.com/acepanel/panel/internal/apps/minio"
|
||||
"github.com/acepanel/panel/internal/apps/mysql"
|
||||
"github.com/acepanel/panel/internal/apps/nginx"
|
||||
"github.com/acepanel/panel/internal/apps/php74"
|
||||
"github.com/acepanel/panel/internal/apps/php80"
|
||||
"github.com/acepanel/panel/internal/apps/php81"
|
||||
"github.com/acepanel/panel/internal/apps/php82"
|
||||
"github.com/acepanel/panel/internal/apps/php83"
|
||||
"github.com/acepanel/panel/internal/apps/php84"
|
||||
"github.com/acepanel/panel/internal/apps/phpmyadmin"
|
||||
"github.com/acepanel/panel/internal/apps/podman"
|
||||
"github.com/acepanel/panel/internal/apps/postgresql"
|
||||
"github.com/acepanel/panel/internal/apps/pureftpd"
|
||||
"github.com/acepanel/panel/internal/apps/redis"
|
||||
"github.com/acepanel/panel/internal/apps/rsync"
|
||||
"github.com/acepanel/panel/internal/apps/s3fs"
|
||||
"github.com/acepanel/panel/internal/apps/supervisor"
|
||||
"github.com/acepanel/panel/pkg/apploader"
|
||||
)
|
||||
|
||||
func NewLoader(
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/urfave/cli/v3"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
)
|
||||
|
||||
func NewCli(t *gotext.Locale, cmd *route.Cli) *cli.Command {
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"github.com/knadh/koanf/providers/file"
|
||||
"github.com/knadh/koanf/v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
)
|
||||
|
||||
func NewConf() (*koanf.Koanf, error) {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/robfig/cron/v3"
|
||||
|
||||
"github.com/tnborg/panel/internal/job"
|
||||
pkgcron "github.com/tnborg/panel/pkg/cron"
|
||||
"github.com/acepanel/panel/internal/job"
|
||||
pkgcron "github.com/acepanel/panel/pkg/cron"
|
||||
)
|
||||
|
||||
func NewCron(conf *koanf.Koanf, log *slog.Logger, jobs *job.Jobs) (*cron.Cron, error) {
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/migration"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/migration"
|
||||
)
|
||||
|
||||
func NewDB(conf *koanf.Koanf) (*gorm.DB, error) {
|
||||
|
||||
@@ -10,8 +10,8 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/middleware"
|
||||
"github.com/tnborg/panel/internal/route"
|
||||
"github.com/acepanel/panel/internal/http/middleware"
|
||||
"github.com/acepanel/panel/internal/route"
|
||||
)
|
||||
|
||||
func NewRouter(t *gotext.Locale, middlewares *middleware.Middlewares, http *route.Http, ws *route.Ws) (*chi.Mux, error) {
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
)
|
||||
|
||||
func NewLog(conf *koanf.Koanf) *slog.Logger {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"github.com/tnborg/panel/pkg/queue"
|
||||
"github.com/acepanel/panel/pkg/queue"
|
||||
)
|
||||
|
||||
func NewQueue() *queue.Queue {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/pkg/embed"
|
||||
"github.com/acepanel/panel/pkg/embed"
|
||||
)
|
||||
|
||||
func NewT(conf *koanf.Koanf) (*gotext.Locale, error) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"github.com/knadh/koanf/v2"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/http/rule"
|
||||
"github.com/acepanel/panel/internal/http/rule"
|
||||
)
|
||||
|
||||
// NewValidator just for register global rules
|
||||
|
||||
@@ -14,10 +14,10 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/pkg/api"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/pkg/api"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
)
|
||||
|
||||
type appRepo struct {
|
||||
|
||||
@@ -13,13 +13,13 @@ import (
|
||||
"github.com/shirou/gopsutil/disk"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/pkg/db"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/tools"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/pkg/db"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/tools"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type backupRepo struct {
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/pkg/api"
|
||||
"github.com/tnborg/panel/pkg/apploader"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/pkg/api"
|
||||
"github.com/acepanel/panel/pkg/apploader"
|
||||
)
|
||||
|
||||
type cacheRepo struct {
|
||||
|
||||
@@ -13,15 +13,15 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/acme"
|
||||
pkgcert "github.com/tnborg/panel/pkg/cert"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/acme"
|
||||
pkgcert "github.com/acepanel/panel/pkg/cert"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type certRepo struct {
|
||||
|
||||
@@ -10,10 +10,10 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/acme"
|
||||
"github.com/tnborg/panel/pkg/cert"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/acme"
|
||||
"github.com/acepanel/panel/pkg/cert"
|
||||
)
|
||||
|
||||
type certAccountRepo struct {
|
||||
|
||||
@@ -3,8 +3,8 @@ package data
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type certDNSRepo struct {
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/tnborg/panel/pkg/types/docker/container"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
"github.com/acepanel/panel/pkg/types/docker/container"
|
||||
)
|
||||
|
||||
type containerRepo struct {
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type containerComposeRepo struct{}
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/tools"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/tnborg/panel/pkg/types/docker/image"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/tools"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
"github.com/acepanel/panel/pkg/types/docker/image"
|
||||
)
|
||||
|
||||
type containerImageRepo struct {
|
||||
|
||||
@@ -8,11 +8,11 @@ import (
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/tnborg/panel/pkg/types/docker/network"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
"github.com/acepanel/panel/pkg/types/docker/network"
|
||||
)
|
||||
|
||||
type containerNetworkRepo struct {
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/tools"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/tnborg/panel/pkg/types/docker/volume"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/tools"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
"github.com/acepanel/panel/pkg/types/docker/volume"
|
||||
)
|
||||
|
||||
type containerVolumeRepo struct {
|
||||
|
||||
@@ -9,13 +9,13 @@ import (
|
||||
"github.com/libtnb/utils/str"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/os"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/os"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type cronRepo struct {
|
||||
|
||||
@@ -8,9 +8,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/db"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/db"
|
||||
)
|
||||
|
||||
type databaseRepo struct {
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/db"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/db"
|
||||
)
|
||||
|
||||
type databaseServerRepo struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/db"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/db"
|
||||
)
|
||||
|
||||
type databaseUserRepo struct {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
)
|
||||
|
||||
type monitorRepo struct {
|
||||
|
||||
@@ -6,11 +6,11 @@ import (
|
||||
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/pkg/firewall"
|
||||
"github.com/tnborg/panel/pkg/os"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/pkg/firewall"
|
||||
"github.com/acepanel/panel/pkg/os"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
)
|
||||
|
||||
type safeRepo struct {
|
||||
|
||||
@@ -12,15 +12,15 @@ import (
|
||||
"go.yaml.in/yaml/v3"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/cert"
|
||||
"github.com/tnborg/panel/pkg/firewall"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/os"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/cert"
|
||||
"github.com/acepanel/panel/pkg/firewall"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/os"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type settingRepo struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
pkgssh "github.com/tnborg/panel/pkg/ssh"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
pkgssh "github.com/acepanel/panel/pkg/ssh"
|
||||
)
|
||||
|
||||
type sshRepo struct {
|
||||
|
||||
@@ -7,9 +7,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/queuejob"
|
||||
"github.com/tnborg/panel/pkg/queue"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/queuejob"
|
||||
"github.com/acepanel/panel/pkg/queue"
|
||||
)
|
||||
|
||||
type taskRepo struct {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type userRepo struct {
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
type userTokenRepo struct {
|
||||
|
||||
@@ -16,19 +16,19 @@ import (
|
||||
"github.com/spf13/cast"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/tnborg/panel/internal/http/request"
|
||||
"github.com/tnborg/panel/pkg/acme"
|
||||
"github.com/tnborg/panel/pkg/api"
|
||||
"github.com/tnborg/panel/pkg/cert"
|
||||
"github.com/tnborg/panel/pkg/embed"
|
||||
"github.com/tnborg/panel/pkg/io"
|
||||
"github.com/tnborg/panel/pkg/nginx"
|
||||
"github.com/tnborg/panel/pkg/punycode"
|
||||
"github.com/tnborg/panel/pkg/shell"
|
||||
"github.com/tnborg/panel/pkg/systemctl"
|
||||
"github.com/tnborg/panel/pkg/types"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/http/request"
|
||||
"github.com/acepanel/panel/pkg/acme"
|
||||
"github.com/acepanel/panel/pkg/api"
|
||||
"github.com/acepanel/panel/pkg/cert"
|
||||
"github.com/acepanel/panel/pkg/embed"
|
||||
"github.com/acepanel/panel/pkg/io"
|
||||
"github.com/acepanel/panel/pkg/nginx"
|
||||
"github.com/acepanel/panel/pkg/punycode"
|
||||
"github.com/acepanel/panel/pkg/shell"
|
||||
"github.com/acepanel/panel/pkg/systemctl"
|
||||
"github.com/acepanel/panel/pkg/types"
|
||||
)
|
||||
|
||||
type websiteRepo struct {
|
||||
|
||||
@@ -6,12 +6,12 @@ import (
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/acepanel/panel/pkg/punycode"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/knadh/koanf/v2"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/libtnb/chix"
|
||||
"github.com/libtnb/sessions"
|
||||
"github.com/tnborg/panel/pkg/punycode"
|
||||
)
|
||||
|
||||
// Entrance 确保通过正确的入口访问
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/golang-cz/httplog"
|
||||
@@ -13,10 +14,9 @@ import (
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/libtnb/sessions"
|
||||
sessionmiddleware "github.com/libtnb/sessions/middleware"
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
var ProviderSet = wire.NewSet(NewMiddlewares)
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
// MustInstall 确保已安装应用
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/libtnb/sessions"
|
||||
"github.com/spf13/cast"
|
||||
|
||||
"github.com/tnborg/panel/internal/biz"
|
||||
"github.com/acepanel/panel/internal/biz"
|
||||
)
|
||||
|
||||
// MustLogin 确保已登录
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/leonelquinteros/gotext"
|
||||
|
||||
"github.com/tnborg/panel/internal/app"
|
||||
"github.com/acepanel/panel/internal/app"
|
||||
)
|
||||
|
||||
// Status 检查程序状态
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package request
|
||||
|
||||
import "github.com/tnborg/panel/pkg/acme"
|
||||
import "github.com/acepanel/panel/pkg/acme"
|
||||
|
||||
type CertDNSCreate struct {
|
||||
Type acme.DnsType `form:"type" json:"type" validate:"required|in:aliyun,tencent,huawei,westcn,cloudflare,gcore,porkbun,namesilo,cloudns,hetzner"`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package request
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type ContainerID struct {
|
||||
ID string `json:"id" form:"id" validate:"required"`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package request
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type ContainerComposeGet struct {
|
||||
Name string `uri:"name" validate:"required|regex:^[a-zA-Z0-9_-]+$"`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package request
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type ContainerNetworkID struct {
|
||||
ID string `json:"id" form:"id" validate:"required"`
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package request
|
||||
|
||||
import "github.com/tnborg/panel/pkg/types"
|
||||
import "github.com/acepanel/panel/pkg/types"
|
||||
|
||||
type ContainerVolumeID struct {
|
||||
ID string `json:"id" form:"id" validate:"required"`
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user