Skip to content

Commit f4e0ed3

Browse files
committed
Adding custom templates for go-swagger
This gets rid of the need for mockgen and uses go-swagger to instead generate a mock client. In addition, this change also gets rid of the wrapper client and instead uses the client.Firecracker instead. Also, the change also generates an interface in the operations package and also needed some updating to the default go-swagger template to use the interface instead of types directly.
1 parent 98c2a05 commit f4e0ed3

14 files changed

+677
-98
lines changed

client/firecracker_client.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/operations/operations_client.go

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fctesting/firecracker_mock_client.go

Lines changed: 140 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)