Auto push releases message to community
This commit is contained in:
parent
1c63c5942c
commit
4c843a5c14
|
@ -16,6 +16,7 @@ jobs:
|
|||
needs:
|
||||
- check_release
|
||||
- build_release_assets
|
||||
- send_to_community
|
||||
steps:
|
||||
- run: exit 0
|
||||
|
||||
|
@ -274,3 +275,36 @@ jobs:
|
|||
cd ci
|
||||
go run ./cmd/upload_asset
|
||||
|
||||
|
||||
|
||||
send_to_community:
|
||||
name: CI is green
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
repository: ${{ github.event.inputs.repo }}
|
||||
ref: 'master'
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ env.go_version }}
|
||||
- name: Cache go modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
- name: Send to community
|
||||
env:
|
||||
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
|
||||
TG_CHAT_IDS: ${{ secrets.TG_CHAT_IDS }}
|
||||
DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }}
|
||||
DISCORD_CHAT_IDS: ${{ secrets.DISCORD_CHAT_IDS }}
|
||||
run: |
|
||||
cd ci
|
||||
go run ./cmd/send_to_community
|
||||
|
||||
|
||||
|
|
|
@ -7,13 +7,8 @@ import (
|
|||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const owner = "niuhuan"
|
||||
const repo = "pikapika"
|
||||
const ua = "niuhuan pikapika ci"
|
||||
|
||||
func main() {
|
||||
// get ghToken
|
||||
ghToken := os.Getenv("GH_TOKEN")
|
||||
|
@ -22,17 +17,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
// get version
|
||||
var version commons.Version
|
||||
codeFile, err := ioutil.ReadFile("version.code.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Code = strings.TrimSpace(string(codeFile))
|
||||
infoFile, err := ioutil.ReadFile("version.info.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Info = strings.TrimSpace(string(infoFile))
|
||||
version := commons.LoadVersion()
|
||||
// get target
|
||||
target := os.Getenv("TARGET")
|
||||
if target == "" {
|
||||
|
@ -66,13 +51,13 @@ func main() {
|
|||
// get version
|
||||
getReleaseRequest, err := http.NewRequest(
|
||||
"GET",
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", owner, repo, version.Code),
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", commons.Owner, commons.Repo, version.Code),
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
getReleaseRequest.Header.Set("User-Agent", ua)
|
||||
getReleaseRequest.Header.Set("User-Agent", commons.Ua)
|
||||
getReleaseRequest.Header.Set("Authorization", "token "+ghToken)
|
||||
getReleaseResponse, err := http.DefaultClient.Do(getReleaseRequest)
|
||||
if err != nil {
|
||||
|
|
|
@ -8,14 +8,8 @@ import (
|
|||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const owner = "niuhuan"
|
||||
const repo = "pikapika"
|
||||
const ua = "niuhuan pikapika ci"
|
||||
const mainBranch = "master"
|
||||
|
||||
func main() {
|
||||
// get ghToken
|
||||
ghToken := os.Getenv("GH_TOKEN")
|
||||
|
@ -24,27 +18,17 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
// get version
|
||||
var version commons.Version
|
||||
codeFile, err := ioutil.ReadFile("version.code.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Code = strings.TrimSpace(string(codeFile))
|
||||
infoFile, err := ioutil.ReadFile("version.info.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Info = strings.TrimSpace(string(infoFile))
|
||||
version := commons.LoadVersion()
|
||||
// get version
|
||||
getReleaseRequest, err := http.NewRequest(
|
||||
"GET",
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", owner, repo, version.Code),
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", commons.Owner, commons.Repo, version.Code),
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
panic(nil)
|
||||
}
|
||||
getReleaseRequest.Header.Set("User-Agent", ua)
|
||||
getReleaseRequest.Header.Set("User-Agent", commons.Ua)
|
||||
getReleaseRequest.Header.Set("Authorization", "token "+ghToken)
|
||||
getReleaseResponse, err := http.DefaultClient.Do(getReleaseRequest)
|
||||
if err != nil {
|
||||
|
@ -52,10 +36,10 @@ func main() {
|
|||
}
|
||||
defer getReleaseResponse.Body.Close()
|
||||
if getReleaseResponse.StatusCode == 404 {
|
||||
url := fmt.Sprintf("https://api.github.com/repos/%v/%v/releases", owner, repo)
|
||||
url := fmt.Sprintf("https://api.github.com/repos/%v/%v/releases", commons.Owner, commons.Repo)
|
||||
body := map[string]interface{}{
|
||||
"tag_name": version.Code,
|
||||
"target_commitish": mainBranch,
|
||||
"target_commitish": commons.MainBranch,
|
||||
"name": version.Code,
|
||||
"body": version.Info,
|
||||
}
|
||||
|
@ -69,7 +53,7 @@ func main() {
|
|||
if err != nil {
|
||||
panic(nil)
|
||||
}
|
||||
createReleaseRequest.Header.Set("User-Agent", ua)
|
||||
createReleaseRequest.Header.Set("User-Agent", commons.Ua)
|
||||
createReleaseRequest.Header.Set("Authorization", "token "+ghToken)
|
||||
var createReleaseResponse *http.Response
|
||||
createReleaseResponse, err = http.DefaultClient.Do(createReleaseRequest)
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"ci/commons"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/andersfylling/disgord"
|
||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// get version
|
||||
var version commons.Version
|
||||
codeFile, err := ioutil.ReadFile("version.code.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Code = strings.TrimSpace(string(codeFile))
|
||||
infoFile, err := ioutil.ReadFile("version.info.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Info = strings.TrimSpace(string(infoFile))
|
||||
// message
|
||||
var message = fmt.Sprintf(
|
||||
"%v 版本 %v 发布! \n\n"+
|
||||
"更新内容:\n"+
|
||||
"%v\n\n"+
|
||||
"请不要传播本应用到其他社区\n\n"+
|
||||
"https://github.com/%v/%v/releases/tag/%v",
|
||||
commons.Repo, version.Code, version.Info, commons.Owner, commons.Repo, version.Code,
|
||||
)
|
||||
// get accounts
|
||||
tgToken := os.Getenv("TG_BOT_TOKEN")
|
||||
tgChatIdsStr := os.Getenv("TG_CHAT_IDS")
|
||||
discordToken := os.Getenv("DISCORD_BOT_TOKEN")
|
||||
discordChatIdsStr := os.Getenv("DISCORD_CHAT_IDS")
|
||||
if tgToken != "" && tgChatIdsStr != "" {
|
||||
var tgChatIds []int64
|
||||
json.Unmarshal([]byte(tgChatIdsStr), &tgChatIds)
|
||||
if len(tgChatIds) > 0 {
|
||||
sendMessageToTg(tgToken, tgChatIds, message)
|
||||
}
|
||||
}
|
||||
if discordToken != "" && discordChatIdsStr != "" {
|
||||
var discordChatIds []uint64
|
||||
json.Unmarshal([]byte(discordChatIdsStr), &discordChatIds)
|
||||
if len(discordChatIds) > 0 {
|
||||
sendMessageToDiscord(tgToken, discordChatIds, message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func sendMessageToTg(token string, ids []int64, message string) {
|
||||
bot, err := tgbotapi.NewBotAPI(token)
|
||||
if err != nil {
|
||||
log.Panic(err)
|
||||
}
|
||||
for _, id := range ids {
|
||||
msg := tgbotapi.NewMessage(id, message)
|
||||
_, err = bot.Send(msg)
|
||||
if err != nil {
|
||||
fmt.Sprintf("Send message to tg chat : %v (error : %v)", id, err.Error())
|
||||
} else {
|
||||
fmt.Sprintf("Send message to tg chat : %v (success)", id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func sendMessageToDiscord(token string, ids []uint64, message string) {
|
||||
client := disgord.New(disgord.Config{
|
||||
BotToken: token,
|
||||
})
|
||||
for _, id := range ids {
|
||||
_, err := client.SendMsg(disgord.Snowflake(id), message)
|
||||
if err != nil {
|
||||
fmt.Sprintf("Send message to tg chat : %v (error : %v)", id, err.Error())
|
||||
} else {
|
||||
fmt.Sprintf("Send message to tg chat : %v (success)", id)
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,13 +8,8 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const owner = "niuhuan"
|
||||
const repo = "pikapika"
|
||||
const ua = "niuhuan pikapika ci"
|
||||
|
||||
func main() {
|
||||
// get ghToken
|
||||
ghToken := os.Getenv("GH_TOKEN")
|
||||
|
@ -23,17 +18,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
// get version
|
||||
var version commons.Version
|
||||
codeFile, err := ioutil.ReadFile("version.code.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Code = strings.TrimSpace(string(codeFile))
|
||||
infoFile, err := ioutil.ReadFile("version.info.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Info = strings.TrimSpace(string(infoFile))
|
||||
version := commons.LoadVersion()
|
||||
// get target
|
||||
target := os.Getenv("TARGET")
|
||||
if target == "" {
|
||||
|
@ -90,13 +75,13 @@ func main() {
|
|||
// get version
|
||||
getReleaseRequest, err := http.NewRequest(
|
||||
"GET",
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", owner, repo, version.Code),
|
||||
fmt.Sprintf("https://api.github.com/repos/%v/%v/releases/tags/%v", commons.Owner, commons.Repo, version.Code),
|
||||
nil,
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
getReleaseRequest.Header.Set("User-Agent", ua)
|
||||
getReleaseRequest.Header.Set("User-Agent", commons.Ua)
|
||||
getReleaseRequest.Header.Set("Authorization", "token "+ghToken)
|
||||
getReleaseResponse, err := http.DefaultClient.Do(getReleaseRequest)
|
||||
if err != nil {
|
||||
|
@ -121,12 +106,12 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
defer file.Close()
|
||||
uploadUrl := fmt.Sprintf("https://uploads.github.com/repos/%v/%v/releases/%v/assets?name=%v", owner, repo, release.Id, releaseFileName)
|
||||
uploadUrl := fmt.Sprintf("https://uploads.github.com/repos/%v/%v/releases/%v/assets?name=%v", commons.Owner, commons.Repo, release.Id, releaseFileName)
|
||||
uploadRequest, err := http.NewRequest("POST", uploadUrl, file)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
uploadRequest.Header.Set("User-Agent", ua)
|
||||
uploadRequest.Header.Set("User-Agent", commons.Ua)
|
||||
uploadRequest.Header.Set("Authorization", "token "+ghToken)
|
||||
uploadRequest.Header.Set("Content-Type", contentType)
|
||||
uploadRequest.ContentLength = contentLength
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
package commons
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const Owner = "niuhuan"
|
||||
const Repo = "pikapika"
|
||||
const Ua = "niuhuan pikapika ci"
|
||||
const MainBranch = "master"
|
||||
|
||||
func LoadVersion() Version {
|
||||
var version Version
|
||||
codeFile, err := ioutil.ReadFile("version.code.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Code = strings.TrimSpace(string(codeFile))
|
||||
infoFile, err := ioutil.ReadFile("version.info.txt")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
version.Info = strings.TrimSpace(string(infoFile))
|
||||
return version
|
||||
}
|
19
ci/go.mod
19
ci/go.mod
|
@ -1 +1,18 @@
|
|||
module "ci"
|
||||
module ci
|
||||
|
||||
go 1.17
|
||||
|
||||
require (
|
||||
github.com/andersfylling/disgord v0.35.1
|
||||
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/andersfylling/snowflake/v5 v5.0.1 // indirect
|
||||
github.com/klauspost/compress v1.15.1 // indirect
|
||||
go.uber.org/atomic v1.9.0 // indirect
|
||||
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect
|
||||
nhooyr.io/websocket v1.8.7 // indirect
|
||||
)
|
||||
|
|
|
@ -0,0 +1,120 @@
|
|||
github.com/andersfylling/disgord v0.35.1 h1:auhxW9z96/uSF7MYwfuv8AP71AVIc0+jZQWjZdwIqNE=
|
||||
github.com/andersfylling/disgord v0.35.1/go.mod h1:gTzujw2mWxJWxAPo3LwxG5+a4/n4ikdD+JMb1mONmUM=
|
||||
github.com/andersfylling/snowflake/v5 v5.0.1 h1:unXbYSij6tRCGJzoLz9zl3nJsqd9hu7bbYSgB8K8/i0=
|
||||
github.com/andersfylling/snowflake/v5 v5.0.1/go.mod h1:AdhrB+kewjnQInv8cR7ABe2SGoVXh79njnipUnz1HFc=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
|
||||
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
|
||||
github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=
|
||||
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
|
||||
github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU=
|
||||
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
|
||||
github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=
|
||||
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
|
||||
github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
|
||||
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
|
||||
github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY=
|
||||
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
|
||||
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 h1:wG8n/XJQ07TmjbITcGiUaOtXxdrINDz1b0J1w0SzqDc=
|
||||
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1/go.mod h1:A2S0CWkNylc2phvKXWBBdD3K0iGnDBGbzRpISP2zBl8=
|
||||
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0=
|
||||
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
|
||||
github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
|
||||
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
|
||||
github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=
|
||||
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls=
|
||||
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM=
|
||||
github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
|
||||
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
|
||||
github.com/klauspost/compress v1.15.1 h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A=
|
||||
github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
|
||||
github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
|
||||
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
|
||||
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
|
||||
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
|
||||
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
|
||||
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
|
||||
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd h1:XcWmESyNjXJMLahc3mqVQJcgSTDxFxhETVlfk9uGc38=
|
||||
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc=
|
||||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 h1:y/woIyUBFbpQGKS0u1aHF/40WUDnek3fPOyD08H5Vng=
|
||||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
k8s.io/gengo v0.0.0-20220307231824-4627b89bbf1b/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E=
|
||||
k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y=
|
||||
nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g=
|
||||
nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0=
|
||||
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
|
Loading…
Reference in New Issue