Skip to content

Commit

Permalink
Rename v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi committed Mar 1, 2021
1 parent f9095dd commit 020623a
Show file tree
Hide file tree
Showing 46 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions v2/action.go → v3/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"reflect"
"time"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

// Default action return values by type
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions v2/api.go → v3/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ package kusanagi
import (
"path"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

func newApi(c Component, s *state) *Api {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions v2/component.go → v3/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ package kusanagi
import (
"fmt"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
)

// Component represents a KUSANAGI SDK generic component.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/file.go → v3/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"path/filepath"
"strings"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

func checkLocalFileExist(path string) error {
Expand Down
2 changes: 1 addition & 1 deletion v2/go.mod → v3/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kusanagi/kusanagi-sdk-go/v2
module github.com/kusanagi/kusanagi-sdk-go/v3

go 1.15

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/lib/cli/input.go → v3/lib/cli/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"fmt"
"os"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
)

// List of CLI options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package datatypes
import (
"reflect"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

// Null defines the KUSANAGI data type for null values.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/lib/log/log.go → v3/lib/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"runtime"
"time"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/json"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/json"
)

// These flags define the error levels following RFC5425.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/lib/payload/mapping.go → v3/lib/payload/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package payload
import (
"fmt"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/semver"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/semver"
)

// Mapping contains the schemas for the different services.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions v2/lib/runtime/runtime.go → v3/lib/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"fmt"
"time"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
"github.com/pebbe/zmq4"
)

Expand Down
2 changes: 1 addition & 1 deletion v2/lib/semver/version.go → v3/lib/semver/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strconv"
"strings"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
)

// Regexp to check for invalid chars in version patterns
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions v2/param.go → v3/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ package kusanagi
import (
"fmt"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

// Cast a value from one supported type to another
Expand Down
4 changes: 2 additions & 2 deletions v2/processors.go → v3/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"fmt"
"runtime/debug"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

// Flags used in multipart responses.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/request.go → v3/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strconv"
"strings"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

func newRequest(c Component, s *state) *Request {
Expand Down
2 changes: 1 addition & 1 deletion v2/response.go → v3/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strconv"
"strings"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

func newResponse(c Component, s *state) *Response {
Expand Down
8 changes: 4 additions & 4 deletions v2/runtime.go → v3/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"fmt"
"time"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/protocol"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/runtime"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/protocol"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/runtime"
)

type callResult struct {
Expand Down
6 changes: 3 additions & 3 deletions v2/schema.go → v3/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"fmt"
"strings"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/semver"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/datatypes"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/semver"
)

// ExecutionTimeout defines the number of milliseconds to wait by default when an action is executed.
Expand Down
10 changes: 5 additions & 5 deletions v2/server.go → v3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (
"syscall"
"time"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v2/lib/protocol"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/cli"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/log"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/msgpack"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/protocol"
"github.com/pebbe/zmq4"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion v2/transaction.go → v3/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

package kusanagi

import "github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
import "github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"

// Commit transaction command.
const Commit = payload.TransactionCommit
Expand Down
2 changes: 1 addition & 1 deletion v2/transport.go → v3/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package kusanagi
import (
"fmt"

"github.com/kusanagi/kusanagi-sdk-go/v2/lib/payload"
"github.com/kusanagi/kusanagi-sdk-go/v3/lib/payload"
)

// Transport encapsulates the transport object.
Expand Down
File renamed without changes.

0 comments on commit 020623a

Please sign in to comment.