go/svc/{invoice,speedtest} -> bgpwtf/
Continued from https://gerrit.hackerspace.pl/c/hscloud/+/71 .
Change-Id: I5aef587c7e9a4cec301e3c95530c33914851ad44
diff --git a/go/svc/invoice/BUILD.bazel b/bgpwtf/invoice/BUILD.bazel
similarity index 88%
rename from go/svc/invoice/BUILD.bazel
rename to bgpwtf/invoice/BUILD.bazel
index 05fcd23..b2e2ee8 100644
--- a/go/svc/invoice/BUILD.bazel
+++ b/bgpwtf/invoice/BUILD.bazel
@@ -9,12 +9,12 @@
"render.go",
"statusz.go",
],
- importpath = "code.hackerspace.pl/hscloud/go/svc/invoice",
+ importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice",
visibility = ["//visibility:private"],
deps = [
"//go/mirko:go_default_library",
"//go/statusz:go_default_library",
- "//go/svc/invoice/templates:go_default_library",
+ "//bgpwtf/invoice/templates:go_default_library",
"//proto/invoice:go_default_library",
"@com_github_golang_glog//:go_default_library",
"@com_github_golang_protobuf//proto:go_default_library",
diff --git a/go/svc/invoice/calc.go b/bgpwtf/invoice/calc.go
similarity index 100%
rename from go/svc/invoice/calc.go
rename to bgpwtf/invoice/calc.go
diff --git a/go/svc/invoice/main.go b/bgpwtf/invoice/main.go
similarity index 100%
rename from go/svc/invoice/main.go
rename to bgpwtf/invoice/main.go
diff --git a/go/svc/invoice/model.go b/bgpwtf/invoice/model.go
similarity index 100%
rename from go/svc/invoice/model.go
rename to bgpwtf/invoice/model.go
diff --git a/go/svc/invoice/proto/BUILD.bazel b/bgpwtf/invoice/proto/BUILD.bazel
similarity index 73%
rename from go/svc/invoice/proto/BUILD.bazel
rename to bgpwtf/invoice/proto/BUILD.bazel
index 6c78fa3..511bf26 100644
--- a/go/svc/invoice/proto/BUILD.bazel
+++ b/bgpwtf/invoice/proto/BUILD.bazel
@@ -3,6 +3,6 @@
go_library(
name = "go_default_library",
srcs = ["generate.go"],
- importpath = "code.hackerspace.pl/hscloud/go/svc/invoice/proto",
+ importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice/proto",
visibility = ["//visibility:public"],
)
diff --git a/go/svc/invoice/proto/generate.go b/bgpwtf/invoice/proto/generate.go
similarity index 100%
rename from go/svc/invoice/proto/generate.go
rename to bgpwtf/invoice/proto/generate.go
diff --git a/go/svc/invoice/render.go b/bgpwtf/invoice/render.go
similarity index 98%
rename from go/svc/invoice/render.go
rename to bgpwtf/invoice/render.go
index 03dcd77..2353014 100644
--- a/go/svc/invoice/render.go
+++ b/bgpwtf/invoice/render.go
@@ -8,7 +8,7 @@
wkhtml "github.com/sebastiaanklippert/go-wkhtmltopdf"
- "code.hackerspace.pl/hscloud/go/svc/invoice/templates"
+ "code.hackerspace.pl/hscloud/bgpwtf/invoice/templates"
pb "code.hackerspace.pl/hscloud/proto/invoice"
)
diff --git a/go/svc/invoice/statusz.go b/bgpwtf/invoice/statusz.go
similarity index 100%
rename from go/svc/invoice/statusz.go
rename to bgpwtf/invoice/statusz.go
diff --git a/go/svc/invoice/templates/BUILD.bazel b/bgpwtf/invoice/templates/BUILD.bazel
similarity index 74%
rename from go/svc/invoice/templates/BUILD.bazel
rename to bgpwtf/invoice/templates/BUILD.bazel
index 7874687..4756da4 100644
--- a/go/svc/invoice/templates/BUILD.bazel
+++ b/bgpwtf/invoice/templates/BUILD.bazel
@@ -13,6 +13,6 @@
srcs = [
":templates_bindata", # keep
],
- importpath = "code.hackerspace.pl/hscloud/go/svc/invoice/templates", # keep
- visibility = ["//go/svc/invoice:__subpackages__"],
+ importpath = "code.hackerspace.pl/hscloud/bgpwtf/invoice/templates", # keep
+ visibility = ["//bgpwtf/invoice:__subpackages__"],
)
diff --git a/go/svc/invoice/templates/invoice_en.html b/bgpwtf/invoice/templates/invoice_en.html
similarity index 100%
rename from go/svc/invoice/templates/invoice_en.html
rename to bgpwtf/invoice/templates/invoice_en.html
diff --git a/go/svc/invoice/templates/invoice_pl.html b/bgpwtf/invoice/templates/invoice_pl.html
similarity index 100%
rename from go/svc/invoice/templates/invoice_pl.html
rename to bgpwtf/invoice/templates/invoice_pl.html
diff --git a/go/svc/speedtest/.gitignore b/bgpwtf/speedtest/.gitignore
similarity index 100%
rename from go/svc/speedtest/.gitignore
rename to bgpwtf/speedtest/.gitignore
diff --git a/go/svc/speedtest/BUILD b/bgpwtf/speedtest/BUILD.bazel
similarity index 79%
rename from go/svc/speedtest/BUILD
rename to bgpwtf/speedtest/BUILD.bazel
index 3425af9..cc431d0 100644
--- a/go/svc/speedtest/BUILD
+++ b/bgpwtf/speedtest/BUILD.bazel
@@ -12,14 +12,14 @@
go_library(
name = "static_go",
srcs = [":static"],
- importpath = "code.hackerspace.pl/hscloud/go/svc/speedtest/static",
+ importpath = "code.hackerspace.pl/hscloud/bgpwtf/speedtest/static",
visibility = ["//visibility:public"],
)
container_image(
name="latest",
base="@prodimage-bionic//image",
- files = ["//go/svc/speedtest/backend:backend"],
+ files = ["//bgpwtf/speedtest/backend:backend"],
directory = "/hscloud",
entrypoint = ["/hscloud/backend"],
)
@@ -30,9 +30,9 @@
outs = ["version.sh"],
executable = True,
cmd = """
- local=bazel/go/svc/speedtest:latest
+ local=bazel/bgpwtf/speedtest:latest
tag=$$(date +%s)
- remote=registry.k0.hswaw.net/go/svc/speedtest:$$tag
+ remote=registry.k0.hswaw.net/bgpwtf/speedtest:$$tag
docker tag $$local $$remote
docker push $$remote
diff --git a/go/svc/speedtest/LICENSE b/bgpwtf/speedtest/LICENSE
similarity index 100%
rename from go/svc/speedtest/LICENSE
rename to bgpwtf/speedtest/LICENSE
diff --git a/go/svc/speedtest/README.md b/bgpwtf/speedtest/README.md
similarity index 100%
rename from go/svc/speedtest/README.md
rename to bgpwtf/speedtest/README.md
diff --git a/go/svc/speedtest/backend/BUILD.bazel b/bgpwtf/speedtest/backend/BUILD.bazel
similarity index 81%
rename from go/svc/speedtest/backend/BUILD.bazel
rename to bgpwtf/speedtest/backend/BUILD.bazel
index 28ecc88..54ea2f6 100644
--- a/go/svc/speedtest/backend/BUILD.bazel
+++ b/bgpwtf/speedtest/backend/BUILD.bazel
@@ -3,11 +3,11 @@
go_library(
name = "go_default_library",
srcs = ["main.go"],
- importpath = "code.hackerspace.pl/hscloud/go/svc/speedtest/backend",
+ importpath = "code.hackerspace.pl/hscloud/bgpwtf/speedtest/backend",
visibility = ["//visibility:private"],
deps = [
"@com_github_golang_glog//:go_default_library",
- "//go/svc/speedtest:static_go", # keep
+ "//bgpwtf/speedtest:static_go", # keep
],
)
diff --git a/go/svc/speedtest/backend/main.go b/bgpwtf/speedtest/backend/main.go
similarity index 94%
rename from go/svc/speedtest/backend/main.go
rename to bgpwtf/speedtest/backend/main.go
index 80c1c8c..7d4aece 100644
--- a/go/svc/speedtest/backend/main.go
+++ b/bgpwtf/speedtest/backend/main.go
@@ -27,7 +27,7 @@
"github.com/golang/glog"
- "code.hackerspace.pl/hscloud/go/svc/speedtest/static"
+ "code.hackerspace.pl/hscloud/bgpwtf/speedtest/static"
)
var (
@@ -131,13 +131,13 @@
json.NewEncoder(w).Encode(res)
})
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
- w.Write(static.Data["go/svc/speedtest/index.html"])
+ w.Write(static.Data["bgpwtf/speedtest/index.html"])
})
http.HandleFunc("/speedtest.js", func(w http.ResponseWriter, r *http.Request) {
- w.Write(static.Data["go/svc/speedtest/speedtest.js"])
+ w.Write(static.Data["bgpwtf/speedtest/speedtest.js"])
})
http.HandleFunc("/speedtest_worker.js", func(w http.ResponseWriter, r *http.Request) {
- w.Write(static.Data["go/svc/speedtest/speedtest_worker.js"])
+ w.Write(static.Data["bgpwtf/speedtest/speedtest_worker.js"])
})
glog.Infof("Starting up at %v", flagBind)
diff --git a/go/svc/speedtest/backend/main_test.go b/bgpwtf/speedtest/backend/main_test.go
similarity index 100%
rename from go/svc/speedtest/backend/main_test.go
rename to bgpwtf/speedtest/backend/main_test.go
diff --git a/go/svc/speedtest/index.html b/bgpwtf/speedtest/index.html
similarity index 100%
rename from go/svc/speedtest/index.html
rename to bgpwtf/speedtest/index.html
diff --git a/go/svc/speedtest/kube/prod.jsonnet b/bgpwtf/speedtest/kube/prod.jsonnet
similarity index 97%
rename from go/svc/speedtest/kube/prod.jsonnet
rename to bgpwtf/speedtest/kube/prod.jsonnet
index e53fd45..fc6e083 100644
--- a/go/svc/speedtest/kube/prod.jsonnet
+++ b/bgpwtf/speedtest/kube/prod.jsonnet
@@ -9,7 +9,7 @@
domain: "speedtest.hackerspace.pl",
tag: "1563032542",
- image: "registry.k0.hswaw.net/go/svc/speedtest:" + cfg.tag,
+ image: "registry.k0.hswaw.net/bgpwtf/speedtest:" + cfg.tag,
resources: {
requests: {
diff --git a/go/svc/speedtest/speedtest.js b/bgpwtf/speedtest/speedtest.js
similarity index 100%
rename from go/svc/speedtest/speedtest.js
rename to bgpwtf/speedtest/speedtest.js
diff --git a/go/svc/speedtest/speedtest_worker.js b/bgpwtf/speedtest/speedtest_worker.js
similarity index 100%
rename from go/svc/speedtest/speedtest_worker.js
rename to bgpwtf/speedtest/speedtest_worker.js