Repository: seqsense/aws-iot-device-sdk-go
Pull request #292 (2021-07-02 13:45:47)

Bump major version to v6


Patch:
diff --git a/README.md b/README.md
index b1f5108..1e31703 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 # aws-iot-device-sdk-go
 
-[![Go Reference](https://pkg.go.dev/badge/github.com/seqsense/aws-iot-device-sdk-go.svg)](https://pkg.go.dev/github.com/seqsense/aws-iot-device-sdk-go/v5) ![ci](https://github.com/seqsense/aws-iot-device-sdk-go/workflows/ci/badge.svg) [![codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/seqsense/aws-iot-device-sdk-go/blob/master/LICENSE)
+[![Go Reference](https://pkg.go.dev/badge/github.com/seqsense/aws-iot-device-sdk-go.svg)](https://pkg.go.dev/github.com/seqsense/aws-iot-device-sdk-go/v6) ![ci](https://github.com/seqsense/aws-iot-device-sdk-go/workflows/ci/badge.svg) [![codecov](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/seqsense/aws-iot-device-sdk-go) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/seqsense/aws-iot-device-sdk-go/blob/master/LICENSE)
 
 Package awsiotdev implements AWS IoT presigned WebSockets dialer for [github.com/at-wat/mqtt-go](https://github.com/at-wat/mqtt-go), and AWS IoT features.
 
diff --git a/awsiotdev.go b/awsiotdev.go
index 223509c..af9cea3 100644
--- a/awsiotdev.go
+++ b/awsiotdev.go
@@ -18,7 +18,7 @@ package awsiotdev
 import (
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // Device is an AWS IoT device.
diff --git a/dialer.go b/dialer.go
index 9fa7583..17613ee 100644
--- a/dialer.go
+++ b/dialer.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	presigner "github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	presigner "github.com/seqsense/aws-iot-device-sdk-go/v6/presigner"
 )
 
 type presignDialer struct {
diff --git a/examples/go.mod b/examples/go.mod
index 52bc5c4..7dac00c 100644
--- a/examples/go.mod
+++ b/examples/go.mod
@@ -1,11 +1,11 @@
-module github.com/seqsense/aws-iot-device-sdk-go/v5/examples
+module github.com/seqsense/aws-iot-device-sdk-go/v6/examples
 
 go 1.16
 
-replace github.com/seqsense/aws-iot-device-sdk-go/v5 => ../
+replace github.com/seqsense/aws-iot-device-sdk-go/v6 => ../
 
 require (
 	github.com/at-wat/mqtt-go v0.14.0
 	github.com/mitchellh/mapstructure v1.4.1
-	github.com/seqsense/aws-iot-device-sdk-go/v5 v5.0.0-00010101000000-000000000000
+	github.com/seqsense/aws-iot-device-sdk-go/v6 v5.0.0-00010101000000-000000000000
 )
diff --git a/examples/jobs/main.go b/examples/jobs/main.go
index a674f5b..438d635 100644
--- a/examples/jobs/main.go
+++ b/examples/jobs/main.go
@@ -21,8 +21,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/jobs"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/jobs"
 )
 
 func main() {
diff --git a/examples/shadow/main.go b/examples/shadow/main.go
index c3c2c77..6730f8b 100644
--- a/examples/shadow/main.go
+++ b/examples/shadow/main.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 	"github.com/mitchellh/mapstructure"
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/shadow"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/shadow"
 )
 
 func main() {
diff --git a/examples/tunnel/main.go b/examples/tunnel/main.go
index 173d2c8..6915ec6 100644
--- a/examples/tunnel/main.go
+++ b/examples/tunnel/main.go
@@ -23,8 +23,8 @@ import (
 	"time"
 
 	"github.com/at-wat/mqtt-go"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel"
 )
 
 func main() {
diff --git a/go.mod b/go.mod
index 94a46c2..f22770c 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/seqsense/aws-iot-device-sdk-go/v5
+module github.com/seqsense/aws-iot-device-sdk-go/v6
 
 require (
 	github.com/at-wat/mqtt-go v0.14.0
diff --git a/jobs/jobs.go b/jobs/jobs.go
index 3f57eeb..e9c90a5 100644
--- a/jobs/jobs.go
+++ b/jobs/jobs.go
@@ -23,8 +23,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // Jobs is an interface of IoT Jobs.
diff --git a/presigner/presign.go b/presigner/presign.go
index 62d5f25..6855c40 100644
--- a/presigner/presign.go
+++ b/presigner/presign.go
@@ -30,7 +30,7 @@ import (
 	"github.com/aws/aws-sdk-go-v2/aws"
 	"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 const (
diff --git a/shadow/shadow.go b/shadow/shadow.go
index 7dd3c5c..11d9915 100644
--- a/shadow/shadow.go
+++ b/shadow/shadow.go
@@ -24,8 +24,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	awsiotdev "github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // Shadow is an interface of Thing Shadow.
diff --git a/shadow/state.go b/shadow/state.go
index ba2e591..ba5c09a 100644
--- a/shadow/state.go
+++ b/shadow/state.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"fmt"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // ErrVersionConflict means thing state update was aborted due to version conflict.
diff --git a/tunnel/cmd/localproxy/main.go b/tunnel/cmd/localproxy/main.go
index aa0d214..c614ee7 100644
--- a/tunnel/cmd/localproxy/main.go
+++ b/tunnel/cmd/localproxy/main.go
@@ -21,7 +21,7 @@ import (
 	"log"
 	"net"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel"
 )
 
 var (
diff --git a/tunnel/cmd/secure-tunnel-server/app.go b/tunnel/cmd/secure-tunnel-server/app.go
index 1a75d2f..b821a8a 100644
--- a/tunnel/cmd/secure-tunnel-server/app.go
+++ b/tunnel/cmd/secure-tunnel-server/app.go
@@ -29,8 +29,8 @@ import (
 
 	mqtt "github.com/at-wat/mqtt-go"
 	"github.com/aws/aws-sdk-go-v2/config"
-	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/server"
+	awsiot "github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/server"
 )
 
 func app(ctx context.Context, args []string) {
diff --git a/tunnel/destination.go b/tunnel/destination.go
index ad7d3e5..caee919 100644
--- a/tunnel/destination.go
+++ b/tunnel/destination.go
@@ -19,8 +19,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/msg"
 )
 
 func proxyDestination(ws io.ReadWriter, dialer Dialer, eh ErrorHandler) error {
diff --git a/tunnel/msg/helper.go b/tunnel/msg/helper.go
index be02dd3..a665aef 100644
--- a/tunnel/msg/helper.go
+++ b/tunnel/msg/helper.go
@@ -19,7 +19,7 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // WriteMessage marshals the message and sends to the writer.
diff --git a/tunnel/proxy.go b/tunnel/proxy.go
index 9093e69..00399d5 100644
--- a/tunnel/proxy.go
+++ b/tunnel/proxy.go
@@ -25,7 +25,7 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 const (
diff --git a/tunnel/proxyio.go b/tunnel/proxyio.go
index d88deab..cc69189 100644
--- a/tunnel/proxyio.go
+++ b/tunnel/proxyio.go
@@ -18,7 +18,7 @@ import (
 	"fmt"
 	"io"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/msg"
 )
 
 func readProxy(ws, conn io.ReadWriter, streamID int32, eh ErrorHandler) {
diff --git a/tunnel/server/api.go b/tunnel/server/api.go
index 7c3a11b..3d52f82 100644
--- a/tunnel/server/api.go
+++ b/tunnel/server/api.go
@@ -27,8 +27,8 @@ import (
 	"github.com/aws/aws-sdk-go-v2/aws"
 	ist "github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel"
 )
 
 var errInvalidRequest = errors.New("invalid request")
diff --git a/tunnel/server/notifier.go b/tunnel/server/notifier.go
index 1717634..1bd77ed 100644
--- a/tunnel/server/notifier.go
+++ b/tunnel/server/notifier.go
@@ -21,8 +21,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel"
 )
 
 const (
diff --git a/tunnel/server/tunnel.go b/tunnel/server/tunnel.go
index 47c4471..54d6915 100644
--- a/tunnel/server/tunnel.go
+++ b/tunnel/server/tunnel.go
@@ -24,8 +24,8 @@ import (
 
 	"golang.org/x/net/websocket"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/msg"
 )
 
 // TunnelHandler handles websocket based secure tunneling sessions.
diff --git a/tunnel/source.go b/tunnel/source.go
index b6c7222..323fb52 100644
--- a/tunnel/source.go
+++ b/tunnel/source.go
@@ -21,8 +21,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/msg"
 )
 
 func proxySource(ws io.ReadWriter, listener net.Listener, eh ErrorHandler) error {
diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go
index dff0878..b809147 100644
--- a/tunnel/tunnel.go
+++ b/tunnel/tunnel.go
@@ -22,8 +22,8 @@ import (
 
 	"github.com/at-wat/mqtt-go"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 // Tunnel is an interface of secure tunneling.


Test patch:
diff --git a/dialer_test.go b/dialer_test.go
index 51edd78..a6368b4 100644
--- a/dialer_test.go
+++ b/dialer_test.go
@@ -39,8 +39,8 @@ import (
 	"github.com/aws/aws-sdk-go-v2/aws"
 	"github.com/aws/aws-sdk-go-v2/config"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/presigner"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/presigner"
 )
 
 func TestNewDialer(t *testing.T) {
diff --git a/jobs/jobs_test.go b/jobs/jobs_test.go
index 73e0139..ca4b7ef 100644
--- a/jobs/jobs_test.go
+++ b/jobs/jobs_test.go
@@ -25,7 +25,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 var errPublish = errors.New("publish failure")
diff --git a/shadow/shadow_test.go b/shadow/shadow_test.go
index 8ecbcd6..2b81dfa 100644
--- a/shadow/shadow_test.go
+++ b/shadow/shadow_test.go
@@ -26,7 +26,7 @@ import (
 	"github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 type mockDevice struct {
diff --git a/shadow/state_test.go b/shadow/state_test.go
index 2c22ec6..4e091e6 100644
--- a/shadow/state_test.go
+++ b/shadow/state_test.go
@@ -21,7 +21,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 func TestThingDocument_update(t *testing.T) {
diff --git a/tunnel/msg/helper_test.go b/tunnel/msg/helper_test.go
index 9efc2c9..e8ee1c5 100644
--- a/tunnel/msg/helper_test.go
+++ b/tunnel/msg/helper_test.go
@@ -19,7 +19,7 @@ import (
 	"errors"
 	"testing"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 func TestWriteMessage(t *testing.T) {
diff --git a/tunnel/proxy_test.go b/tunnel/proxy_test.go
index 13f0f63..ee5ac22 100644
--- a/tunnel/proxy_test.go
+++ b/tunnel/proxy_test.go
@@ -24,8 +24,8 @@ import (
 
 	"google.golang.org/protobuf/proto"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/tunnel/msg"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/tunnel/msg"
 )
 
 var (
diff --git a/tunnel/server/api_test.go b/tunnel/server/api_test.go
index 3b8be4a..48ad23e 100644
--- a/tunnel/server/api_test.go
+++ b/tunnel/server/api_test.go
@@ -29,7 +29,7 @@ import (
 	ist "github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling"
 	ist_types "github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling/types"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 func TestAPI(t *testing.T) {
diff --git a/tunnel/tunnel_test.go b/tunnel/tunnel_test.go
index 68407d1..17aefb6 100644
--- a/tunnel/tunnel_test.go
+++ b/tunnel/tunnel_test.go
@@ -24,7 +24,7 @@ import (
 	mqtt "github.com/at-wat/mqtt-go"
 	mockmqtt "github.com/at-wat/mqtt-go/mock"
 
-	"github.com/seqsense/aws-iot-device-sdk-go/v5/internal/ioterr"
+	"github.com/seqsense/aws-iot-device-sdk-go/v6/internal/ioterr"
 )
 
 type mockDevice struct {