Skip to content

Commit bd41bed

Browse files
authored
Api interface v3.21.1 (#35)
* Generate Quobyte v3.21.1 API and define api inter such that api can be mocked by api user programs. * Add build instruction to dev doc * Fix compilation and mockgen failure * Update to go lang to recent version * Add missing dependency required for mockgen * Add missing go:generate trigger to doc * Fix code comment
1 parent 35dcef6 commit bd41bed

6 files changed

Lines changed: 2452 additions & 145 deletions

File tree

docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
to <api-rep>/quobyte/types.go
77
* Run `gofmt -w <api-rep>/quobyte/types.go`
88
* `go.mod` files must be present at the root level of the project
9+
* Run `go build ./...` in the project root (in the parent of go.mod file) to run compilation pass
10+
(binary is not produced but checks for possible compilation issues)
11+
* If compilation is successful, run `go generate ./...` to generate mocks
912
* Each major release beyond V1 (such =v2[+].a.b) must provide unique import path such as `github.com/quobyte/api/vX`
1013
* To get around this issue, we always use v1.x.x (**NEVER** make v2 release)
1114
* Further, each `*.go` file must have a `package XYZ` statement as the first line and must be placed into `XZY`

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/quobyte/api
22

3-
go 1.14
3+
go 1.22.2
4+
5+
require go.uber.org/mock v0.4.0

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
2+
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=

0 commit comments

Comments
 (0)