Skip to content

Commit

Permalink
refactor: Remove obsolete V1 code, swagger & scripts (#3492)
Browse files Browse the repository at this point in the history
* refactor: Remove obsolete V1 code, swagger & scripts

closes #3338 & #3337

Signed-off-by: lenny <leonard.goodell@intel.com>
  • Loading branch information
Lenny Goodell authored Jun 3, 2021
1 parent 2fbe278 commit f99dd52
Show file tree
Hide file tree
Showing 301 changed files with 25 additions and 62,402 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ test:
GO111MODULE=on go vet ./...
gofmt -l .
[ "`gofmt -l .`" = "" ]
./bin/test-go-mod-tidy.sh
./bin/test-attribution-txt.sh

run:
Expand Down
37 changes: 0 additions & 37 deletions bin/edgex-docker-launch.sh

This file was deleted.

82 changes: 0 additions & 82 deletions bin/edgex-launch.sh

This file was deleted.

55 changes: 0 additions & 55 deletions bin/test-go-mod-tidy.sh

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/core-command/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
command.Main(ctx, cancel, mux.NewRouter(), nil)
command.Main(ctx, cancel, mux.NewRouter())
}
2 changes: 1 addition & 1 deletion cmd/core-data/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
data.Main(ctx, cancel, mux.NewRouter(), nil)
data.Main(ctx, cancel, mux.NewRouter())
}
2 changes: 1 addition & 1 deletion cmd/core-metadata/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
metadata.Main(ctx, cancel, mux.NewRouter(), nil)
metadata.Main(ctx, cancel, mux.NewRouter())
}
3 changes: 1 addition & 2 deletions cmd/security-bootstrapper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"os"

"github.com/edgexfoundry/edgex-go/internal/security/bootstrapper"
"github.com/gorilla/mux"
)

func main() {
Expand All @@ -29,5 +28,5 @@ func main() {
_ = os.Unsetenv("EDGEX_PROFILE")

ctx, cancel := context.WithCancel(context.Background())
bootstrapper.Main(ctx, cancel, mux.NewRouter(), nil)
bootstrapper.Main(ctx, cancel)
}
4 changes: 1 addition & 3 deletions cmd/security-file-token-provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ import (
"context"

"github.com/edgexfoundry/edgex-go/internal/security/fileprovider"

"github.com/gorilla/mux"
)

func main() {
ctx, cancel := context.WithCancel(context.Background())
fileprovider.Main(ctx, cancel, mux.NewRouter(), nil)
fileprovider.Main(ctx, cancel)
}
4 changes: 1 addition & 3 deletions cmd/security-proxy-setup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ import (
"context"

"github.com/edgexfoundry/edgex-go/internal/security/proxy"

"github.com/gorilla/mux"
)

func main() {
ctx, cancel := context.WithCancel(context.Background())
proxy.Main(ctx, cancel, mux.NewRouter(), nil)
proxy.Main(ctx, cancel)
}
4 changes: 1 addition & 3 deletions cmd/security-secretstore-setup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ import (
"context"

"github.com/edgexfoundry/edgex-go/internal/security/secretstore"

"github.com/gorilla/mux"
)

func main() {
ctx, cancel := context.WithCancel(context.Background())
secretstore.Main(ctx, cancel, mux.NewRouter(), nil)
secretstore.Main(ctx, cancel)
}
2 changes: 1 addition & 1 deletion cmd/support-notifications/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
notifications.Main(ctx, cancel, mux.NewRouter(), nil)
notifications.Main(ctx, cancel, mux.NewRouter())
}
2 changes: 1 addition & 1 deletion cmd/support-scheduler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
scheduler.Main(ctx, cancel, mux.NewRouter(), nil)
scheduler.Main(ctx, cancel, mux.NewRouter())
}
2 changes: 1 addition & 1 deletion cmd/sys-mgmt-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ import (

func main() {
ctx, cancel := context.WithCancel(context.Background())
agent.Main(ctx, cancel, mux.NewRouter(), nil)
agent.Main(ctx, cancel, mux.NewRouter())
}
4 changes: 0 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module github.com/edgexfoundry/edgex-go

require (
bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690
github.com/OneOfOne/xxhash v1.2.8
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/edgexfoundry/go-mod-bootstrap/v2 v2.0.0-dev.61
github.com/edgexfoundry/go-mod-configuration/v2 v2.0.0-dev.8
Expand All @@ -14,11 +13,8 @@ require (
github.com/gomodule/redigo v2.0.0+incompatible
github.com/google/uuid v1.2.0
github.com/gorilla/mux v1.8.0
github.com/imdario/mergo v0.3.12
github.com/lib/pq v1.10.2
github.com/pelletier/go-toml v1.9.1
github.com/pkg/errors v0.8.1
github.com/robfig/cron v0.0.0-20180505203441-b41be1df6967
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
gopkg.in/eapache/queue.v1 v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion internal/core/command/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd $GOPATH/src/github.com/edgexfoundry/edgex-go
# pull the 3rd party / vendor packages
make prepare
# build the microservice
make cmd/core-command/core-command
make core-command
# get to the command microservice executable
cd cmd/core-command
# run the microservice (may require other dependent services to run correctly)
Expand Down
25 changes: 0 additions & 25 deletions internal/core/command/const.go

This file was deleted.

29 changes: 0 additions & 29 deletions internal/core/command/container/device.go

This file was deleted.

Loading

0 comments on commit f99dd52

Please sign in to comment.