Skip to content

Commit

Permalink
gomod: introduce github.com/plgd-dev/hub/v2
Browse files Browse the repository at this point in the history
fixing different version of golang package against GitHub tags
  • Loading branch information
jkralik committed Jan 12, 2022
1 parent 61a8c16 commit 3bd930b
Show file tree
Hide file tree
Showing 528 changed files with 2,334 additions and 2,325 deletions.
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ignore:
- "bundle"
- "charts"
- "v2"
- "http-gateway/grpc-websocket"
- "http-gateway/web"
- "**/main.go"
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.gitignore
.travis.yml
.tmp
v2
Makefile
Dockerfile
Dockerfile.test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
debug
.tmp/
authsvc.db
v2/

# Test binary, build with `go test -c`
*.test
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"go.testTimeout": "600s",
"go.buildFlags": [
// "-mod=vendor",
]
],
"files.watcherExclude": {
"**/plgd-dev/hub/v2/**": true
}
}
14 changes: 7 additions & 7 deletions bundle/client/grpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
"google.golang.org/grpc/credentials"

"github.com/plgd-dev/go-coap/v2/message"
pbGW "github.com/plgd-dev/hub/grpc-gateway/pb"
"github.com/plgd-dev/hub/pkg/log"
kitNetGrpc "github.com/plgd-dev/hub/pkg/net/grpc"
"github.com/plgd-dev/hub/resource-aggregate/commands"
"github.com/plgd-dev/hub/test/oauth-server/service"
oauthTest "github.com/plgd-dev/hub/test/oauth-server/test"
"github.com/plgd-dev/hub/test/oauth-server/uri"
pbGW "github.com/plgd-dev/hub/v2/grpc-gateway/pb"
"github.com/plgd-dev/hub/v2/pkg/log"
kitNetGrpc "github.com/plgd-dev/hub/v2/pkg/net/grpc"
"github.com/plgd-dev/hub/v2/resource-aggregate/commands"
"github.com/plgd-dev/hub/v2/test/oauth-server/service"
oauthTest "github.com/plgd-dev/hub/v2/test/oauth-server/test"
"github.com/plgd-dev/hub/v2/test/oauth-server/uri"
"github.com/plgd-dev/kit/v2/codec/json"
)

Expand Down
12 changes: 6 additions & 6 deletions bundle/client/ob/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (

"github.com/plgd-dev/device/client"
"github.com/plgd-dev/device/schema/device"
capb "github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/grpc-gateway/pb"
grpcCloud "github.com/plgd-dev/hub/pkg/net/grpc"
"github.com/plgd-dev/hub/test/oauth-server/service"
oauthTest "github.com/plgd-dev/hub/test/oauth-server/test"
"github.com/plgd-dev/hub/test/oauth-server/uri"
capb "github.com/plgd-dev/hub/v2/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/grpc-gateway/pb"
grpcCloud "github.com/plgd-dev/hub/v2/pkg/net/grpc"
"github.com/plgd-dev/hub/v2/test/oauth-server/service"
oauthTest "github.com/plgd-dev/hub/v2/test/oauth-server/test"
"github.com/plgd-dev/hub/v2/test/oauth-server/uri"
"github.com/plgd-dev/kit/v2/codec/json"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
Expand Down
8 changes: 4 additions & 4 deletions bundle/client/ob/ocfclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"github.com/plgd-dev/device/client"
"github.com/plgd-dev/device/client/core"
"github.com/plgd-dev/device/schema/acl"
capb "github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/certificate-authority/signer"
"github.com/plgd-dev/hub/grpc-gateway/pb"
"github.com/plgd-dev/hub/pkg/log"
capb "github.com/plgd-dev/hub/v2/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/certificate-authority/signer"
"github.com/plgd-dev/hub/v2/grpc-gateway/pb"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/kit/v2/security"
)

Expand Down
6 changes: 3 additions & 3 deletions certificate-authority/cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"context"

"github.com/plgd-dev/hub/certificate-authority/service"
"github.com/plgd-dev/hub/pkg/config"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/v2/certificate-authority/service"
"github.com/plgd-dev/hub/v2/pkg/config"
"github.com/plgd-dev/hub/v2/pkg/log"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions certificate-authority/pb/cert.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion certificate-authority/pb/cert.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package certificateauthority.pb;

option go_package = "github.com/plgd-dev/hub/certificate-authority/pb;pb";
option go_package = "github.com/plgd-dev/hub/v2/certificate-authority/pb;pb";

