Skip to content

Commit

Permalink
Update to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Dec 8, 2023
1 parent f794548 commit 311a0df
Show file tree
Hide file tree
Showing 186 changed files with 309 additions and 315 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions admin_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion aerospike_bench_reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion aerospike_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
6 changes: 3 additions & 3 deletions aerospike_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion anonymous_fields_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions batch_command_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions batch_command_exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions batch_command_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion batch_command_get_reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions batch_command_operate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion batch_command_reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions batch_command_udf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion batch_node_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion batch_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion batch_read.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion batch_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion batch_write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}

Expand Down
2 changes: 1 addition & 1 deletion bench_batchget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion bench_cdt_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bench_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions bench_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion bench_rand_gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion bench_recordset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions buffered_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cdt_bitwise_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion cdt_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cdt_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion cdt_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion cdt_map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions client_appengine_exclusions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client_object_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion client_reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client_reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 311a0df

Please sign in to comment.