Skip to content

Commit

Permalink
Bump major version to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Jul 2, 2021
1 parent 3c90fde commit e544a04
Show file tree
Hide file tree
Showing 31 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion awsiotdev.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions examples/go.mod
Original file line number Diff line number Diff line change
@@ -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
)
4 changes: 2 additions & 2 deletions examples/jobs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions examples/shadow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions examples/tunnel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions jobs/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion jobs/jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion presigner/presign.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions shadow/shadow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion shadow/shadow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion shadow/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion shadow/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tunnel/cmd/localproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions tunnel/cmd/secure-tunnel-server/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tunnel/destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tunnel/msg/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tunnel/msg/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tunnel/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions tunnel/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion tunnel/proxyio.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tunnel/server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tunnel/server/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tunnel/server/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions tunnel/server/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions tunnel/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions tunnel/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tunnel/tunnel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e544a04

Please sign in to comment.