Skip to content

Commit

Permalink
Upgraded to GO client V3
Browse files Browse the repository at this point in the history
  • Loading branch information
rjtokenring committed Oct 25, 2024
1 parent 5a10fda commit 2c70c55
Show file tree
Hide file tree
Showing 18 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion command/dashboard/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package dashboard

import (
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
)

// DashboardInfo contains the most interesting
Expand Down
2 changes: 1 addition & 1 deletion command/device/createlora.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/arduino/arduino-cloud-cli/arduino/cli"
"github.com/arduino/arduino-cloud-cli/config"
"github.com/arduino/arduino-cloud-cli/internal/iot"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
"github.com/sirupsen/logrus"
"go.bug.st/serial"
)
Expand Down
2 changes: 1 addition & 1 deletion command/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package device

import (
"github.com/arduino/arduino-cloud-cli/command/tag"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
)

// DeviceInfo contains the most interesting
Expand Down
2 changes: 1 addition & 1 deletion command/device/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/arduino/arduino-cloud-cli/internal/binary"
"github.com/arduino/arduino-cloud-cli/internal/serial"
"github.com/arduino/go-paths-helper"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion command/ota/massupload.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/arduino/arduino-cloud-cli/internal/ota"
otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api"

iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion command/ota/massupload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"

otaapi "github.com/arduino/arduino-cloud-cli/internal/ota-api"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
"github.com/gofrs/uuid"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion command/template/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/arduino/arduino-cloud-cli/config"
"github.com/arduino/arduino-cloud-cli/internal/iot"
storageapi "github.com/arduino/arduino-cloud-cli/internal/storage-api"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
"github.com/gofrs/uuid"
"github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion command/thing/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/arduino/arduino-cloud-cli/config"

"github.com/arduino/arduino-cloud-cli/internal/iot"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
)

// BindParams contains the parameters needed to
Expand Down
2 changes: 1 addition & 1 deletion command/thing/thing.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package thing

import (
"github.com/arduino/arduino-cloud-cli/command/tag"
iotclient "github.com/arduino/iot-client-go/v2"
iotclient "github.com/arduino/iot-client-go/v3"
)

// ThingInfo contains the main parameters of
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/arduino/arduino-cloud-cli

go 1.23.0
go 1.23

require (
github.com/arduino/arduino-cli v0.0.0-20240927141754-d9dd4ba1ed71
github.com/arduino/go-paths-helper v1.12.1
github.com/arduino/go-win32-utils v1.0.0
github.com/arduino/iot-client-go/v2 v2.0.3
github.com/arduino/iot-client-go/v3 v3.0.0
github.com/gofrs/uuid v4.2.0+incompatible
github.com/google/go-cmp v0.6.0
github.com/howeyc/crc16 v0.0.0-20171223171357-2b2a61e366a6
Expand All @@ -19,7 +19,7 @@ require (
go.bug.st/cleanup v1.0.0
go.bug.st/serial v1.6.2
golang.org/x/crypto v0.18.0
golang.org/x/oauth2 v0.21.0
golang.org/x/oauth2 v0.23.0
google.golang.org/grpc v1.61.0
gopkg.in/yaml.v3 v3.0.1
gotest.tools v2.2.0+incompatible
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ github.com/arduino/go-properties-orderedmap v1.7.1 h1:HQ9Pn/mk3+XyfrE39EEvaZwJkr
github.com/arduino/go-properties-orderedmap v1.7.1/go.mod h1:DKjD2VXY/NZmlingh4lSFMEYCVubfeArCsGPGDwb2yk=
github.com/arduino/go-win32-utils v1.0.0 h1:/cXB86sOJxOsCHP7sQmXGLkdValwJt56mIwOHYxgQjQ=
github.com/arduino/go-win32-utils v1.0.0/go.mod h1:0jqM7doGEAs6DaJCxxhLBUDS5OawrqF48HqXkcEie/Q=
github.com/arduino/iot-client-go/v2 v2.0.3 h1:/mYkInEgr2a4s3bSFhjCzynBApPcYlpDwsuTQiyMbag=
github.com/arduino/iot-client-go/v2 v2.0.3/go.mod h1:kwX4B2AVEWl5ug94QbQ087xbvLFa9Co//jhbM/Z2eSQ=
github.com/arduino/iot-client-go/v3 v3.0.0 h1:vZ4CWrHOSi2B8rRVzFY5l5fFSNYKYXWOyJ0V39E2JAs=
github.com/arduino/iot-client-go/v3 v3.0.0/go.mod h1:r2QEAP5Jalkr0YWNPhFl0EJzFRQNy24wN5CVbn11f64=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc=
Expand Down Expand Up @@ -582,8 +582,8 @@ golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs=
golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs=
golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
Loading

0 comments on commit 2c70c55

Please sign in to comment.