Skip to content

Commit

Permalink
Provide Tenant Invitations (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Apr 4, 2024
1 parent c4b6968 commit 073b46f
Show file tree
Hide file tree
Showing 103 changed files with 9,353 additions and 1,086 deletions.
1,128 changes: 1,007 additions & 121 deletions docs/docs.json

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,24 @@ export API_TOKEN=yourapitoken
export PROJECT_ID=yourprojectuuid
```

Then you can execute them as follwoing:
Then you can execute them as following:

```bash
Golang:
go run go/cluster-list.go

Typescript:
cd ts && npm install
cd ts

With npm:
npm install
npx tsx cluster-list.ts

With bun (bun >= v1.1.0):
bun install
bun cluster-list.ts


Ansible:
ansible-playbook ansible/cluster-list.yaml

Expand Down
Binary file added examples/ts/bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/ts/cluster-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import dotenv from 'dotenv';
dotenv.config();

const tokenInterceptor: Interceptor = (next) => (req) => {
req.header.append('Authorization', 'Bearer ' + process.env.API_TOKEN)
return next(req)
req.header.append('Authorization', 'Bearer ' + process.env.API_TOKEN);
return next(req);
}

const transport = createConnectTransport({
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"ts-node": "^10.9.2",
"@connectrpc/connect-web": "^1.4.0"
}
}
}
2 changes: 1 addition & 1 deletion generate/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ go-mocks:
--user $$(id -u):$$(id -g) \
-w /work \
-v $(PWD):/work \
vektra/mockery:v2.41.0 --keeptree --inpackage --dir go --output go/tests/mocks --all --log-level debug
vektra/mockery:v2.42.0 --keeptree --inpackage --dir go --output go/tests/mocks --all --log-level debug
2 changes: 1 addition & 1 deletion go/admin/v1/cluster.pb.go

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

2 changes: 1 addition & 1 deletion go/admin/v1/machine.pb.go

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

2 changes: 1 addition & 1 deletion go/admin/v1/storage.pb.go

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

253 changes: 253 additions & 0 deletions go/api/v1/apiv1connect/tenant.connect.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go/api/v1/assets.pb.go

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

8 changes: 4 additions & 4 deletions go/api/v1/cluster.pb.go

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

Loading

0 comments on commit 073b46f

Please sign in to comment.