Skip to content

Commit

Permalink
go-swagger paasta api
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Melnychok committed May 3, 2020
1 parent 351d971 commit e03353b
Show file tree
Hide file tree
Showing 84 changed files with 10,647 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,15 @@ deb_%: clean docker_build_%

itest_%: deb_%
@echo "Built package for $*"

gen-paasta-api:
rm -rf pkg/paasta_api/*
curl -o swagger.json https://raw.githubusercontent.com/Yelp/paasta/master/paasta_tools/api/api_docs/swagger.json
docker run \
--rm -it \
--user "$$(id -u):$$(id -g)" \
-e GOPATH=$$HOME/go:/go \
-v $$HOME:$$HOME \
-w $$(pwd) quay.io/goswagger/swagger \
generate client -f ./swagger.json -t pkg/paasta_api
@echo "Do not forget to `git add` and `git commit` updated swagger.json and paasta-api"
108 changes: 108 additions & 0 deletions pkg/paasta_api/client/autoscaler/autoscaler_client.go

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

156 changes: 156 additions & 0 deletions pkg/paasta_api/client/autoscaler/get_autoscaler_count_parameters.go

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

Loading

0 comments on commit e03353b

Please sign in to comment.