You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-51Lines changed: 16 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ and killbill command line tool (kbcmd)
4
4
5
5
## Versions
6
6
7
-
| KB Version | KBCli Version |
8
-
| ----------- | ------------- |
9
-
| 0.20.x | 1.x.y |
10
-
| 0.22.x | 2.x.y |
7
+
| KB Version | KBCli Version |
8
+
|------------|---------------|
9
+
| 0.20.x | 1.x.y |
10
+
| 0.22.x | 2.x.y |
11
+
| 0.24.x | 3.x.y |
11
12
12
13
13
14
14
15
## Kill bill go client library
15
-
Kill bill go client library is a go package that can be used to connect to
16
-
kill bill.
16
+
Kill bill go client library is a go package that can be used to connect to Kill Bill server.
17
17
18
18
### Install
19
19
```bash
20
-
go get -u github.com/killbill/kbcli/v2
20
+
go get -u github.com/killbill/kbcli/v3
21
21
```
22
22
23
23
### Creating new client
@@ -47,56 +47,21 @@ go get -u github.com/killbill/kbcli/v2
47
47
Look at the [complete example here](examples/listaccounts/main.go).
48
48
For more examples, look at [kbcmd tool](kbcmd/README.md).
49
49
50
-
### Client code generation
51
-
52
-
This client code was generated by the [go-swagger tool](https://github.com/go-swagger/go-swagger).
53
-
54
-
We use a modified generator and templates to generate the client, and the [sources are here](https://github.com/killbill/go-swagger).
55
-
56
-
As explained in the [commit](https://github.com/killbill/go-swagger/commit/4d48bffe307c6043daccf5144b132c55cc783803), we are stuck
57
-
on an older version of `go-swagger`, i.e our fork is not up to date with parent. In addition to this, there is an [issue](https://github.com/go-swagger/go-swagger/issues/2215) compiling
58
-
the tool with recent version of go, and so we are aldo currently stuck using go <= 1.13 -- for building the tool itself, i.e the swagger generator.
59
-
60
-
To download/install GO 1.13, follow the steps from [here](https://golang.org/doc/manage-install), or simply:
50
+
### Wrapper client
61
51
62
-
```bash
63
-
# This will install the tool under ~/sdk by default
64
-
go get golang.org/dl/go1.13
65
-
go1.13 download
66
-
67
-
# You can then set GOROOT=~/sdk/go1.13 in your shell or inside Goland 's preference (for the project)
68
-
```
52
+
We also provide a client wrapper (a higher level and easier to use api) that is built (not generated) on top of the generated code.
53
+
See the package `killbill` package under the `wrapper` directory.
69
54
70
-
To build the (custom) swagger generator
71
-
72
-
```bash
55
+
There is a suite of test `client_test.go` that shows how to use it.
73
56
74
-
# Pre-requisite (needed if template changes)
75
-
brew install go-bindata
76
-
77
-
# Install swagger tool
78
-
mkdir -p $GOPATH/src/github.com/go-swagger
79
-
cd$GOPATH/src/github.com/go-swagger
80
-
git clone git@github.com:killbill/go-swagger.git
81
-
82
-
# Each time the templates change, following 2 steps are needed:
83
-
84
-
#1. Regenerate the (template) byte code inside the go-swagger code itself -> generator/bindata.go should be modified
0 commit comments