Skip to content

Commit

Permalink
upgrade kvgo v1 to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
eryx committed May 12, 2024
1 parent 6b0d737 commit 91ee0df
Show file tree
Hide file tree
Showing 62 changed files with 990 additions and 763 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ iam
test.go
inagent/daemon/ssh.go
go.sum
todo.md
*.pb.rs
*.pb.thunks.cc
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROTOC_CMD = protoc
PROTOC_ARGS = --proto_path=./inapi --go_opt=paths=source_relative --go_out=./inapi --go-grpc_out=./inapi ./inapi/*.proto
PROTOC_RUST_ARGS = --proto_path=./inapi --rust_out=experimental-codegen=enabled,kernel=cpp:./inapi ./inapi/*.proto
PROTOC_ARGS = --proto_path=./api --go_opt=paths=source_relative --go_out=./inapi --go-grpc_out=./inapi ./api/*.proto
PROTOC_RUST_ARGS = --proto_path=./api --rust_out=experimental-codegen=enabled,kernel=cpp:./inapi ./api/*.proto

HTOML_TAG_FIX_CMD = htoml-tag-fix
HTOML_TAG_FIX_ARGS = ./inapi
Expand All @@ -22,7 +22,7 @@ endif
.PHONY: api
api:
$(QUIET_BUILD)$(PROTOC_CMD) $(PROTOC_ARGS) $(CCLINK)
$(QUIET_BUILD)$(PROTOC_CMD) $(PROTOC_RUST_ARGS) $(CCLINK)
# $(QUIET_BUILD)$(PROTOC_CMD) $(PROTOC_RUST_ARGS) $(CCLINK)
$(QUIET_BUILD)$(HTOML_TAG_FIX_CMD) $(HTOML_TAG_FIX_ARGS) $(CCLINK)

.PHONY: api-in-runc
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.
File renamed without changes.
9 changes: 7 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import (
"github.com/hooto/htoml4g/htoml"
iamcfg "github.com/hooto/iam/config"
"github.com/lessos/lessgo/crypto/idhash"
"github.com/lynkdb/kvgo"
// "github.com/lynkdb/kvgo"
kvclient "github.com/lynkdb/kvgo/v2/pkg/client"

"github.com/sysinner/incore/inapi"
)
Expand Down Expand Up @@ -98,7 +99,11 @@ type ConfigCommon struct {
Zone ZoneConfig `json:"zone" toml:"zone"`
ZoneMain *ZoneMainConfig `json:"zone_main,omitempty" toml:"zone_main,omitempty"`
IamService *iamcfg.ConfigCommon `json:"iam_service,omitempty" toml:"iam_service,omitempty"`
ZoneData *kvgo.Config `json:"zone_data,omitempty" toml:"zone_data,omitempty"`
// ZoneData *kvgo.Config `json:"zone_data,omitempty" toml:"zone_data,omitempty"`

GlobDatabase *kvclient.Config `json:"glob_database,omitempty" toml:"glob_database,omitempty"`
ZoneDatabase *kvclient.Config `json:"zone_database,omitempty" toml:"zone_database,omitempty"`
PackDatabase *kvclient.Config `json:"pack_database,omitempty" toml:"pack_database,omitempty"`

/**
DelZoneIamAccessKey *hauth.AccessKey `json:"zone_iam_access_key,omitempty" toml:"zone_iam_access_key,omitempty"`
Expand Down
Loading

0 comments on commit 91ee0df

Please sign in to comment.