message SignCertificateRequest {
bytes certificate_signing_request = 1; // PEM format
Expand Down
2 changes: 1 addition & 1 deletion certificate-authority/pb/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package certificateauthority.pb;

import "github.com/plgd-dev/hub/certificate-authority/pb/cert.proto";

option go_package = "github.com/plgd-dev/hub/certificate-authority/pb;pb";
option go_package = "github.com/plgd-dev/hub/v2/certificate-authority/pb;pb";

service CertificateAuthority {
// SignIdentityCertificate sends a Identity Certificate Signing Request to the certificate authority
Expand Down
4 changes: 2 additions & 2 deletions certificate-authority/service/caApi.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/karrick/tparse/v2"
"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/pkg/net/grpc/server"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/pkg/net/grpc/server"
"github.com/plgd-dev/kit/v2/security"
"google.golang.org/grpc"
)
Expand Down
6 changes: 3 additions & 3 deletions certificate-authority/service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"time"

"github.com/karrick/tparse/v2"
"github.com/plgd-dev/hub/pkg/config"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/pkg/net/grpc/server"
"github.com/plgd-dev/hub/v2/pkg/config"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/hub/v2/pkg/net/grpc/server"
)

type Config struct {
Expand Down
6 changes: 3 additions & 3 deletions certificate-authority/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"fmt"

"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/v2/pkg/log"

"github.com/plgd-dev/hub/pkg/net/grpc/server"
"github.com/plgd-dev/hub/pkg/security/jwt/validator"
"github.com/plgd-dev/hub/v2/pkg/net/grpc/server"
"github.com/plgd-dev/hub/v2/pkg/security/jwt/validator"
)

type Service struct {
Expand Down
4 changes: 2 additions & 2 deletions certificate-authority/service/signCertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/kit/v2/security/signer"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
12 changes: 6 additions & 6 deletions certificate-authority/service/signCertificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"testing"
"time"

"github.com/plgd-dev/hub/certificate-authority/pb"
kitNetGrpc "github.com/plgd-dev/hub/pkg/net/grpc"
"github.com/plgd-dev/hub/test"
testCfg "github.com/plgd-dev/hub/test/config"
oauthTest "github.com/plgd-dev/hub/test/oauth-server/test"
"github.com/plgd-dev/hub/test/service"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
kitNetGrpc "github.com/plgd-dev/hub/v2/pkg/net/grpc"
"github.com/plgd-dev/hub/v2/test"
testCfg "github.com/plgd-dev/hub/v2/test/config"
oauthTest "github.com/plgd-dev/hub/v2/test/oauth-server/test"
"github.com/plgd-dev/hub/v2/test/service"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
Expand Down
4 changes: 2 additions & 2 deletions certificate-authority/service/signIdentityCertificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package service
import (
"context"

"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/kit/v2/security/signer"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
)

func TestRequestHandlerSignIdentityCertificate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion certificate-authority/signer/basicCertificateSigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package signer
import (
"context"

"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
)

type BasicCertificateSigner struct {
Expand Down
2 changes: 1 addition & 1 deletion certificate-authority/signer/identityCertificateSigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package signer
import (
"context"

"github.com/plgd-dev/hub/certificate-authority/pb"
"github.com/plgd-dev/hub/v2/certificate-authority/pb"
)

type IdentityCertificateSigner struct {
Expand Down
6 changes: 3 additions & 3 deletions certificate-authority/test/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/plgd-dev/hub/certificate-authority/service"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/test/config"
"github.com/plgd-dev/hub/v2/certificate-authority/service"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/hub/v2/test/config"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions cloud2cloud-connector/cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"context"

"github.com/plgd-dev/hub/cloud2cloud-connector/service"
"github.com/plgd-dev/hub/pkg/config"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/service"
"github.com/plgd-dev/hub/v2/pkg/config"
"github.com/plgd-dev/hub/v2/pkg/log"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cloud2cloud-connector/service/addLinkedAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/gorilla/mux"
cache "github.com/plgd-dev/go-coap/v2/pkg/cache"
"github.com/plgd-dev/hub/cloud2cloud-connector/store"
"github.com/plgd-dev/hub/pkg/net/grpc"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
"github.com/plgd-dev/hub/v2/pkg/net/grpc"
)

type LinkedCloudHandler struct {
Expand Down
4 changes: 2 additions & 2 deletions cloud2cloud-connector/service/addLinkedCloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http"

"github.com/google/uuid"
"github.com/plgd-dev/hub/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/cloud2cloud-connector/store"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
"github.com/plgd-dev/kit/v2/codec/json"
)

Expand Down
2 changes: 1 addition & 1 deletion cloud2cloud-connector/service/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sync"

"github.com/plgd-dev/hub/cloud2cloud-connector/store"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
kitSync "github.com/plgd-dev/kit/v2/sync"
)

Expand Down
14 changes: 7 additions & 7 deletions cloud2cloud-connector/service/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"time"

"github.com/plgd-dev/hub/pkg/config"
"github.com/plgd-dev/hub/pkg/log"
"github.com/plgd-dev/hub/pkg/mongodb"
grpcClient "github.com/plgd-dev/hub/pkg/net/grpc/client"
"github.com/plgd-dev/hub/pkg/net/listener"
"github.com/plgd-dev/hub/pkg/security/oauth2"
natsClient "github.com/plgd-dev/hub/resource-aggregate/cqrs/eventbus/nats/client"
"github.com/plgd-dev/hub/v2/pkg/config"
"github.com/plgd-dev/hub/v2/pkg/log"
"github.com/plgd-dev/hub/v2/pkg/mongodb"
grpcClient "github.com/plgd-dev/hub/v2/pkg/net/grpc/client"
"github.com/plgd-dev/hub/v2/pkg/net/listener"
"github.com/plgd-dev/hub/v2/pkg/security/oauth2"
natsClient "github.com/plgd-dev/hub/v2/resource-aggregate/cqrs/eventbus/nats/client"
)

