Skip to content

Commit

Permalink
add org list roles cmd (#1554)
Browse files Browse the repository at this point in the history
* add org list roles cmd

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* lint fixes

* only include default roles in payload on first api call

* ad flag for including default roles in response - default it to false

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
aliotta and pre-commit-ci[bot] committed Feb 20, 2024
1 parent f47a24a commit 3846e49
Show file tree
Hide file tree
Showing 9 changed files with 5,237 additions and 2,681 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ core_api_gen:
ifeq (, $(shell which oapi-codegen))
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4
endif
oapi-codegen -include-tags=User,Organization,Invite,Workspace,Cluster,Options,Team,ApiToken,Deployment,Deploy,Environment -generate=types,client -package=astrocore "${CORE_OPENAPI_SPEC}" > ./astro-client-core/api.gen.go
oapi-codegen -include-tags=User,Organization,Invite,Workspace,Cluster,Options,Team,ApiToken,Deployment,Deploy,Environment,Role -generate=types,client -package=astrocore "${CORE_OPENAPI_SPEC}" > ./astro-client-core/api.gen.go
make mock_astro_core

oapi-codegen -include-tags=User,Invite,Team,ApiToken -generate=types,client -package=astroiamcore "${CORE_IAM_OPENAPI_SPEC}" > ./astro-client-iam-core/api.gen.go
make mock_astro_iam_core

oapi-codegen -include-tags=Organization,Workspace,Cluster,Options,Deployment -generate=types,client -package=astroplatformcore "${CORE_PLATFORM_OPENAPI_SPEC}" > ./astro-client-platform-core/api.gen.go
oapi-codegen -include-tags=Organization,Workspace,Cluster,Options,Deployment,Role -generate=types,client -package=astroplatformcore "${CORE_PLATFORM_OPENAPI_SPEC}" > ./astro-client-platform-core/api.gen.go
make mock_astro_platform_core

test:
Expand Down
6,159 changes: 4,026 additions & 2,133 deletions astro-client-core/api.gen.go

Large diffs are not rendered by default.

330 changes: 330 additions & 0 deletions astro-client-core/mocks/client.go

Large diffs are not rendered by default.

Loading

0 comments on commit 3846e49

Please sign in to comment.