diff --git a/README.md b/README.md index 28b945b5..506c7a20 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Aerospike Go Client v6 -[![Aerospike Client Go](https://goreportcard.com/badge/github.com/aerospike/aerospike-client-go/v6)](https://goreportcard.com/report/github.com/aerospike/aerospike-client-go/v6) -[![Godoc](https://godoc.org/github.com/aerospike/aerospike-client-go/v6?status.svg)](https://pkg.go.dev/github.com/aerospike/aerospike-client-go/v6) +[![Aerospike Client Go](https://goreportcard.com/badge/github.com/aerospike/aerospike-client-go/v7)](https://goreportcard.com/report/github.com/aerospike/aerospike-client-go/v7) +[![Godoc](https://godoc.org/github.com/aerospike/aerospike-client-go/v7?status.svg)](https://pkg.go.dev/github.com/aerospike/aerospike-client-go/v7) An Aerospike library for Go. This library is compatible with Go 1.19+ and supports the following operating systems: Linux, Mac OS X (Windows builds are possible, but untested). -Up-to-date documentation is available in the [![Godoc](https://godoc.org/github.com/aerospike/aerospike-client-go/v6?status.svg)](https://pkg.go.dev/github.com/aerospike/aerospike-client-go/v6). +Up-to-date documentation is available in the [![Godoc](https://godoc.org/github.com/aerospike/aerospike-client-go/v7?status.svg)](https://pkg.go.dev/github.com/aerospike/aerospike-client-go/v7). You can refer to the test files for idiomatic use cases. @@ -36,7 +36,7 @@ package main import ( "fmt" - aero "github.com/aerospike/aerospike-client-go/v6" + aero "github.com/aerospike/aerospike-client-go/v7" ) // This is only for this example. diff --git a/admin_command.go b/admin_command.go index 3a2c086b..ca1e7077 100644 --- a/admin_command.go +++ b/admin_command.go @@ -19,9 +19,9 @@ import ( "fmt" "time" - "github.com/aerospike/aerospike-client-go/v6/pkg/bcrypt" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/pkg/bcrypt" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) const ( diff --git a/aerospike_bench_reflect_test.go b/aerospike_bench_reflect_test.go index 4751773c..9f735e65 100644 --- a/aerospike_bench_reflect_test.go +++ b/aerospike_bench_reflect_test.go @@ -20,7 +20,7 @@ package aerospike_test import ( "runtime" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" "testing" ) diff --git a/aerospike_bench_test.go b/aerospike_bench_test.go index f5817967..0374bf9d 100644 --- a/aerospike_bench_test.go +++ b/aerospike_bench_test.go @@ -17,7 +17,7 @@ package aerospike_test import ( "runtime" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" "testing" ) diff --git a/aerospike_suite_test.go b/aerospike_suite_test.go index a62356c3..52050fc0 100644 --- a/aerospike_suite_test.go +++ b/aerospike_suite_test.go @@ -31,9 +31,9 @@ import ( "testing" "time" - as "github.com/aerospike/aerospike-client-go/v6" - asl "github.com/aerospike/aerospike-client-go/v6/logger" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + asl "github.com/aerospike/aerospike-client-go/v7/logger" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/anonymous_fields_test.go b/anonymous_fields_test.go index d9a67779..51bdb03a 100644 --- a/anonymous_fields_test.go +++ b/anonymous_fields_test.go @@ -18,7 +18,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/batch_command_delete.go b/batch_command_delete.go index 7fcdae0a..d5fad935 100644 --- a/batch_command_delete.go +++ b/batch_command_delete.go @@ -15,8 +15,8 @@ package aerospike import ( - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type batchCommandDelete struct { diff --git a/batch_command_exists.go b/batch_command_exists.go index d48c0b5a..0ed589a6 100644 --- a/batch_command_exists.go +++ b/batch_command_exists.go @@ -15,8 +15,8 @@ package aerospike import ( - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type batchCommandExists struct { diff --git a/batch_command_get.go b/batch_command_get.go index 118a6351..c6486505 100644 --- a/batch_command_get.go +++ b/batch_command_get.go @@ -17,8 +17,8 @@ package aerospike import ( "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type batchCommandGet struct { diff --git a/batch_command_get_reflect.go b/batch_command_get_reflect.go index a82aee20..1e8cf458 100644 --- a/batch_command_get_reflect.go +++ b/batch_command_get_reflect.go @@ -20,7 +20,7 @@ package aerospike import ( "reflect" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // if this file is included in the build, it will include this method diff --git a/batch_command_operate.go b/batch_command_operate.go index a0157034..8cfe8ce6 100644 --- a/batch_command_operate.go +++ b/batch_command_operate.go @@ -18,9 +18,9 @@ import ( "math/rand" "reflect" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type batchCommandOperate struct { diff --git a/batch_command_reflect.go b/batch_command_reflect.go index da8a3825..ba0675fb 100644 --- a/batch_command_reflect.go +++ b/batch_command_reflect.go @@ -20,7 +20,7 @@ package aerospike import ( "reflect" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // this function will only be set if the performance flag is not passed for build diff --git a/batch_command_udf.go b/batch_command_udf.go index 785c3ba5..cab4af33 100644 --- a/batch_command_udf.go +++ b/batch_command_udf.go @@ -15,8 +15,8 @@ package aerospike import ( - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type batchCommandUDF struct { diff --git a/batch_node_list.go b/batch_node_list.go index b8a5e0df..7ecd66a6 100644 --- a/batch_node_list.go +++ b/batch_node_list.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" func newBatchNodeList(cluster *Cluster, policy *BatchPolicy, keys []*Key, records []*BatchRecord, hasWrite bool) ([]*batchNode, Error) { nodes := cluster.GetNodes() diff --git a/batch_policy.go b/batch_policy.go index aceb3c13..eb1f73f3 100644 --- a/batch_policy.go +++ b/batch_policy.go @@ -15,7 +15,7 @@ package aerospike import ( - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // BatchPolicy encapsulates parameters for policy attributes used in write operations. diff --git a/batch_read.go b/batch_read.go index 296af117..d47d8f46 100644 --- a/batch_read.go +++ b/batch_read.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // BatchRead specifies the Key and bin names used in batch read commands diff --git a/batch_record.go b/batch_record.go index 618c9776..a9b867f5 100644 --- a/batch_record.go +++ b/batch_record.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) type batchRecordType byte diff --git a/batch_test.go b/batch_test.go index 1d1bbc84..cdfd9443 100644 --- a/batch_test.go +++ b/batch_test.go @@ -20,8 +20,8 @@ import ( "strings" "time" - as "github.com/aerospike/aerospike-client-go/v6" - "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/batch_write.go b/batch_write.go index 740b5a2d..215f6808 100644 --- a/batch_write.go +++ b/batch_write.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" var _ BatchRecordIfc = &BatchWrite{} diff --git a/bench_batchget_test.go b/bench_batchget_test.go index 3cf7e93f..83fbe865 100644 --- a/bench_batchget_test.go +++ b/bench_batchget_test.go @@ -22,7 +22,7 @@ import ( _ "net/http/pprof" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func makeDataForBatchGetBench(set string, bins []*as.Bin) { diff --git a/bench_cdt_list_test.go b/bench_cdt_list_test.go index f5d9ceeb..d231256c 100644 --- a/bench_cdt_list_test.go +++ b/bench_cdt_list_test.go @@ -21,7 +21,7 @@ import ( // "time" _ "net/http/pprof" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var list []as.Value diff --git a/bench_get_test.go b/bench_get_test.go index 7814b25d..66f2ca08 100644 --- a/bench_get_test.go +++ b/bench_get_test.go @@ -22,7 +22,7 @@ import ( _ "net/http/pprof" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func makeDataForGetBench(set string, bins []*as.Bin) { diff --git a/bench_key_test.go b/bench_key_test.go index fa66b93d..f845ed07 100644 --- a/bench_key_test.go +++ b/bench_key_test.go @@ -18,9 +18,9 @@ import ( "strings" "testing" - as "github.com/aerospike/aerospike-client-go/v6" - "github.com/aerospike/aerospike-client-go/v6/pkg/ripemd160" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + as "github.com/aerospike/aerospike-client-go/v7" + "github.com/aerospike/aerospike-client-go/v7/pkg/ripemd160" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" ) var str = strings.Repeat("abcd", 128) diff --git a/bench_rand_gen_test.go b/bench_rand_gen_test.go index ef3fe8e0..2d99cbf0 100644 --- a/bench_rand_gen_test.go +++ b/bench_rand_gen_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - xor "github.com/aerospike/aerospike-client-go/v6/types/rand" + xor "github.com/aerospike/aerospike-client-go/v7/types/rand" ) func Benchmark_math_rand(b *testing.B) { diff --git a/bench_recordset_test.go b/bench_recordset_test.go index 1cdd4937..153a9b3b 100644 --- a/bench_recordset_test.go +++ b/bench_recordset_test.go @@ -21,7 +21,7 @@ import ( // "time" _ "net/http/pprof" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" // _ "github.com/influxdata/influxdb/client" ) diff --git a/buffered_connection.go b/buffered_connection.go index b46e7a04..681bcfe3 100644 --- a/buffered_connection.go +++ b/buffered_connection.go @@ -17,8 +17,8 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) type bufferedConn struct { diff --git a/cdt_bitwise_test.go b/cdt_bitwise_test.go index 1eca1789..43d06e72 100644 --- a/cdt_bitwise_test.go +++ b/cdt_bitwise_test.go @@ -20,8 +20,8 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) var _ = gg.Describe("CDT Bitwise Test", func() { diff --git a/cdt_context.go b/cdt_context.go index 11a2decf..32939982 100644 --- a/cdt_context.go +++ b/cdt_context.go @@ -19,7 +19,7 @@ import ( "encoding/base64" "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) const ( diff --git a/cdt_context_test.go b/cdt_context_test.go index 830def62..f3f70092 100644 --- a/cdt_context_test.go +++ b/cdt_context_test.go @@ -18,7 +18,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var _ = gg.Describe("CDTContext Test", func() { diff --git a/cdt_list_test.go b/cdt_list_test.go index 88f6980e..99c2ead6 100644 --- a/cdt_list_test.go +++ b/cdt_list_test.go @@ -21,7 +21,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var _ = gg.Describe("CDT List Test", func() { diff --git a/cdt_map_test.go b/cdt_map_test.go index 71b5a60c..70761e22 100644 --- a/cdt_map_test.go +++ b/cdt_map_test.go @@ -18,7 +18,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) const udfCDTTests = ` diff --git a/client.go b/client.go index 54034b4c..051b58de 100644 --- a/client.go +++ b/client.go @@ -25,8 +25,8 @@ import ( "strings" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Client encapsulates an Aerospike cluster. diff --git a/client_appengine_exclusions.go b/client_appengine_exclusions.go index 56c877e1..9da8f8cd 100644 --- a/client_appengine_exclusions.go +++ b/client_appengine_exclusions.go @@ -23,8 +23,8 @@ import ( "golang.org/x/sync/semaphore" - lualib "github.com/aerospike/aerospike-client-go/v6/internal/lua" - "github.com/aerospike/aerospike-client-go/v6/logger" + lualib "github.com/aerospike/aerospike-client-go/v7/internal/lua" + "github.com/aerospike/aerospike-client-go/v7/logger" lua "github.com/yuin/gopher-lua" ) diff --git a/client_builder.go b/client_builder.go index af19fc0c..b3dafd66 100644 --- a/client_builder.go +++ b/client_builder.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" // ClientType determines the type of client to build. type ClientType int diff --git a/client_object_test.go b/client_object_test.go index f970b8f3..a5eb7be4 100644 --- a/client_object_test.go +++ b/client_object_test.go @@ -22,7 +22,7 @@ import ( "strconv" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/client_reflect.go b/client_reflect.go index ee179742..e1ab64bb 100644 --- a/client_reflect.go +++ b/client_reflect.go @@ -20,7 +20,7 @@ package aerospike import ( "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // PutObject writes record bin(s) to the server. diff --git a/client_reflect_test.go b/client_reflect_test.go index ea95e159..0e7bc812 100644 --- a/client_reflect_test.go +++ b/client_reflect_test.go @@ -22,7 +22,7 @@ import ( "math" "strings" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/client_test.go b/client_test.go index 2042a55b..a0797ceb 100644 --- a/client_test.go +++ b/client_test.go @@ -24,9 +24,9 @@ import ( "strings" "time" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" - asub "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" + asub "github.com/aerospike/aerospike-client-go/v7/utils/buffer" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/cluster.go b/cluster.go index 7cf09449..159e23f3 100644 --- a/cluster.go +++ b/cluster.go @@ -24,9 +24,9 @@ import ( "golang.org/x/sync/errgroup" - iatomic "github.com/aerospike/aerospike-client-go/v6/internal/atomic" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + iatomic "github.com/aerospike/aerospike-client-go/v7/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Cluster encapsulates the aerospike cluster nodes and manages diff --git a/command.go b/command.go index c50f3b7b..979876b3 100644 --- a/command.go +++ b/command.go @@ -22,11 +22,11 @@ import ( "fmt" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) const ( diff --git a/commit_policy.go b/commit_policy.go index 7022761c..a383fbfe 100644 --- a/commit_policy.go +++ b/commit_policy.go @@ -17,7 +17,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // CommitLevel indicates the desired consistency guarantee when committing a transaction on the server. type CommitLevel int diff --git a/complex_index_test.go b/complex_index_test.go index 5200b279..144b59b0 100644 --- a/complex_index_test.go +++ b/complex_index_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/complex_query_test.go b/complex_query_test.go index 1f8e2516..2adff807 100644 --- a/complex_query_test.go +++ b/complex_query_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/connection.go b/connection.go index 484f6011..c3c576a2 100644 --- a/connection.go +++ b/connection.go @@ -25,8 +25,8 @@ import ( "sync" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) // DefaultBufferSize specifies the initial size of the connection buffer when it is created. diff --git a/delete_command.go b/delete_command.go index 309c1b2b..62745970 100644 --- a/delete_command.go +++ b/delete_command.go @@ -17,10 +17,10 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // guarantee deleteCommand implements command interface diff --git a/docs/README.md b/docs/README.md index cd3edbab..10a5f950 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,7 +8,7 @@ This package describes the Aerospike Go Client API in detail. The aerospike Go client package is the main entry point to the client API. ```go - import as "github.com/aerospike/aerospike-client-go/v6" + import as "github.com/aerospike/aerospike-client-go/v7" ``` Before connecting to a cluster, you must import the package. diff --git a/docs/aerospike.md b/docs/aerospike.md index 83387a90..00448d7a 100644 --- a/docs/aerospike.md +++ b/docs/aerospike.md @@ -15,7 +15,7 @@ The aerospike package can be imported into your project via: ```go - import as "github.com/aerospike/aerospike-client-go/v6" + import as "github.com/aerospike/aerospike-client-go/v7" ``` diff --git a/docs/log.md b/docs/log.md index 0dfd37bb..2830a31f 100644 --- a/docs/log.md +++ b/docs/log.md @@ -4,7 +4,7 @@ Various log levels available to log from the Aerospike API. Default is set to OFF. ```go - import asl "github.com/aerospike/aerospike-client-go/v6/logger" + import asl "github.com/aerospike/aerospike-client-go/v7/logger" asl.Logger.SetLevel(asl.OFF) ``` diff --git a/error.go b/error.go index b1f37737..7cd7c7c1 100644 --- a/error.go +++ b/error.go @@ -22,8 +22,8 @@ import ( "strconv" "strings" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" grpc "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/error_test.go b/error_test.go index 4b2bcad1..fa57970b 100644 --- a/error_test.go +++ b/error_test.go @@ -17,7 +17,7 @@ package aerospike import ( "errors" - ast "github.com/aerospike/aerospike-client-go/v6/types" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/example_client_test.go b/example_client_test.go index 3f2d6215..d6f55959 100644 --- a/example_client_test.go +++ b/example_client_test.go @@ -21,7 +21,7 @@ import ( "fmt" "log" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func ExampleClient_Add() { diff --git a/example_listiter_int_test.go b/example_listiter_int_test.go index cadb4a10..0d7aa123 100644 --- a/example_listiter_int_test.go +++ b/example_listiter_int_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) /* diff --git a/example_listiter_string_test.go b/example_listiter_string_test.go index 2593f3f7..252e8207 100644 --- a/example_listiter_string_test.go +++ b/example_listiter_string_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) /* diff --git a/example_listiter_time_test.go b/example_listiter_time_test.go index e14af2f4..ab12cdf9 100644 --- a/example_listiter_time_test.go +++ b/example_listiter_time_test.go @@ -19,7 +19,7 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) /* diff --git a/example_mapiter_test.go b/example_mapiter_test.go index e8a8e009..f4914a4f 100644 --- a/example_mapiter_test.go +++ b/example_mapiter_test.go @@ -19,7 +19,7 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) /* diff --git a/example_pagination_cursor_test.go b/example_pagination_cursor_test.go index 157849b4..6da9dac7 100644 --- a/example_pagination_cursor_test.go +++ b/example_pagination_cursor_test.go @@ -18,7 +18,7 @@ import ( "fmt" "log" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func ExamplePartitionFilter_EncodeCursor() { diff --git a/examples/add/add.go b/examples/add/add.go index a5f084be..a3f561f4 100644 --- a/examples/add/add.go +++ b/examples/add/add.go @@ -20,8 +20,8 @@ package main import ( "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/append/append.go b/examples/append/append.go index b51a1383..e106bc33 100644 --- a/examples/append/append.go +++ b/examples/append/append.go @@ -20,8 +20,8 @@ package main import ( "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/batch/batch.go b/examples/batch/batch.go index 42b02544..7d875d3e 100644 --- a/examples/batch/batch.go +++ b/examples/batch/batch.go @@ -21,9 +21,9 @@ import ( "log" "strconv" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" - asl "github.com/aerospike/aerospike-client-go/v6/logger" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" + asl "github.com/aerospike/aerospike-client-go/v7/logger" ) func main() { diff --git a/examples/blob/blob.go b/examples/blob/blob.go index d76db3ff..509a16bd 100644 --- a/examples/blob/blob.go +++ b/examples/blob/blob.go @@ -15,7 +15,7 @@ package main import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) // Person is a custom data type to be converted to a blob diff --git a/examples/count_set_objects/count_set_objects_using_request_info.go b/examples/count_set_objects/count_set_objects_using_request_info.go index 0c62586a..f5cb04a8 100644 --- a/examples/count_set_objects/count_set_objects_using_request_info.go +++ b/examples/count_set_objects/count_set_objects_using_request_info.go @@ -6,8 +6,8 @@ import ( "strconv" "strings" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/custom_list_iter/custom_list_iter.go b/examples/custom_list_iter/custom_list_iter.go index 0e9562fb..041d7050 100644 --- a/examples/custom_list_iter/custom_list_iter.go +++ b/examples/custom_list_iter/custom_list_iter.go @@ -22,8 +22,8 @@ import ( "reflect" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) var ( diff --git a/examples/expire/expire.go b/examples/expire/expire.go index 11b4f915..59e70437 100644 --- a/examples/expire/expire.go +++ b/examples/expire/expire.go @@ -22,9 +22,9 @@ import ( "math" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) func main() { diff --git a/examples/expressions/expressions.go b/examples/expressions/expressions.go index ae1dba52..4b8a8dee 100644 --- a/examples/expressions/expressions.go +++ b/examples/expressions/expressions.go @@ -21,8 +21,8 @@ import ( "log" "strings" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/generation/generation.go b/examples/generation/generation.go index 99a005fc..fa4f9a14 100644 --- a/examples/generation/generation.go +++ b/examples/generation/generation.go @@ -21,9 +21,9 @@ import ( "errors" "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) func main() { diff --git a/examples/geojson_query/geojson_query.go b/examples/geojson_query/geojson_query.go index f5e883a8..1afece68 100644 --- a/examples/geojson_query/geojson_query.go +++ b/examples/geojson_query/geojson_query.go @@ -18,8 +18,8 @@ package main import ( "log" - as "github.com/aerospike/aerospike-client-go/v6" - "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/get/get.go b/examples/get/get.go index 3af29fc2..4c6847b3 100644 --- a/examples/get/get.go +++ b/examples/get/get.go @@ -20,7 +20,7 @@ import ( "os" "strconv" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var ( diff --git a/examples/info/info.go b/examples/info/info.go index f4e0b353..8a24b309 100644 --- a/examples/info/info.go +++ b/examples/info/info.go @@ -18,7 +18,7 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func main() { diff --git a/examples/list_map/list_map.go b/examples/list_map/list_map.go index 53236923..9ad559ab 100644 --- a/examples/list_map/list_map.go +++ b/examples/list_map/list_map.go @@ -21,8 +21,8 @@ import ( "bytes" "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/operate/operate.go b/examples/operate/operate.go index 717ec156..c180a277 100644 --- a/examples/operate/operate.go +++ b/examples/operate/operate.go @@ -20,8 +20,8 @@ package main import ( "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/prepend/prepend.go b/examples/prepend/prepend.go index 7b65667e..430d3ce3 100644 --- a/examples/prepend/prepend.go +++ b/examples/prepend/prepend.go @@ -20,8 +20,8 @@ package main import ( "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/put/put.go b/examples/put/put.go index 4800d317..ea1a42a1 100644 --- a/examples/put/put.go +++ b/examples/put/put.go @@ -21,7 +21,7 @@ import ( "os" "strconv" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var ( diff --git a/examples/putget/putget.go b/examples/putget/putget.go index 64779d02..ede57ee9 100644 --- a/examples/putget/putget.go +++ b/examples/putget/putget.go @@ -22,8 +22,8 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/query-aggregate/average/average.go b/examples/query-aggregate/average/average.go index 3a61e9bd..e5b39060 100644 --- a/examples/query-aggregate/average/average.go +++ b/examples/query-aggregate/average/average.go @@ -22,8 +22,8 @@ import ( "os" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) const keyCount = 1000 diff --git a/examples/query-aggregate/single_bin_sum/single_bin_sum.go b/examples/query-aggregate/single_bin_sum/single_bin_sum.go index bc1b0569..9099aeb8 100644 --- a/examples/query-aggregate/single_bin_sum/single_bin_sum.go +++ b/examples/query-aggregate/single_bin_sum/single_bin_sum.go @@ -22,8 +22,8 @@ import ( "os" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) const keyCount = 1000 diff --git a/examples/replace/replace.go b/examples/replace/replace.go index e73056fe..8966a3ae 100644 --- a/examples/replace/replace.go +++ b/examples/replace/replace.go @@ -21,9 +21,9 @@ import ( "errors" "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) func main() { diff --git a/examples/scan_paginate/scan_paginate.go b/examples/scan_paginate/scan_paginate.go index a951d21b..d95adeb3 100644 --- a/examples/scan_paginate/scan_paginate.go +++ b/examples/scan_paginate/scan_paginate.go @@ -21,8 +21,8 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/scan_parallel/scan_parallel.go b/examples/scan_parallel/scan_parallel.go index 82e51d36..3dd36128 100644 --- a/examples/scan_parallel/scan_parallel.go +++ b/examples/scan_parallel/scan_parallel.go @@ -21,8 +21,8 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/scan_serial/scan_serial.go b/examples/scan_serial/scan_serial.go index 6b382b5d..3f2d0092 100644 --- a/examples/scan_serial/scan_serial.go +++ b/examples/scan_serial/scan_serial.go @@ -21,8 +21,8 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/shared/shared.go b/examples/shared/shared.go index a018f74d..47daa04d 100644 --- a/examples/shared/shared.go +++ b/examples/shared/shared.go @@ -27,7 +27,7 @@ import ( "runtime" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) // WritePolicy is shared for all examples diff --git a/examples/simple/simple.go b/examples/simple/simple.go index fe073ae6..2107840f 100644 --- a/examples/simple/simple.go +++ b/examples/simple/simple.go @@ -17,7 +17,7 @@ package main import ( "fmt" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) func main() { diff --git a/examples/tls_secure_connection/tls_secure_connection.go b/examples/tls_secure_connection/tls_secure_connection.go index bbd4e44e..5b3f1710 100644 --- a/examples/tls_secure_connection/tls_secure_connection.go +++ b/examples/tls_secure_connection/tls_secure_connection.go @@ -26,7 +26,7 @@ import ( "os" "path/filepath" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" ) var host = flag.String("h", "127.0.0.1", "Aerospike server seed hostnames or IP addresses") diff --git a/examples/touch/touch.go b/examples/touch/touch.go index 19463c20..9b9ab62c 100644 --- a/examples/touch/touch.go +++ b/examples/touch/touch.go @@ -21,8 +21,8 @@ import ( "log" "time" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) func main() { diff --git a/examples/udf/udf.go b/examples/udf/udf.go index bd7b5615..dc0a5115 100644 --- a/examples/udf/udf.go +++ b/examples/udf/udf.go @@ -21,8 +21,8 @@ import ( "bytes" "log" - as "github.com/aerospike/aerospike-client-go/v6" - shared "github.com/aerospike/aerospike-client-go/v6/examples/shared" + as "github.com/aerospike/aerospike-client-go/v7" + shared "github.com/aerospike/aerospike-client-go/v7/examples/shared" ) const udf = ` @@ -57,8 +57,8 @@ end -- Set a particular bin only if record does not already exist. function writeUnique(r,name,value) - if not aerospike:exists(r) then - aerospike:create(r) + if not aerospike:exists(r) then + aerospike:create(r) r[name] = value aerospike:update(r) end @@ -69,14 +69,14 @@ function writeWithValidation(r,name,value) if (value >= 1 and value <= 10) then putBin(r,name,value) else - error("1000:Invalid value") + error("1000:Invalid value") end end -- Record contains two integer bins, name1 and name2. -- For name1 even integers, add value to existing name1 bin. -- For name1 integers with a multiple of 5, delete name2 bin. --- For name1 integers with a multiple of 9, delete record. +-- For name1 integers with a multiple of 9, delete record. function processRecord(r,name1,name2,addValue) local v = r[name1] diff --git a/execute_command.go b/execute_command.go index c9232906..109fdd44 100644 --- a/execute_command.go +++ b/execute_command.go @@ -17,7 +17,7 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) type executeCommand struct { diff --git a/execute_task.go b/execute_task.go index d9855552..043474cb 100644 --- a/execute_task.go +++ b/execute_task.go @@ -21,8 +21,8 @@ import ( "strings" "time" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" ) // ExecuteTask is used to poll for long running server execute job completion. diff --git a/exists_command.go b/exists_command.go index 89591b93..0a4db9c8 100644 --- a/exists_command.go +++ b/exists_command.go @@ -17,10 +17,10 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // guarantee existsCommand implements command interface diff --git a/exp_bit_test.go b/exp_bit_test.go index f9bee446..c0cef8f7 100644 --- a/exp_bit_test.go +++ b/exp_bit_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/exp_hll_test.go b/exp_hll_test.go index c5107fcd..9b8410c5 100644 --- a/exp_hll_test.go +++ b/exp_hll_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/exp_list.go b/exp_list.go index a9ac8302..5c0b9566 100644 --- a/exp_list.go +++ b/exp_list.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) const expListMODULE int64 = 0 diff --git a/exp_list_test.go b/exp_list_test.go index 17fda0c4..dd78e7fd 100644 --- a/exp_list_test.go +++ b/exp_list_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/exp_map.go b/exp_map.go index 8adc99cc..658f2015 100644 --- a/exp_map.go +++ b/exp_map.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) const expMapMODULE int64 = 0 diff --git a/exp_map_test.go b/exp_map_test.go index 10ad0968..fa7f7633 100644 --- a/exp_map_test.go +++ b/exp_map_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/exp_ops_test.go b/exp_ops_test.go index 7b072d3e..2b62ba64 100644 --- a/exp_ops_test.go +++ b/exp_ops_test.go @@ -21,8 +21,8 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) const udfPredexpBody = `local function putBin(r,name,value) @@ -56,8 +56,8 @@ end -- Set a particular bin only if record does not already exist. function writeUnique(r,name,value) - if not aerospike:exists(r) then - aerospike:create(r) + if not aerospike:exists(r) then + aerospike:create(r) r[name] = value aerospike:update(r) end @@ -68,14 +68,14 @@ function writeWithValidation(r,name,value) if (value >= 1 and value <= 10) then putBin(r,name,value) else - error("1000:Invalid value") + error("1000:Invalid value") end end -- Record contains two integer bins, name1 and name2. -- For name1 even integers, add value to existing name1 bin. -- For name1 integers with a multiple of 5, delete name2 bin. --- For name1 integers with a multiple of 9, delete record. +-- For name1 integers with a multiple of 9, delete record. function processRecord(r,name1,name2,addValue) local v = r[name1] diff --git a/expression.go b/expression.go index 78400c1f..e0500f0c 100644 --- a/expression.go +++ b/expression.go @@ -17,8 +17,8 @@ package aerospike import ( "encoding/base64" - "github.com/aerospike/aerospike-client-go/v6/types" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + "github.com/aerospike/aerospike-client-go/v7/types" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" ) // ExpressionArgument is used for passing arguments to filter expressions. diff --git a/expression_ops_test.go b/expression_ops_test.go index cf6a59e7..d4e39811 100644 --- a/expression_ops_test.go +++ b/expression_ops_test.go @@ -15,8 +15,8 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/expression_test.go b/expression_test.go index 002d424e..75c4cf43 100644 --- a/expression_test.go +++ b/expression_test.go @@ -18,8 +18,8 @@ import ( "fmt" "time" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/filter.go b/filter.go index b1009950..f341e865 100644 --- a/filter.go +++ b/filter.go @@ -17,8 +17,8 @@ package aerospike import ( "fmt" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" ) // Filter specifies a query filter definition. diff --git a/generation_policy.go b/generation_policy.go index cd979c55..58187f6a 100644 --- a/generation_policy.go +++ b/generation_policy.go @@ -14,7 +14,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // GenerationPolicy determines how to handle record writes based on record generation. type GenerationPolicy int diff --git a/geo_test.go b/geo_test.go index c4e94e41..1e5793ec 100644 --- a/geo_test.go +++ b/geo_test.go @@ -17,7 +17,7 @@ package aerospike_test import ( "fmt" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/go.mod b/go.mod index c573bfa8..d7dd8f47 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,9 @@ -module github.com/aerospike/aerospike-client-go/v6 +module github.com/aerospike/aerospike-client-go/v7 go 1.21 require ( + github.com/aerospike/aerospike-client-go/v6 v6.14.1 github.com/onsi/ginkgo/v2 v2.13.0 github.com/onsi/gomega v1.29.0 github.com/yuin/gopher-lua v1.1.1 @@ -17,21 +18,12 @@ require ( github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect - github.com/kr/pretty v0.1.0 // indirect + github.com/kr/text v0.1.0 // indirect github.com/stretchr/testify v1.8.4 // indirect golang.org/x/net v0.19.0 // indirect golang.org/x/sys v0.15.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/tools v0.14.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -retract ( - // Scan/Query/Other streaming commands could put a faulty connection back to the pool after a cluster event where in certain conditions its contents would end up in another scan and mix the results. - [v6.2.1, v6.3.0] - - // Theis release contains major bugs in `BatchOperate` and Scan/Query. Update to the latest version. - [v6.0.0, v6.2.0] -) diff --git a/go.sum b/go.sum index c7146f98..182a2c42 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/aerospike/aerospike-client-go/v6 v6.14.1 h1:1DB9rgbPcCSjR7QS+2CL4MM4atdVcRiWa2AVKO7ydyY= +github.com/aerospike/aerospike-client-go/v6 v6.14.1/go.mod h1:/0Wm81GhMqem+9flWcpazPKoRfjFeG6WrQdXGiMNi0A= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= diff --git a/hll_operation.go b/hll_operation.go index dee3cfc1..c32e079c 100644 --- a/hll_operation.go +++ b/hll_operation.go @@ -18,7 +18,7 @@ package aerospike import ( "fmt" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" ) // HyperLogLog (HLL) operations. diff --git a/hll_operation_test.go b/hll_operation_test.go index f441d77f..8bbd63f4 100644 --- a/hll_operation_test.go +++ b/hll_operation_test.go @@ -21,8 +21,8 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" ) var _ = gg.Describe("HyperLogLog Test", func() { diff --git a/host.go b/host.go index ea14fb8a..0e3e969e 100644 --- a/host.go +++ b/host.go @@ -19,7 +19,7 @@ import ( "net" "strconv" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Host name/port of database server. diff --git a/host_test.go b/host_test.go index 1cf0ef50..95c45f6b 100644 --- a/host_test.go +++ b/host_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/index_collection_type.go b/index_collection_type.go index 83d320f6..e375415c 100644 --- a/index_collection_type.go +++ b/index_collection_type.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // IndexCollectionType is the secondary index collection type. diff --git a/index_test.go b/index_test.go index 1c50e511..299f2688 100644 --- a/index_test.go +++ b/index_test.go @@ -18,7 +18,7 @@ import ( "math" "math/rand" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/info.go b/info.go index d8e27e15..79bc4697 100644 --- a/info.go +++ b/info.go @@ -20,8 +20,8 @@ import ( "strings" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) const ( diff --git a/internal/atomic/bool_test.go b/internal/atomic/bool_test.go index 54f2aa10..f78496e0 100644 --- a/internal/atomic/bool_test.go +++ b/internal/atomic/bool_test.go @@ -18,7 +18,7 @@ import ( "runtime" "sync" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/internal/atomic/int_test.go b/internal/atomic/int_test.go index fc5e889c..6e3b2ef5 100644 --- a/internal/atomic/int_test.go +++ b/internal/atomic/int_test.go @@ -18,7 +18,7 @@ import ( "runtime" "sync" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/internal/atomic/queue_test.go b/internal/atomic/queue_test.go index 5800369c..3299489f 100644 --- a/internal/atomic/queue_test.go +++ b/internal/atomic/queue_test.go @@ -17,7 +17,7 @@ package atomic_test import ( "runtime" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/internal/lua/instance.go b/internal/lua/instance.go index 89cf7bfe..7dba847b 100644 --- a/internal/lua/instance.go +++ b/internal/lua/instance.go @@ -18,9 +18,9 @@ package lua import ( - luaLib "github.com/aerospike/aerospike-client-go/v6/internal/lua/resources" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + luaLib "github.com/aerospike/aerospike-client-go/v7/internal/lua/resources" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" lua "github.com/yuin/gopher-lua" ) diff --git a/internal/lua/lua_aerospike.go b/internal/lua/lua_aerospike.go index 9695cb44..8ccb6973 100644 --- a/internal/lua/lua_aerospike.go +++ b/internal/lua/lua_aerospike.go @@ -18,7 +18,7 @@ package lua import ( - "github.com/aerospike/aerospike-client-go/v6/logger" + "github.com/aerospike/aerospike-client-go/v7/logger" lua "github.com/yuin/gopher-lua" ) diff --git a/internal/lua/lua_aerospike_test.go b/internal/lua/lua_aerospike_test.go index cd033849..db052b9e 100644 --- a/internal/lua/lua_aerospike_test.go +++ b/internal/lua/lua_aerospike_test.go @@ -23,7 +23,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - ilua "github.com/aerospike/aerospike-client-go/v6/internal/lua" + ilua "github.com/aerospike/aerospike-client-go/v7/internal/lua" ) var _ = gg.Describe("Lua Aerospike API Test", func() { diff --git a/internal/lua/lua_list_test.go b/internal/lua/lua_list_test.go index 6f043b18..da097b83 100644 --- a/internal/lua/lua_list_test.go +++ b/internal/lua/lua_list_test.go @@ -23,7 +23,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - ilua "github.com/aerospike/aerospike-client-go/v6/internal/lua" + ilua "github.com/aerospike/aerospike-client-go/v7/internal/lua" ) var _ = gg.Describe("Lua List API Test", func() { diff --git a/internal/lua/lua_map_test.go b/internal/lua/lua_map_test.go index cca57864..d73529e4 100644 --- a/internal/lua/lua_map_test.go +++ b/internal/lua/lua_map_test.go @@ -23,7 +23,7 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - ilua "github.com/aerospike/aerospike-client-go/v6/internal/lua" + ilua "github.com/aerospike/aerospike-client-go/v7/internal/lua" ) var _ = gg.Describe("Lua Map API Test", func() { diff --git a/key.go b/key.go index 475c95c3..20e7f46d 100644 --- a/key.go +++ b/key.go @@ -18,8 +18,8 @@ import ( "bytes" "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // Key is the unique record identifier. Records can be identified using a specified namespace, diff --git a/key_bench_test.go b/key_bench_test.go index 48770cff..5c9b183b 100644 --- a/key_bench_test.go +++ b/key_bench_test.go @@ -19,7 +19,7 @@ import ( "strings" "testing" - "github.com/aerospike/aerospike-client-go/v6/pkg/ripemd160" + "github.com/aerospike/aerospike-client-go/v7/pkg/ripemd160" ) var res = make([]byte, 20) diff --git a/key_helper.go b/key_helper.go index d7aa3f6b..38ead4ff 100644 --- a/key_helper.go +++ b/key_helper.go @@ -18,8 +18,8 @@ import ( "encoding/binary" "math" - "github.com/aerospike/aerospike-client-go/v6/pkg/ripemd160" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/pkg/ripemd160" + "github.com/aerospike/aerospike-client-go/v7/types" ) type keyWriter struct { diff --git a/key_test.go b/key_test.go index ea56b0a5..541e80e5 100644 --- a/key_test.go +++ b/key_test.go @@ -19,7 +19,7 @@ import ( "math" "strings" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/load_test.go b/load_test.go index c267098d..0552e2f3 100644 --- a/load_test.go +++ b/load_test.go @@ -20,7 +20,7 @@ import ( "sync" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/login_command.go b/login_command.go index a64dcf56..159cb9d2 100644 --- a/login_command.go +++ b/login_command.go @@ -17,10 +17,10 @@ package aerospike import ( "time" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type sessionInfo struct { diff --git a/multi_command.go b/multi_command.go index bca8b12f..8efc66b8 100644 --- a/multi_command.go +++ b/multi_command.go @@ -18,9 +18,9 @@ import ( "fmt" "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" - xrand "github.com/aerospike/aerospike-client-go/v6/types/rand" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + xrand "github.com/aerospike/aerospike-client-go/v7/types/rand" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type baseMultiCommand struct { diff --git a/node.go b/node.go index 616728ae..af9e9a11 100644 --- a/node.go +++ b/node.go @@ -26,9 +26,9 @@ import ( "golang.org/x/sync/errgroup" - iatomic "github.com/aerospike/aerospike-client-go/v6/internal/atomic" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + iatomic "github.com/aerospike/aerospike-client-go/v7/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) const ( diff --git a/node_stats.go b/node_stats.go index 2010a3a5..61d9ad6b 100644 --- a/node_stats.go +++ b/node_stats.go @@ -18,7 +18,7 @@ import ( "encoding/json" "sync" - iatomic "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + iatomic "github.com/aerospike/aerospike-client-go/v7/internal/atomic" ) // nodeStats keeps track of client's internal node statistics diff --git a/node_test.go b/node_test.go index f04894b1..1b2067dc 100644 --- a/node_test.go +++ b/node_test.go @@ -18,7 +18,7 @@ import ( "errors" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/node_validator.go b/node_validator.go index ece9d44f..03874211 100644 --- a/node_validator.go +++ b/node_validator.go @@ -21,8 +21,8 @@ import ( "strconv" "strings" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) type nodesToAddT map[string]*Node diff --git a/operate_command.go b/operate_command.go index 66a225f1..762dbf49 100644 --- a/operate_command.go +++ b/operate_command.go @@ -17,7 +17,7 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) type operateCommand struct { diff --git a/operation.go b/operation.go index 4e147333..333b8c5b 100644 --- a/operation.go +++ b/operation.go @@ -15,7 +15,7 @@ package aerospike import ( - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // OperationType determines operation type diff --git a/packer.go b/packer.go index d9f6cc5c..4f588c01 100644 --- a/packer.go +++ b/packer.go @@ -22,10 +22,10 @@ import ( "reflect" "time" - "github.com/aerospike/aerospike-client-go/v6/types" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + "github.com/aerospike/aerospike-client-go/v7/types" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) var packObjectReflect func(BufferEx, interface{}, bool) (int, Error) diff --git a/packer_reflect.go b/packer_reflect.go index c1b6048b..dc3104dd 100644 --- a/packer_reflect.go +++ b/packer_reflect.go @@ -21,7 +21,7 @@ import ( "fmt" "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) func init() { diff --git a/partition.go b/partition.go index bdd5027e..58396273 100644 --- a/partition.go +++ b/partition.go @@ -17,7 +17,7 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Partition encapsulates partition information. diff --git a/partition_filter.go b/partition_filter.go index a1aaade2..919bb18c 100644 --- a/partition_filter.go +++ b/partition_filter.go @@ -19,8 +19,8 @@ import ( "bytes" "encoding/gob" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" ) // PartitionFilter is used in scan/queries. This filter is also used as a cursor. diff --git a/partition_parser.go b/partition_parser.go index 4cb86d8e..7d769ffc 100644 --- a/partition_parser.go +++ b/partition_parser.go @@ -23,8 +23,8 @@ import ( "strconv" "sync" - "github.com/aerospike/aerospike-client-go/v6/logger" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + "github.com/aerospike/aerospike-client-go/v7/types" ) const ( diff --git a/partition_status.go b/partition_status.go index 18162989..a3490fca 100644 --- a/partition_status.go +++ b/partition_status.go @@ -18,7 +18,7 @@ package aerospike import ( "fmt" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // PartitionStatus encapsulates the pagination status in partitions. diff --git a/partition_tracker.go b/partition_tracker.go index 31458096..5dbda064 100644 --- a/partition_tracker.go +++ b/partition_tracker.go @@ -20,8 +20,8 @@ import ( "strings" "time" - atmc "github.com/aerospike/aerospike-client-go/v6/internal/atomic" - "github.com/aerospike/aerospike-client-go/v6/types" + atmc "github.com/aerospike/aerospike-client-go/v7/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/types" ) type partitionTracker struct { diff --git a/partitions.go b/partitions.go index ce4d8fa2..18d8b3f5 100644 --- a/partitions.go +++ b/partitions.go @@ -19,7 +19,7 @@ import ( "fmt" "strconv" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Partitions represents a list of partitions diff --git a/peers.go b/peers.go index e8cbdaf5..1dfae9bd 100644 --- a/peers.go +++ b/peers.go @@ -17,7 +17,7 @@ package aerospike import ( "sync" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" ) type peers struct { diff --git a/peers_parser.go b/peers_parser.go index 5b8d8d87..2ef89c5d 100644 --- a/peers_parser.go +++ b/peers_parser.go @@ -15,12 +15,12 @@ package aerospike import ( - // "github.com/aerospike/aerospike-client-go/v6/logger" + // "github.com/aerospike/aerospike-client-go/v7/logger" "io" "strconv" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) var aeroerr = newError(types.PARSE_ERROR, "Error parsing peers list.") diff --git a/policy.go b/policy.go index 54634d30..5076224f 100644 --- a/policy.go +++ b/policy.go @@ -18,7 +18,7 @@ import ( "context" "time" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // Policy Interface diff --git a/proto/auth/aerospike_proxy_auth.proto b/proto/auth/aerospike_proxy_auth.proto index 0eb80920..4a56bf80 100644 --- a/proto/auth/aerospike_proxy_auth.proto +++ b/proto/auth/aerospike_proxy_auth.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "github.com/aerospike/aerospike-client-go/v6/proto/auth;auth"; +option go_package = "github.com/aerospike/aerospike-client-go/v7/proto/auth;auth"; option java_package = "com.aerospike.proxy.client"; // Proxy auth service diff --git a/proto/kvs/aerospike_proxy_kv.proto b/proto/kvs/aerospike_proxy_kv.proto index fd9768de..a80dce4d 100644 --- a/proto/kvs/aerospike_proxy_kv.proto +++ b/proto/kvs/aerospike_proxy_kv.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "github.com/aerospike/aerospike-client-go/v6/proto/kvs;kvs"; +option go_package = "github.com/aerospike/aerospike-client-go/v7/proto/kvs;kvs"; option java_package = "com.aerospike.proxy.client"; // The about request message. diff --git a/proxy_auth_interceptor.go b/proxy_auth_interceptor.go index d2f5cb44..a194d977 100644 --- a/proxy_auth_interceptor.go +++ b/proxy_auth_interceptor.go @@ -24,7 +24,7 @@ import ( grpc "google.golang.org/grpc" "google.golang.org/grpc/metadata" - auth "github.com/aerospike/aerospike-client-go/v6/proto/auth" + auth "github.com/aerospike/aerospike-client-go/v7/proto/auth" ) type authInterceptor struct { diff --git a/proxy_client.go b/proxy_client.go index 2789c69b..418ed888 100644 --- a/proxy_client.go +++ b/proxy_client.go @@ -25,9 +25,9 @@ import ( "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/insecure" - iatomic "github.com/aerospike/aerospike-client-go/v6/internal/atomic" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + iatomic "github.com/aerospike/aerospike-client-go/v7/internal/atomic" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" ) // ProxyClient encapsulates an Aerospike cluster. diff --git a/proxy_client_reflect.go b/proxy_client_reflect.go index fb2f1c43..f0c70b34 100644 --- a/proxy_client_reflect.go +++ b/proxy_client_reflect.go @@ -20,7 +20,7 @@ package aerospike import ( "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" ) // PutObject writes record bin(s) to the server. diff --git a/proxy_query_partition_command.go b/proxy_query_partition_command.go index 1db2335d..0e66c27e 100644 --- a/proxy_query_partition_command.go +++ b/proxy_query_partition_command.go @@ -17,8 +17,8 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" ) type grpcQueryPartitionCommand struct { diff --git a/proxy_scan_command.go b/proxy_scan_command.go index ed13e78f..ba924f4e 100644 --- a/proxy_scan_command.go +++ b/proxy_scan_command.go @@ -17,8 +17,8 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" ) type grpcScanPartitionCommand struct { diff --git a/query_aggregate_command.go b/query_aggregate_command.go index a32b800e..34606e7f 100644 --- a/query_aggregate_command.go +++ b/query_aggregate_command.go @@ -20,9 +20,9 @@ package aerospike import ( "fmt" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" lua "github.com/yuin/gopher-lua" ) diff --git a/query_aggregate_test.go b/query_aggregate_test.go index 82a9e2fb..dd26d1a9 100644 --- a/query_aggregate_test.go +++ b/query_aggregate_test.go @@ -21,7 +21,7 @@ import ( "os" "sync" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/query_context_test.go b/query_context_test.go index 2340eabf..5a18a2ac 100644 --- a/query_context_test.go +++ b/query_context_test.go @@ -15,7 +15,7 @@ package aerospike_test import ( - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/query_objects_command.go b/query_objects_command.go index 02f8e5e2..346500de 100644 --- a/query_objects_command.go +++ b/query_objects_command.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" type queryObjectsCommand struct { queryCommand diff --git a/query_objects_executor.go b/query_objects_executor.go index af845137..f63f4731 100644 --- a/query_objects_executor.go +++ b/query_objects_executor.go @@ -19,7 +19,7 @@ import ( "sync" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" + "github.com/aerospike/aerospike-client-go/v7/logger" "golang.org/x/sync/semaphore" ) diff --git a/query_policy.go b/query_policy.go index 93aa4a21..8f2f9c18 100644 --- a/query_policy.go +++ b/query_policy.go @@ -17,7 +17,7 @@ package aerospike import ( "time" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // QueryPolicy encapsulates parameters for policy attributes used in query operations. diff --git a/query_test.go b/query_test.go index 86ea8ac1..b8c1570e 100644 --- a/query_test.go +++ b/query_test.go @@ -20,8 +20,8 @@ import ( "math" "math/rand" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/random_operation_test.go b/random_operation_test.go index 00a0e3b1..c3bfa374 100644 --- a/random_operation_test.go +++ b/random_operation_test.go @@ -19,7 +19,7 @@ import ( "strings" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/read_command.go b/read_command.go index 414a83c2..ff5d5bcf 100644 --- a/read_command.go +++ b/read_command.go @@ -19,11 +19,11 @@ import ( "math/rand" "reflect" - "github.com/aerospike/aerospike-client-go/v6/logger" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type readCommand struct { diff --git a/read_command_reflect.go b/read_command_reflect.go index 6beac7f0..1e79d4d6 100644 --- a/read_command_reflect.go +++ b/read_command_reflect.go @@ -24,8 +24,8 @@ import ( "strings" "time" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // if this file is included in the build, it will include this method diff --git a/read_header_command.go b/read_header_command.go index c353dc3e..67cb5307 100644 --- a/read_header_command.go +++ b/read_header_command.go @@ -17,10 +17,10 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type readHeaderCommand struct { diff --git a/read_mode_ap.go b/read_mode_ap.go index 028ffac0..67a78b69 100644 --- a/read_mode_ap.go +++ b/read_mode_ap.go @@ -17,7 +17,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // ReadModeAP is the read policy in AP (availability) mode namespaces. // It indicates how duplicates should be consulted in a read operation. diff --git a/read_mode_sc.go b/read_mode_sc.go index d1b8c409..6fa2dad3 100644 --- a/read_mode_sc.go +++ b/read_mode_sc.go @@ -17,7 +17,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // ReadModeSC is the read policy in SC (strong consistency) mode namespaces. // Determines SC read consistency options. diff --git a/record_exists_action.go b/record_exists_action.go index fa92a395..ce46b72a 100644 --- a/record_exists_action.go +++ b/record_exists_action.go @@ -14,7 +14,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // RecordExistsAction determines how to handle writes when // the record already exists. diff --git a/recordset.go b/recordset.go index 94c1b2ff..ad8d27e6 100644 --- a/recordset.go +++ b/recordset.go @@ -20,9 +20,9 @@ import ( "runtime" "sync" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" - xornd "github.com/aerospike/aerospike-client-go/v6/types/rand" + xornd "github.com/aerospike/aerospike-client-go/v7/types/rand" ) // Result is the value returned by Recordset's Results() function. diff --git a/recordset_test.go b/recordset_test.go index 6a3b5f51..d0f12426 100644 --- a/recordset_test.go +++ b/recordset_test.go @@ -17,7 +17,7 @@ package aerospike import ( "time" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/replica_policy.go b/replica_policy.go index 31571305..6d9b0c57 100644 --- a/replica_policy.go +++ b/replica_policy.go @@ -17,7 +17,7 @@ package aerospike -import kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" +import kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" // ReplicaPolicy defines type of node partition targeted by read commands. type ReplicaPolicy int diff --git a/scan_objects_command.go b/scan_objects_command.go index 6829ddae..662b3e7f 100644 --- a/scan_objects_command.go +++ b/scan_objects_command.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" type scanObjectsCommand struct { baseMultiCommand diff --git a/scan_objects_executor.go b/scan_objects_executor.go index 9724c6d9..5e03199c 100644 --- a/scan_objects_executor.go +++ b/scan_objects_executor.go @@ -19,7 +19,7 @@ import ( "sync" "time" - "github.com/aerospike/aerospike-client-go/v6/logger" + "github.com/aerospike/aerospike-client-go/v7/logger" "golang.org/x/sync/semaphore" ) diff --git a/scan_partition_command.go b/scan_partition_command.go index fb863b7d..10fe8fd7 100644 --- a/scan_partition_command.go +++ b/scan_partition_command.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" type scanPartitionCommand struct { baseMultiCommand diff --git a/scan_partition_objects_command.go b/scan_partition_objects_command.go index 877d7742..92ef81de 100644 --- a/scan_partition_objects_command.go +++ b/scan_partition_objects_command.go @@ -14,7 +14,7 @@ package aerospike -import "github.com/aerospike/aerospike-client-go/v6/types" +import "github.com/aerospike/aerospike-client-go/v7/types" type scanPartitionObjectsCommand scanObjectsCommand diff --git a/scan_policy.go b/scan_policy.go index c6d422a8..e5c2faf7 100644 --- a/scan_policy.go +++ b/scan_policy.go @@ -17,7 +17,7 @@ package aerospike import ( "time" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) // ScanPolicy encapsulates parameters used in scan operations. diff --git a/scan_test.go b/scan_test.go index 292d97a1..5fd2099d 100644 --- a/scan_test.go +++ b/scan_test.go @@ -19,8 +19,8 @@ import ( "math" "math/rand" - as "github.com/aerospike/aerospike-client-go/v6" - ast "github.com/aerospike/aerospike-client-go/v6/types" + as "github.com/aerospike/aerospike-client-go/v7" + ast "github.com/aerospike/aerospike-client-go/v7/types" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/security_test.go b/security_test.go index fa6f8fd5..b53c5327 100644 --- a/security_test.go +++ b/security_test.go @@ -18,7 +18,7 @@ import ( "fmt" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/server_command.go b/server_command.go index 6de81f38..d1a9ba19 100644 --- a/server_command.go +++ b/server_command.go @@ -17,9 +17,9 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type serverCommand struct { diff --git a/single_command.go b/single_command.go index da72373c..9739288a 100644 --- a/single_command.go +++ b/single_command.go @@ -15,7 +15,7 @@ package aerospike import ( - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type singleCommand struct { diff --git a/statement.go b/statement.go index 1a2cb466..159d3f8c 100644 --- a/statement.go +++ b/statement.go @@ -17,9 +17,9 @@ package aerospike import ( "fmt" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" - xornd "github.com/aerospike/aerospike-client-go/v6/types/rand" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" + xornd "github.com/aerospike/aerospike-client-go/v7/types/rand" ) // Statement encapsulates query statement parameters. diff --git a/task.go b/task.go index ffd01cdc..c019ad4a 100644 --- a/task.go +++ b/task.go @@ -17,8 +17,8 @@ package aerospike import ( "time" - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/types" ) // Task interface defines methods for asynchronous tasks. diff --git a/touch_command.go b/touch_command.go index d16a2f12..0f7cbb24 100644 --- a/touch_command.go +++ b/touch_command.go @@ -18,11 +18,11 @@ import ( "fmt" "math/rand" - "github.com/aerospike/aerospike-client-go/v6/logger" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + "github.com/aerospike/aerospike-client-go/v7/logger" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // guarantee touchCommand implements command interface diff --git a/truncate_test.go b/truncate_test.go index 4528bfe8..9978c707 100644 --- a/truncate_test.go +++ b/truncate_test.go @@ -19,7 +19,7 @@ import ( "math/rand" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/types/pool.go b/types/pool.go index 61f9a9df..ddcfd71c 100644 --- a/types/pool.go +++ b/types/pool.go @@ -15,7 +15,7 @@ package types import ( - "github.com/aerospike/aerospike-client-go/v6/internal/atomic" + "github.com/aerospike/aerospike-client-go/v7/internal/atomic" ) // Pool implements a general purpose fixed-size pool. diff --git a/udf_test.go b/udf_test.go index 906c7a23..06ab41e8 100644 --- a/udf_test.go +++ b/udf_test.go @@ -21,7 +21,7 @@ import ( "sync" "time" - as "github.com/aerospike/aerospike-client-go/v6" + as "github.com/aerospike/aerospike-client-go/v7" gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" diff --git a/unpacker.go b/unpacker.go index e31d9f63..e7a35a1b 100644 --- a/unpacker.go +++ b/unpacker.go @@ -19,10 +19,10 @@ import ( "math" "reflect" - "github.com/aerospike/aerospike-client-go/v6/types" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + "github.com/aerospike/aerospike-client-go/v7/types" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type unpacker struct { diff --git a/value.go b/value.go index f78aa330..234abbd4 100644 --- a/value.go +++ b/value.go @@ -19,10 +19,10 @@ import ( "reflect" "strconv" - "github.com/aerospike/aerospike-client-go/v6/types" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" + "github.com/aerospike/aerospike-client-go/v7/types" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // this function will be set in value_slow file if included diff --git a/value_test.go b/value_test.go index f1ff3e2e..82d72089 100644 --- a/value_test.go +++ b/value_test.go @@ -21,8 +21,8 @@ import ( gg "github.com/onsi/ginkgo/v2" gm "github.com/onsi/gomega" - ParticleType "github.com/aerospike/aerospike-client-go/v6/types/particle_type" - "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + ParticleType "github.com/aerospike/aerospike-client-go/v7/types/particle_type" + "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) type testBLOB struct { diff --git a/werrgroup.go b/werrgroup.go index f723f448..7e36d334 100644 --- a/werrgroup.go +++ b/werrgroup.go @@ -20,7 +20,7 @@ import ( "golang.org/x/sync/semaphore" - "github.com/aerospike/aerospike-client-go/v6/logger" + "github.com/aerospike/aerospike-client-go/v7/logger" ) type werrGroup struct { diff --git a/write_command.go b/write_command.go index c26716c1..6456a549 100644 --- a/write_command.go +++ b/write_command.go @@ -17,10 +17,10 @@ package aerospike import ( "math/rand" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" - "github.com/aerospike/aerospike-client-go/v6/types" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" + "github.com/aerospike/aerospike-client-go/v7/types" - Buffer "github.com/aerospike/aerospike-client-go/v6/utils/buffer" + Buffer "github.com/aerospike/aerospike-client-go/v7/utils/buffer" ) // guarantee writeCommand implements command interface diff --git a/write_policy.go b/write_policy.go index 7b76bfea..f794bbf9 100644 --- a/write_policy.go +++ b/write_policy.go @@ -18,7 +18,7 @@ import ( "math" "time" - kvs "github.com/aerospike/aerospike-client-go/v6/proto/kvs" + kvs "github.com/aerospike/aerospike-client-go/v7/proto/kvs" ) const (