// Config represents application configuration
Expand Down
2 changes: 1 addition & 1 deletion cloud2cloud-connector/service/deleteLinkedAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"

"github.com/gorilla/mux"
"github.com/plgd-dev/hub/cloud2cloud-connector/store"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
"github.com/plgd-dev/kit/v2/log"
)

Expand Down
8 changes: 4 additions & 4 deletions cloud2cloud-connector/service/deviceSubscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (

"github.com/google/uuid"
cache "github.com/plgd-dev/go-coap/v2/pkg/cache"
"github.com/plgd-dev/hub/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/cloud2cloud-connector/store"
kitHttp "github.com/plgd-dev/hub/pkg/net/http"
"github.com/plgd-dev/hub/resource-aggregate/commands"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
kitHttp "github.com/plgd-dev/hub/v2/pkg/net/http"
"github.com/plgd-dev/hub/v2/resource-aggregate/commands"
"github.com/plgd-dev/kit/v2/log"
)

Expand Down
14 changes: 7 additions & 7 deletions cloud2cloud-connector/service/deviceSubscriptionHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"sync/atomic"
"time"

"github.com/plgd-dev/hub/cloud2cloud-connector/store"
grpcClient "github.com/plgd-dev/hub/grpc-gateway/client"
"github.com/plgd-dev/hub/grpc-gateway/pb"
kitNetGrpc "github.com/plgd-dev/hub/pkg/net/grpc"
"github.com/plgd-dev/hub/resource-aggregate/cqrs/eventbus/nats/subscriber"
raEvents "github.com/plgd-dev/hub/resource-aggregate/events"
raService "github.com/plgd-dev/hub/resource-aggregate/service"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
grpcClient "github.com/plgd-dev/hub/v2/grpc-gateway/client"
"github.com/plgd-dev/hub/v2/grpc-gateway/pb"
kitNetGrpc "github.com/plgd-dev/hub/v2/pkg/net/grpc"
"github.com/plgd-dev/hub/v2/resource-aggregate/cqrs/eventbus/nats/subscriber"
raEvents "github.com/plgd-dev/hub/v2/resource-aggregate/events"
raService "github.com/plgd-dev/hub/v2/resource-aggregate/service"
"github.com/plgd-dev/kit/v2/log"
kitSync "github.com/plgd-dev/kit/v2/sync"
)
Expand Down
8 changes: 4 additions & 4 deletions cloud2cloud-connector/service/devicesSubscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

"github.com/google/uuid"
"github.com/plgd-dev/go-coap/v2/pkg/cache"
"github.com/plgd-dev/hub/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/cloud2cloud-connector/store"
pbIS "github.com/plgd-dev/hub/identity-store/pb"
"github.com/plgd-dev/hub/resource-aggregate/commands"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/events"
"github.com/plgd-dev/hub/v2/cloud2cloud-connector/store"
pbIS "github.com/plgd-dev/hub/v2/identity-store/pb"
"github.com/plgd-dev/hub/v2/resource-aggregate/commands"
"github.com/plgd-dev/kit/v2/log"
)

Expand Down
Loading

0 comments on commit 3bd930b

Please sign in to comment.