mirror of
https://gitee.com/gokins/gokins.git
synced 2024-11-29 09:47:37 +08:00
v1.0.2
This commit is contained in:
parent
74eccd2991
commit
f6e953f37a
38
.github/workflows/release.yaml
vendored
38
.github/workflows/release.yaml
vendored
@ -1,38 +0,0 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.14
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
go mod download
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gokins-linux-amd64 main.go
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gokins-darwin-amd64 main.go
|
||||
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
|
||||
- name: Create Release
|
||||
run: |
|
||||
hub release create -m "Gokins ${{ steps.get_version.outputs.VERSION }}" \
|
||||
-a gokins-linux-amd64 \
|
||||
-a gokins-darwin-amd64 \
|
||||
${{ steps.get_version.outputs.VERSION }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,8 +6,6 @@
|
||||
*.dylib
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
/.idea
|
||||
/.github
|
||||
/dbm.bat
|
||||
/dbm.sh
|
||||
/model.yml
|
||||
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
FROM golang:1.16.6-alpine3.14 AS builder
|
||||
# ENV GOPROXY=https://goproxy.cn,direct
|
||||
# RUN apk add git build-base && git clone https://gitee.com/gokins/gokins.git /build
|
||||
RUN apk add git build-base && git clone https://github.com/gokins/gokins.git /build
|
||||
WORKDIR /build
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/gokins main.go
|
||||
|
||||
|
||||
FROM alpine:latest AS final
|
||||
|
||||
ENV GOKINS_WORKPATH=/data/gokins
|
||||
|
||||
RUN apk --no-cache add openssl ca-certificates curl git wget \
|
||||
&& rm -rf /var/cache/apk \
|
||||
&& mkdir -p /app /data/gokins
|
||||
|
||||
COPY --from=builder /build/bin/gokins /app
|
||||
WORKDIR /app
|
||||
ENTRYPOINT ["/app/gokins"]
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 gokins-main
|
||||
Copyright (c) 2021 gokins
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -1,9 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/core"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/server"
|
||||
"github.com/gokins/core"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/server"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"gopkg.in/alecthomas/kingpin.v2"
|
||||
"os"
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"xorm.io/builder"
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
@ -83,12 +83,11 @@ func AssetNames() []string {
|
||||
|
||||
// _bindata is a table, holding each asset generator, mapped to its name.
|
||||
var _bindata = map[string]func() ([]byte, error){
|
||||
"mysql/000001_gokins.down.sql": mysql_000001_gokins_down_sql,
|
||||
"mysql/000001_gokins.up.sql": mysql_000001_gokins_up_sql,
|
||||
"mysql/000001_gokins.down.sql": mysql_000001_gokins_down_sql,
|
||||
"mysql/000001_gokins.up.sql": mysql_000001_gokins_up_sql,
|
||||
"sqlite/000001_gokins.down.sql": sqlite_000001_gokins_down_sql,
|
||||
"sqlite/000001_gokins.up.sql": sqlite_000001_gokins_up_sql,
|
||||
"sqlite/000001_gokins.up.sql": sqlite_000001_gokins_up_sql,
|
||||
}
|
||||
|
||||
// AssetDir returns the file names below a certain
|
||||
// directory embedded in the file by go-bindata.
|
||||
// For example if you run go-bindata on data/... and data contains the
|
||||
@ -125,17 +124,20 @@ func AssetDir(name string) ([]string, error) {
|
||||
}
|
||||
|
||||
type _bintree_t struct {
|
||||
Func func() ([]byte, error)
|
||||
Func func() ([]byte, error)
|
||||
Children map[string]*_bintree_t
|
||||
}
|
||||
|
||||
var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
|
||||
"mysql": &_bintree_t{nil, map[string]*_bintree_t{
|
||||
"000001_gokins.down.sql": &_bintree_t{mysql_000001_gokins_down_sql, map[string]*_bintree_t{}},
|
||||
"000001_gokins.up.sql": &_bintree_t{mysql_000001_gokins_up_sql, map[string]*_bintree_t{}},
|
||||
"000001_gokins.down.sql": &_bintree_t{mysql_000001_gokins_down_sql, map[string]*_bintree_t{
|
||||
}},
|
||||
"000001_gokins.up.sql": &_bintree_t{mysql_000001_gokins_up_sql, map[string]*_bintree_t{
|
||||
}},
|
||||
}},
|
||||
"sqlite": &_bintree_t{nil, map[string]*_bintree_t{
|
||||
"000001_gokins.down.sql": &_bintree_t{sqlite_000001_gokins_down_sql, map[string]*_bintree_t{}},
|
||||
"000001_gokins.up.sql": &_bintree_t{sqlite_000001_gokins_up_sql, map[string]*_bintree_t{}},
|
||||
"000001_gokins.down.sql": &_bintree_t{sqlite_000001_gokins_down_sql, map[string]*_bintree_t{
|
||||
}},
|
||||
"000001_gokins.up.sql": &_bintree_t{sqlite_000001_gokins_up_sql, map[string]*_bintree_t{
|
||||
}},
|
||||
}},
|
||||
}}
|
||||
|
@ -1,12 +1,12 @@
|
||||
package comm
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins-main/gokins/thirdapi/giteaapi"
|
||||
"github.com/gokins-main/gokins/thirdapi/giteeapi"
|
||||
"github.com/gokins-main/gokins/thirdapi/giteepremiumapi"
|
||||
"github.com/gokins-main/gokins/thirdapi/githubapi"
|
||||
"github.com/gokins-main/gokins/thirdapi/gitlabapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi/giteaapi"
|
||||
"github.com/gokins/gokins/thirdapi/giteeapi"
|
||||
"github.com/gokins/gokins/thirdapi/giteepremiumapi"
|
||||
"github.com/gokins/gokins/thirdapi/githubapi"
|
||||
"github.com/gokins/gokins/thirdapi/gitlabapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@ import (
|
||||
"encoding/base64"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins/core/utils"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -1,10 +1,10 @@
|
||||
package engine
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/sirupsen/logrus"
|
||||
"runtime/debug"
|
||||
"time"
|
||||
|
@ -2,9 +2,9 @@ package engine
|
||||
|
||||
import (
|
||||
"container/list"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/gokins/comm"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
"runtime/debug"
|
||||
|
@ -13,10 +13,10 @@ import (
|
||||
|
||||
"github.com/go-git/go-git/v5"
|
||||
ghttp "github.com/go-git/go-git/v5/plumbing/transport/http"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -3,12 +3,12 @@ package engine
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/runner/runners"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/runner/runners"
|
||||
"github.com/sirupsen/logrus"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
@ -2,7 +2,7 @@ package engine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins/core/runtime"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,10 +2,10 @@ package engine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/runner/runners"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/runner/runners"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"strconv"
|
||||
"time"
|
||||
|
@ -4,10 +4,10 @@ import (
|
||||
"container/list"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/runner/runners"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/runner/runners"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
"runtime/debug"
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"runtime/debug"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/runner/runners"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/runner/runners"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins/gokins/service"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
@ -12,12 +12,12 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/runner/runners"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/runner/runners"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
)
|
||||
|
||||
@ -37,6 +37,7 @@ func (c *baseRunner) PullJob(name string, plugs []string) (*runners.RunJob, erro
|
||||
if v != nil {
|
||||
return v, nil
|
||||
}
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
}
|
||||
return nil, errors.New("not found")
|
||||
}
|
||||
|
@ -3,10 +3,10 @@ package engine
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/service"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
"runtime/debug"
|
||||
|
6
go.mod
6
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/gokins-main/gokins
|
||||
module github.com/gokins/gokins
|
||||
|
||||
go 1.15
|
||||
|
||||
@ -8,8 +8,8 @@ require (
|
||||
github.com/gin-gonic/gin v1.7.2
|
||||
github.com/go-git/go-git/v5 v5.4.2
|
||||
github.com/go-sql-driver/mysql v1.5.0
|
||||
github.com/gokins-main/core v0.0.0-20210718160656-01ed57f06c58
|
||||
github.com/gokins-main/runner v0.0.0-20210722023302-e6ba8889bce8
|
||||
github.com/gokins/core v0.0.0-20210730105437-f83bf70e44ae
|
||||
github.com/gokins/runner v0.0.0-20210730110433-9fd5233e1a58
|
||||
github.com/golang-migrate/migrate/v4 v4.14.1
|
||||
github.com/mgr9525/HyperByte-Transfer-Protocol v1.1.5
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
|
8
go.sum
8
go.sum
@ -146,10 +146,10 @@ github.com/gobuffalo/here v0.6.0/go.mod h1:wAG085dHOYqUpf+Ap+WOdrPTp5IYcDAs/x7PL
|
||||
github.com/gocql/gocql v0.0.0-20190301043612-f6df8288f9b4/go.mod h1:4Fw1eo5iaEhDUs8XyuhSVCVy52Jq3L+/3GJgYkwc+/0=
|
||||
github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
|
||||
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
||||
github.com/gokins-main/core v0.0.0-20210718160656-01ed57f06c58 h1:GxYFGfozn/tJKTYMvkkywx2P2X84YuVHDNXKvPK9xOA=
|
||||
github.com/gokins-main/core v0.0.0-20210718160656-01ed57f06c58/go.mod h1:d2M89I6uAXqZzbub3igYtY9jwINCAsl4U73Sze6a3Vk=
|
||||
github.com/gokins-main/runner v0.0.0-20210722023302-e6ba8889bce8 h1:2k6fbQpUjDLEb2i5nN3uXBTeOpnPCQsbLzruaElreBc=
|
||||
github.com/gokins-main/runner v0.0.0-20210722023302-e6ba8889bce8/go.mod h1:8wJp1hNzeOPR/vBe1wl3mdgOqD5hpYNHnY8cbxyFndA=
|
||||
github.com/gokins/core v0.0.0-20210730105437-f83bf70e44ae h1:4TdUmWsLBeV4DJtAuip13wyo8H6J3M1qW6FPS7tPaxI=
|
||||
github.com/gokins/core v0.0.0-20210730105437-f83bf70e44ae/go.mod h1:zB+5ezSWcHTCsEIyQD30jUBFBo98htP3Ft0GqcdAbf8=
|
||||
github.com/gokins/runner v0.0.0-20210730110433-9fd5233e1a58 h1:nAydSWsIuD/4MIO0dDqTSiaSWpTxyOHcrA5UB7KMxBs=
|
||||
github.com/gokins/runner v0.0.0-20210730110433-9fd5233e1a58/go.mod h1:xFNa0RGmnJgyRlihmnogeV9rboO0wIRoJUvL1KlS8dM=
|
||||
github.com/golang-migrate/migrate/v4 v4.14.1 h1:qmRd/rNGjM1r3Ve5gHd5ZplytrD02UcItYNxJ3iUHHE=
|
||||
github.com/golang-migrate/migrate/v4 v4.14.1/go.mod h1:l7Ks0Au6fYHuUIxUhQ0rcVX1uLlJg54C/VvW7tvxSz0=
|
||||
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/hook"
|
||||
"github.com/gokins/gokins/hook"
|
||||
"github.com/sirupsen/logrus"
|
||||
"hash"
|
||||
"io"
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/hook"
|
||||
"github.com/gokins/gokins/hook"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/hook"
|
||||
"github.com/gokins/gokins/hook"
|
||||
"github.com/sirupsen/logrus"
|
||||
"hash"
|
||||
"io"
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/hook"
|
||||
"github.com/gokins/gokins/hook"
|
||||
"github.com/sirupsen/logrus"
|
||||
"hash"
|
||||
"io"
|
||||
|
2
main.go
2
main.go
@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/cmd"
|
||||
"github.com/gokins/gokins/cmd"
|
||||
//_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
"github.com/golang-migrate/migrate/v4/database/mysql"
|
||||
"github.com/golang-migrate/migrate/v4/database/sqlite3"
|
||||
|
@ -3,7 +3,7 @@ package migrates
|
||||
import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/golang-migrate/migrate/v4"
|
||||
"github.com/golang-migrate/migrate/v4/database/mysql"
|
||||
"github.com/golang-migrate/migrate/v4/database/sqlite3"
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/gokins/comm"
|
||||
)
|
||||
|
||||
type TArtifactVersion struct {
|
||||
|
10
route/api.go
10
route/api.go
@ -5,11 +5,11 @@ import (
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/util"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package route
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins/core/common"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
@ -11,13 +11,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -9,11 +9,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/service"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
)
|
||||
|
||||
|
@ -2,11 +2,11 @@ package route
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
)
|
||||
|
||||
|
@ -8,15 +8,15 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/gokins/util/httpex"
|
||||
"github.com/gokins/gokins/util/httpex"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/migrates"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/migrates"
|
||||
"github.com/gokins/gokins/util"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
|
@ -1,19 +1,19 @@
|
||||
package route
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins/gokins/models"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
)
|
||||
|
||||
type LoginController struct{}
|
||||
|
14
route/org.go
14
route/org.go
@ -5,13 +5,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
)
|
||||
|
||||
|
@ -2,18 +2,18 @@ package route
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/models"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
@ -2,10 +2,10 @@ package route
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
)
|
||||
|
||||
|
@ -4,14 +4,14 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
@ -3,14 +3,14 @@ package route
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"time"
|
||||
)
|
||||
|
@ -2,12 +2,12 @@ package route
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/service"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/service"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -2,9 +2,9 @@ package route
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/models"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/models"
|
||||
"github.com/gokins/gokins/util"
|
||||
)
|
||||
|
||||
type YmlController struct{}
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/gokins-main/core"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/migrates"
|
||||
"github.com/gokins/core"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/migrates"
|
||||
"github.com/sirupsen/logrus"
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/engine"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -8,12 +8,12 @@ import (
|
||||
"time"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/gokins-main/core"
|
||||
utils2 "github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/engine"
|
||||
"github.com/gokins-main/gokins/route"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core"
|
||||
utils2 "github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/engine"
|
||||
"github.com/gokins/gokins/route"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v3"
|
||||
|
@ -10,13 +10,13 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/gokins/util/httpex"
|
||||
"github.com/gokins/gokins/util/httpex"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/core"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/route"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/core"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/route"
|
||||
"github.com/gokins/gokins/util"
|
||||
hbtp "github.com/mgr9525/HyperByte-Transfer-Protocol"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
package service
|
||||
|
||||
import "github.com/gokins-main/gokins/comm"
|
||||
import "github.com/gokins/gokins/comm"
|
||||
|
||||
func GetIdOrAid(id interface{}, e interface{}) bool {
|
||||
if id == nil || e == nil {
|
||||
|
@ -4,15 +4,15 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/hook"
|
||||
"github.com/gokins-main/gokins/hook/gitea"
|
||||
"github.com/gokins-main/gokins/hook/gitee"
|
||||
"github.com/gokins-main/gokins/hook/github"
|
||||
"github.com/gokins-main/gokins/hook/gitlab"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/hook"
|
||||
"github.com/gokins/gokins/hook/gitea"
|
||||
"github.com/gokins/gokins/hook/gitee"
|
||||
"github.com/gokins/gokins/hook/github"
|
||||
"github.com/gokins/gokins/hook/gitlab"
|
||||
"github.com/gokins/gokins/model"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -2,7 +2,7 @@ package service
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/gokins/model"
|
||||
)
|
||||
|
||||
const LgUserKey = "lguser"
|
||||
|
@ -3,8 +3,8 @@ package service
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/sirupsen/logrus"
|
||||
"time"
|
||||
)
|
||||
|
@ -2,7 +2,7 @@ package service
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/gokins/model"
|
||||
)
|
||||
|
||||
func CheckPermission(uid string, perms string) bool {
|
||||
|
@ -6,12 +6,12 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/gokins-main/core/common"
|
||||
"github.com/gokins-main/core/runtime"
|
||||
"github.com/gokins-main/core/utils"
|
||||
"github.com/gokins-main/gokins/bean"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/core/common"
|
||||
"github.com/gokins/core/runtime"
|
||||
"github.com/gokins/core/utils"
|
||||
"github.com/gokins/gokins/bean"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"gopkg.in/yaml.v3"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package service
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins/gokins/model"
|
||||
)
|
||||
|
||||
func TriggerPerm(tt *model.TTrigger) error {
|
||||
|
@ -3,9 +3,9 @@ package service
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gokins-main/gokins/comm"
|
||||
"github.com/gokins-main/gokins/model"
|
||||
"github.com/gokins-main/gokins/util"
|
||||
"github.com/gokins/gokins/comm"
|
||||
"github.com/gokins/gokins/model"
|
||||
"github.com/gokins/gokins/util"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package giteaapi
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/bean/thirdbean"
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/bean/thirdbean"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package giteeapi
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/bean/thirdbean"
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/bean/thirdbean"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package giteepremiumapi
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/bean/thirdbean"
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/bean/thirdbean"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package githubapi
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/bean/thirdbean"
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/bean/thirdbean"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package gitlabapi
|
||||
|
||||
import (
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gokins-main/gokins/bean/thirdbean"
|
||||
"github.com/gokins-main/gokins/thirdapi"
|
||||
"github.com/gokins/gokins/bean/thirdbean"
|
||||
"github.com/gokins/gokins/thirdapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
Loading…
Reference in New Issue
Block a user