diff --git a/README.md b/README.md index b1f51080..1e31703a 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 223509c4..af9cea3a 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 9fa75830..17613ee8 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/dialer_test.go b/dialer_test.go index 51edd789..a6368b4c 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/examples/go.mod b/examples/go.mod index 52bc5c49..7dac00c8 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 a674f5bb..438d635b 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 c3c2c775..6730f8b4 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 173d2c88..6915ec60 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 94a46c2e..f22770c9 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 3f57eeb3..e9c90a54 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/jobs/jobs_test.go b/jobs/jobs_test.go index 73e01392..ca4b7ef5 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/presigner/presign.go b/presigner/presign.go index 62d5f25e..6855c405 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 7dd3c5c8..11d99156 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/shadow_test.go b/shadow/shadow_test.go index 8ecbcd6a..2b81dfac 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.go b/shadow/state.go index ba2e5918..ba5c09a6 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/shadow/state_test.go b/shadow/state_test.go index 2c22ec67..4e091e65 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/cmd/localproxy/main.go b/tunnel/cmd/localproxy/main.go index aa0d214e..c614ee7d 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 1a75d2f4..b821a8a9 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 ad7d3e55..caee9192 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 be02dd34..a665aeff 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/msg/helper_test.go b/tunnel/msg/helper_test.go index 9efc2c97..e8ee1c55 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.go b/tunnel/proxy.go index 9093e697..00399d5a 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/proxy_test.go b/tunnel/proxy_test.go index 13f0f63f..ee5ac22c 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/proxyio.go b/tunnel/proxyio.go index d88deab9..cc691897 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 7c3a11b0..3d52f82d 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/api_test.go b/tunnel/server/api_test.go index 3b8be4a2..48ad23e9 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/server/notifier.go b/tunnel/server/notifier.go index 17176348..1bd77ed3 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 47c44719..54d69157 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 b6c7222f..323fb527 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 dff0878d..b809147d 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. diff --git a/tunnel/tunnel_test.go b/tunnel/tunnel_test.go index 68407d15..17aefb6d 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 {