Skip to content

Commit

Permalink
Adding custom templates for go-swagger
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xibz committed Jan 30, 2019
1 parent 98c2a05 commit f4e0ed3
Show file tree
Hide file tree
Showing 14 changed files with 677 additions and 98 deletions.
4 changes: 2 additions & 2 deletions client/firecracker_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions client/operations/operations_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

140 changes: 140 additions & 0 deletions fctesting/firecracker_mock_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f4e0ed3

Please sign in to comment.