Skip to content

Commit

Permalink
Merge pull request #6 from temporalio/abhinav/namespaceMgmt
Browse files Browse the repository at this point in the history
Samples for namespace management apis
  • Loading branch information
anekkanti authored Nov 21, 2023
2 parents 1dd4254 + 2fd1c04 commit be76faa
Show file tree
Hide file tree
Showing 16 changed files with 3,720 additions and 378 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/proto/temporal
/worker
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ install: buf-install grpc-install

# Run all linters and compile proto files.
proto: copy-api-cloud-api grpc

# Build the worker.
bins: worker

########################################################################

##### Variables ######
Expand Down Expand Up @@ -52,7 +56,10 @@ grpc-install:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

##### Build #####
worker: clean
@go build -o worker ./cmd/worker/*.go

##### Clean #####
clean:
printf $(COLOR) "Delete generated go files..."
rm -rf $(PROTO_OUT)
@rm -rf ./worker
12 changes: 0 additions & 12 deletions cmd/worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ A worker that invokes the temporal cloud apis to perform various operations.

Temporal Cloud APIs are located at Repo: [temporalio/cloud-api](https://github.com/temporalio/api-cloud)

## Supported Workflows

| WorkflowType | Description |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `tmprlcloud-wf.get-user` | Get an existing user. |
| `tmprlcloud-wf.get-users` | List all users. |
| `tmprlcloud-wf.create-user` | Create a new user. |
| `tmprlcloud-wf.update-user` | Update an existing user. |
| `tmprlcloud-wf.delete-user` | Delete an existing user. |
| `tmprlcloud-wf.reconcile-user` | Reconcile a user. Creates the user if one does not exist, otherwise updates the existing one. |
| `tmprlcloud-wf.reconcile-users` | Reconcile set of users. Creates the users that do not exist, updates the existing ones. Optionally can delete the users that are unaccounted. |

## Running the worker

### Step 1: Generate an apikey
Expand Down
1,763 changes: 1,510 additions & 253 deletions protogen/temporal/api/cloud/cloudservice/v1/request_response.pb.go

Large diffs are not rendered by default.

179 changes: 150 additions & 29 deletions protogen/temporal/api/cloud/cloudservice/v1/service.pb.go

Large diffs are not rendered by default.

326 changes: 319 additions & 7 deletions protogen/temporal/api/cloud/cloudservice/v1/service_grpc.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions protogen/temporal/api/cloud/identity/v1/message.pb.go

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

Loading

0 comments on commit be76faa

Please sign in to comment.