Update pkg references
This commit is contained in:
@@ -5,4 +5,4 @@ name = "go"
|
|||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
[analyzers.meta]
|
[analyzers.meta]
|
||||||
import_root = "github.com/speedrunsh/speedrun"
|
import_root = "github.com/dpogorzelski/speedrun"
|
||||||
@@ -10,7 +10,7 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.version={{.Version}} -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.commit={{.ShortCommit}} -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.date={{.Date}}
|
- -s -w -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.version={{.Version}} -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.commit={{.ShortCommit}} -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.date={{.Date}}
|
||||||
- id: portal
|
- id: portal
|
||||||
main: ./cmd/portal
|
main: ./cmd/portal
|
||||||
binary: portal
|
binary: portal
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -16,18 +16,18 @@ requirements:
|
|||||||
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
@go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||||
|
|
||||||
speedrun-linux-amd64: requirements
|
speedrun-linux-amd64: requirements
|
||||||
GOOS=linux GOARCH=amd64 go build -o $(DIST)/speedrun-linux-amd64 -ldflags "-X github.com/speedrunsh/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
GOOS=linux GOARCH=amd64 go build -o $(DIST)/speedrun-linux-amd64 -ldflags "-X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
||||||
|
|
||||||
speedrun-linux-arm64: requirements
|
speedrun-linux-arm64: requirements
|
||||||
GOOS=linux GOARCH=arm64 go build -o $(DIST)/speedrun-linux-arm64 -ldflags "-X github.com/speedrunsh/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
GOOS=linux GOARCH=arm64 go build -o $(DIST)/speedrun-linux-arm64 -ldflags "-X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
||||||
|
|
||||||
speedrun-linux: speedrun-linux-amd64 speedrun-linux-arm64
|
speedrun-linux: speedrun-linux-amd64 speedrun-linux-arm64
|
||||||
|
|
||||||
speedrun-darwin-amd64: requirements
|
speedrun-darwin-amd64: requirements
|
||||||
GOOS=darwin GOARCH=amd64 go build -o $(DIST)/speedrun-darwin-amd64 -ldflags "-X github.com/speedrunsh/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
GOOS=darwin GOARCH=amd64 go build -o $(DIST)/speedrun-darwin-amd64 -ldflags "-X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
||||||
|
|
||||||
speedrun-darwin-arm64: requirements
|
speedrun-darwin-arm64: requirements
|
||||||
GOOS=darwin GOARCH=arm64 go build -o $(DIST)/speedrun-darwin-arm64 -ldflags "-X github.com/speedrunsh/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/speedrunsh/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
GOOS=darwin GOARCH=arm64 go build -o $(DIST)/speedrun-darwin-arm64 -ldflags "-X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.version=$(VERSION) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.commit=$(GITCOMMIT) -X github.com/dpogorzelski/speedrun/cmd/speedrun/cli.date=$(DATE)" ./cmd/speedrun
|
||||||
|
|
||||||
speedrun-darwin: speedrun-darwin-amd64 speedrun-darwin-arm64
|
speedrun-darwin: speedrun-darwin-amd64 speedrun-darwin-arm64
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
# Speedrun
|
# Speedrun
|
||||||
|
|
||||||
[](https://github.com/speedrunsh/speedrun/blob/master/LICENSE)
|
[](https://github.com/dpogorzelski/speedrun/blob/master/LICENSE)
|
||||||
[](https://goreportcard.com/report/github.com/speedrunsh/speedrun)
|
[](https://goreportcard.com/report/github.com/dpogorzelski/speedrun)
|
||||||
[](https://github.com/speedrunsh/speedrun/actions/workflows/go.yml)
|
[](https://github.com/dpogorzelski/speedrun/actions/workflows/go.yml)
|
||||||
|
|
||||||
Speedrun helps you control your compute fleet with minimal effort.
|
Speedrun helps you control your compute fleet with minimal effort.
|
||||||
|
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
jsonhandler "github.com/apex/log/handlers/json"
|
jsonhandler "github.com/apex/log/handlers/json"
|
||||||
texthandler "github.com/apex/log/handlers/text"
|
texthandler "github.com/apex/log/handlers/text"
|
||||||
"github.com/speedrunsh/speedrun/pkg/common/cryptoutil"
|
"github.com/dpogorzelski/speedrun/pkg/common/cryptoutil"
|
||||||
"github.com/speedrunsh/speedrun/pkg/portal"
|
"github.com/dpogorzelski/speedrun/pkg/portal"
|
||||||
portalpb "github.com/speedrunsh/speedrun/proto/portal"
|
portalpb "github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"storj.io/drpc/drpcmux"
|
"storj.io/drpc/drpcmux"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/speedrunsh/speedrun/cmd/portal/cli"
|
"github.com/dpogorzelski/speedrun/cmd/portal/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alitto/pond"
|
"github.com/alitto/pond"
|
||||||
"github.com/speedrunsh/speedrun/pkg/speedrun/cloud"
|
"github.com/dpogorzelski/speedrun/pkg/speedrun/cloud"
|
||||||
portalpb "github.com/speedrunsh/speedrun/proto/portal"
|
portalpb "github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
"storj.io/drpc/drpcconn"
|
"storj.io/drpc/drpcconn"
|
||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
"github.com/alitto/pond"
|
"github.com/alitto/pond"
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
"github.com/speedrunsh/speedrun/pkg/speedrun/cloud"
|
"github.com/dpogorzelski/speedrun/pkg/speedrun/cloud"
|
||||||
portalpb "github.com/speedrunsh/speedrun/proto/portal"
|
portalpb "github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"storj.io/drpc/drpcconn"
|
"storj.io/drpc/drpcconn"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/speedrunsh/speedrun/cmd/speedrun/cli"
|
"github.com/dpogorzelski/speedrun/cmd/speedrun/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/speedrunsh/speedrun
|
module github.com/dpogorzelski/speedrun
|
||||||
|
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
|
|
||||||
"github.com/speedrunsh/speedrun/proto/portal"
|
"github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Server) RunCommand(ctx context.Context, in *portal.CommandRequest) (*portal.CommandResponse, error) {
|
func (s *Server) RunCommand(ctx context.Context, in *portal.CommandRequest) (*portal.CommandResponse, error) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package portal
|
package portal
|
||||||
|
|
||||||
import "github.com/speedrunsh/speedrun/proto/portal"
|
import "github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
|
|
||||||
type Server struct {
|
type Server struct {
|
||||||
portal.DRPCPortalUnimplementedServer
|
portal.DRPCPortalUnimplementedServer
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
"github.com/coreos/go-systemd/v22/dbus"
|
"github.com/coreos/go-systemd/v22/dbus"
|
||||||
"github.com/speedrunsh/speedrun/proto/portal"
|
"github.com/dpogorzelski/speedrun/proto/portal"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *Server) ServiceRestart(ctx context.Context, service *portal.ServiceRequest) (*portal.ServiceResponse, error) {
|
func (s *Server) ServiceRestart(ctx context.Context, service *portal.ServiceRequest) (*portal.ServiceResponse, error) {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
"github.com/antonmedv/expr"
|
"github.com/antonmedv/expr"
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
|
"github.com/dpogorzelski/speedrun/pkg/common/cryptoutil"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/speedrunsh/speedrun/pkg/common/cryptoutil"
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
option go_package = "github.com/speedrunsh/speedrun/proto/portal";
|
option go_package = "github.com/dpogorzelski/speedrun/proto/portal";
|
||||||
package portal;
|
package portal;
|
||||||
|
|
||||||
enum State {
|
enum State {
|
||||||
|
|||||||
Reference in New Issue
Block a user